/**
 * WP User Front CSS
 * Modern, responsive styles for user profiles and dashboard displayed in the frontend
 */

/* Container for user content */
.wp-user-front-container {
    background: #fff;
    margin: 20px auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    overflow-x: auto;
}

/* Loading indicator */
.wp-user-front-loading {
    padding: 2rem;
    text-align: center;
    font-style: italic;
    color: #666;
}

/* General elements */
.wp-user-front-container .wrap {
    margin: 0;
    padding: 0;
}

.wp-user-front-container h1 {
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding: 0;
    line-height: 1.3;
}

.wp-user-front-container h2 {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
}

.wp-user-front-container h3 {
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
}

.wp-user-front-container .page-title-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: #1d3557;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wp-user-front-container .page-title-action:hover {
    background: #457b9d;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wp-user-front-container .page-title-action.back-to-profile {
    background: #f8f9fa;
    color: #1d3557;
}

.wp-user-front-container .page-title-action.back-to-profile:hover {
    background: #e9ecef;
    color: #457b9d;
}

.wp-user-front-container hr.wp-header-end {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 1.5rem 0;
    clear: both;
    visibility: visible;
    height: 0;
}

/* Profile Header */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    position: relative;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: block;
    border: 4px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.profile-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
}

.profile-username {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.profile-status {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Profile Content */
.profile-content {
    margin-bottom: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #1d3557;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h3 {
    margin-bottom: 1rem;
    color: #1d3557;
    font-weight: 600;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.profile-field label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-field span {
    color: #333;
    font-size: 1rem;
}

.profile-field a {
    color: #1d3557;
    text-decoration: none;
}

.profile-field a:hover {
    text-decoration: underline;
}

.profile-bio,
.profile-address {
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin: 0;
}

/* Forms */
.wp-user-front-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

.wp-user-front-container input[type=text],
.wp-user-front-container input[type=password],
.wp-user-front-container input[type=email],
.wp-user-front-container input[type=url],
.wp-user-front-container input[type=tel],
.wp-user-front-container input[type=date],
.wp-user-front-container input[type=search],
.wp-user-front-container input[type=number],
.wp-user-front-container select,
.wp-user-front-container textarea {
    width: 100%;
    max-width: 400px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wp-user-front-container input[type=text]:focus,
.wp-user-front-container input[type=password]:focus,
.wp-user-front-container input[type=email]:focus,
.wp-user-front-container input[type=url]:focus,
.wp-user-front-container input[type=tel]:focus,
.wp-user-front-container input[type=date]:focus,
.wp-user-front-container input[type=search]:focus,
.wp-user-front-container input[type=number]:focus,
.wp-user-front-container select:focus,
.wp-user-front-container textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.wp-user-front-container input[type=checkbox],
.wp-user-front-container input[type=radio] {
    margin-right: 0.5rem;
}

.wp-user-front-container button,
.wp-user-front-container .button,
.wp-user-front-container .button-primary,
.wp-user-front-container .button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    min-height: 38px;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.wp-user-front-container .button {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #212529;
}

.wp-user-front-container .button-primary {
    background: #1d3557;
    border-color: #1d3557;
    color: #fff;
}

.wp-user-front-container .button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

.wp-user-front-container .button-primary:hover {
    background: #457b9d;
    border-color: #457b9d;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Profile Actions */
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eaeaea;
}

/* Form Tables */
.wp-user-front-container .form-table {
    border-collapse: collapse;
    margin-top: 1rem;
    width: 100%;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
}

.wp-user-front-container .form-table th,
.wp-user-front-container .form-table td {
    padding: 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e0e0e0;
}

.wp-user-front-container .form-table th {
    width: 200px;
    font-weight: 600;
    color: #444;
    background: #fff;
}

.wp-user-front-container .form-table td {
    background: #fff;
}

.wp-user-front-container .form-required label::after {
    content: "*";
    color: #dc3232;
    margin-left: 4px;
}

.wp-user-front-container p.submit {
    margin-top: 1.5rem;
    padding: 1rem 0;
    text-align: center;
}

.wp-user-front-container .description {
    color: #666;
    font-size: 13px;
    margin-top: 0.5rem;
    display: block;
}

/* Status tags */
.user-status-tag,
.user-disabled-tag,
.user-role-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.user-status-approved {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.user-status-pending {
    background-color: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.user-status-rejected {
    background-color: #fff1f0;
    color: #f5222d;
    border: 1px solid #ffccc7;
}

.user-disabled-true {
    background-color: #fff1f0;
    color: #f5222d;
    border: 1px solid #ffccc7;
}

.user-disabled-false {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.user-role-tag {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

/* Dashboard specific styles */
.dashboard-welcome {
    margin-bottom: 2rem;
}

.welcome-panel {
    background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.welcome-panel-content h2 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.about-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.dashboard-widgets {
    margin-bottom: 2rem;
}

.dashboard-widget-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dashboard-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dashboard-widget h3 {
    margin-bottom: 1rem;
    color: #1d3557;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Recent lists */
.recent-posts-list,
.recent-comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-posts-list li,
.recent-comments-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts-list li:last-child,
.recent-comments-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a {
    color: #1d3557;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.recent-posts-list a:hover {
    text-decoration: underline;
}

.post-date,
.comment-date {
    font-size: 0.85rem;
    color: #666;
    margin-right: 0.5rem;
}

.post-status {
    font-size: 0.8rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-publish {
    background: #f6ffed;
    color: #52c41a;
}

.status-draft {
    background: #fff7e6;
    color: #fa8c16;
}

.status-pending {
    background: #e6f7ff;
    color: #1890ff;
}

.comment-content {
    font-style: italic;
    margin-bottom: 0.5rem;
    color: #555;
}

.comment-meta {
    font-size: 0.85rem;
    color: #666;
}

.comment-meta a {
    color: #1d3557;
    text-decoration: none;
}

.comment-meta a:hover {
    text-decoration: underline;
}

/* Account Actions */
.account-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-actions .button {
    width: 100%;
    margin-right: 0;
    justify-content: center;
}

/* Notifications */
.wp-user-front-container .notice {
    border-left: 4px solid #00a0d2;
    background: #f7fcff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0 4px 4px 0;
}

.wp-user-front-container .notice p {
    margin: 0;
    padding: 0;
}

.wp-user-front-container .notice-success {
    border-color: #46b450;
    background-color: #f7fff7;
}

.wp-user-front-container .notice-error {
    border-color: #dc3232;
    background-color: #fff7f7;
}

.wp-user-front-container .notice-warning {
    border-color: #ffb900;
    background-color: #fffbf3;
}

.wp-user-front-container .notice-info {
    border-color: #00a0d2;
    background-color: #f7fcff;
}

.wp-user-front-container .spinner {
    display: inline-block;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 2a10 10 0 0 1 10 10c0 5.523-4.477 10-10 10S2 17.523 2 12h2a8 8 0 1 0 8-8V2z" fill="rgba(0,0,0,0.5)"/></svg>') no-repeat center;
    background-size: 20px 20px;
    opacity: 0.7;
    width: 20px;
    height: 20px;
    margin: 0 10px;
    vertical-align: middle;
    visibility: hidden;
    animation: wp-user-front-spin 1s linear infinite;
}

.wp-user-front-container .spinner.is-active {
    visibility: visible;
}

@keyframes wp-user-front-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media screen and (max-width: 992px) {
    .wp-user-front-container {
        padding: 1.5rem;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .dashboard-widget-container {
        grid-template-columns: 1fr;
    }
    
    .wp-user-front-container .form-table th,
    .wp-user-front-container .form-table td {
        padding: 0.75rem;
    }
}

@media screen and (max-width: 768px) {
    .wp-user-front-container {
        padding: 1rem;
        margin: 10px;
        font-size: 14px;
    }
    
    .wp-user-front-container h1 {
        font-size: 1.5rem;
    }
    
    .profile-header {
        padding: 1.5rem 1rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profile-actions .button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .wp-user-front-container .form-table,
    .wp-user-front-container .form-table tbody,
    .wp-user-front-container .form-table tr,
    .wp-user-front-container .form-table th,
    .wp-user-front-container .form-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .wp-user-front-container .form-table th {
        padding-bottom: 0.5rem;
        border-bottom: none;
    }
    
    .wp-user-front-container .form-table td {
        padding-top: 0;
        padding-bottom: 1rem;
    }
    
    .welcome-panel {
        padding: 1.5rem;
    }
    
    .welcome-panel-content h2 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .wp-user-front-container {
        padding: 0.75rem;
    }
    
    .profile-section {
        padding: 1rem;
    }
    
    .dashboard-widget {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal styles */
.delete-account-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-size: 1.4rem;
    font-weight: 600;
}

.modal-content .form-field {
    margin-bottom: 1rem;
}

.modal-content .form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

.modal-content .form-field input {
    width: 100%;
    max-width: none;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.modal-content .form-field input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eaeaea;
}

.modal-actions .button {
    margin-right: 0;
    margin-bottom: 0;
}

.warning-text {
    color: #f5222d;
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #fff1f0;
    border: 1px solid #ffccc7;
    border-radius: 4px;
}

@media screen and (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Gaming & Community specific styles */
.steam-id-display {
    font-family: 'Courier New', Courier, monospace;
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.gaming-section-header th {
    padding-top: 2rem !important;
}

.gaming-section-header h3 {
    color: #1d3557 !important;
    border-bottom: 2px solid #f0f0f0 !important;
    padding-bottom: 0.5rem !important;
    margin: 1rem 0 !important;
}

/* Special styling for Steam ID input validation */
#valheim_steam_id:invalid {
    border-color: #dc3232;
    box-shadow: 0 0 2px rgba(220, 50, 50, 0.8);
}

#valheim_steam_id:valid {
    border-color: #46b450;
}

/* Gaming profile section highlight */
.gaming-community-section {
    border-left-color: #9b59b6 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
}

/* Steam OAuth Integration Styles */
.steam-link-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    border-color: #1e3c72 !important;
    color: #fff !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(30, 60, 114, 0.3);
}

.steam-link-btn:hover {
    background: linear-gradient(135deg, #0f2249 0%, #1e3c72 100%) !important;
    border-color: #0f2249 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 60, 114, 0.4);
}

.steam-link-btn:disabled {
    opacity: 0.7;
    transform: none !important;
    box-shadow: none !important;
}

.steam-link-section {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px dashed #dee2e6;
    margin-bottom: 1rem;
    text-align: center;
}

.steam-linked-section {
    padding: 1rem;
    background: linear-gradient(135deg, #f6ffed 0%, #f0f9e8 100%);
    border-radius: 6px;
    border: 2px solid #b7eb8f;
}

.steam-linked-section .dashicons-yes-alt {
    font-size: 1.2em;
    vertical-align: middle;
}

.manual-input-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
}

#toggle-manual-input {
    color: #1d3557;
    text-decoration: none;
    font-size: 0.9rem;
}

#toggle-manual-input:hover {
    text-decoration: underline;
}

/* Steam ID display improvements */
.steam-id-display a {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #1d3557;
    color: #fff !important;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.2s ease;
}

.steam-id-display a:hover {
    background: #457b9d;
    text-decoration: none !important;
}

/* WooCommerce Order History Styles */
.order-history-list {
    margin: 0;
}

.order-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 1rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.order-item:hover {
    border-color: #1d3557;
    box-shadow: 0 2px 4px rgba(29, 53, 87, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.order-status {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status.status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.order-status.status-processing {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.order-status.status-on-hold {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.order-status.status-pending {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.order-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-items {
    flex: 1;
}

.item-name {
    font-weight: 500;
    color: #1d3557;
}

.item-count {
    color: #6c757d;
    font-size: 0.9rem;
}

.order-total {
    font-size: 1.1rem;
    color: #1d3557;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.button-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.2;
}

.view-order-btn {
    background: #f8f9fa;
    color: #1d3557;
    border: 1px solid #e9ecef;
}

.view-order-btn:hover {
    background: #e9ecef;
    color: #457b9d;
    border-color: #1d3557;
}

.reorder-btn {
    background: #1d3557;
    color: #fff;
    border: 1px solid #1d3557;
}

.reorder-btn:hover {
    background: #457b9d;
    border-color: #457b9d;
}

.widget-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.view-all-orders {
    color: #1d3557;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.view-all-orders:hover {
    color: #457b9d;
    text-decoration: none;
}

/* Responsive adjustments for orders */
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .order-actions {
        width: 100%;
        justify-content: center;
    }
    
    .order-actions .button {
        flex: 1;
        text-align: center;
        min-width: 120px;
    }
}

/* Order Details Page Styles */
.order-details-container {
    margin-top: 2rem;
}

.order-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.order-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-info-item strong {
    color: #1d3557;
    font-size: 0.9rem;
}

.order-items-section {
    margin-bottom: 2rem;
}

.order-items-table,
.all-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-items-table th,
.order-items-table td,
.all-orders-table th,
.all-orders-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.order-items-table th,
.all-orders-table th {
    background: #1d3557;
    color: #fff !important;
    font-weight: 600;
}

.order-items-table tbody tr:hover,
.all-orders-table tbody tr:hover {
    background: #f8f9fa;
}

.item-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.order-actions-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
}

.order-actions-section .order-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* All Orders Page Styles */
.all-orders-container {
    margin-top: 2rem;
}

.no-orders {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.no-orders p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.orders-table-container {
    overflow-x: auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-actions .button {
    white-space: nowrap;
}

.view-all-orders-btn {
    background: none;
    border: none;
    color: #1d3557;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
}

.view-all-orders-btn:hover {
    color: #457b9d;
    text-decoration: none;
}

/* Responsive adjustments for order tables */
@media (max-width: 768px) {
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .order-items-table,
    .all-orders-table {
        font-size: 0.9rem;
    }
    
    .order-items-table th,
    .order-items-table td,
    .all-orders-table th,
    .all-orders-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .table-actions {
        flex-direction: column;
    }
    
    .table-actions .button {
        width: 100%;
        text-align: center;
    }
    
    .order-actions-section .order-actions {
        flex-direction: column;
    }
}
