/* Clean My Account Styles for NovoShop Theme */

.my-account-dashboard,
.my-account-login {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 100vh;
    font-family: var(--novoshop-body-font, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* Dashboard Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-title {
    font-size: 2.5rem;
    color: var(--secondary-color, #474747);
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.dashboard-subtitle {
    color: var(--secondary-color, #474747);
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.7;
    line-height: 1.6;
}

/* Dashboard Content */
.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    max-width: 1620px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color, #e4b15d);
    border-radius: 12px 12px 0 0;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color, #e4b15d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color, #1f2937);
    margin-bottom: 12px;
    font-weight: 700;
}

.dashboard-card p {
    color: var(--secondary-color, #6b7280);
    margin-bottom: 24px;
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--primary-color, #e4b15d);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-link:hover {
    background: var(--accent-color, #0073aa);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.account-info,
.recent-orders {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.account-info h3,
.recent-orders h3 {
    font-size: 1.125rem;
    color: var(--secondary-color, #474747);
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color, #e4b15d);
    padding-bottom: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--secondary-color, #6b7280);
}

.info-value {
    color: var(--secondary-color, #1f2937);
    font-weight: 500;
}

/* Recent Orders */
.order-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.order-item:last-child {
    border-bottom: none;
}

.order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-number {
    font-weight: 700;
    color: var(--primary-color, #ff6600);
    font-size: 0.875rem;
}

.order-date {
    color: var(--secondary-color, #6b7280);
    font-size: 0.875rem;
}

.order-status {
    display: flex;
    justify-content: flex-start;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.status-on-hold {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.order-total {
    font-weight: 700;
    color: var(--secondary-color, #1f2937);
    font-size: 1rem;
}

.no-orders {
    color: var(--secondary-color, #6b7280);
    text-align: center;
    padding: 24px 0;
    font-style: italic;
}

/* Login Form */
.login-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 32px;
    position: relative;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color, #e4b15d);
    border-radius: 12px 12px 0 0;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 2rem;
    color: var(--secondary-color, #474747);
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.login-subtitle {
    color: var(--secondary-color, #474747);
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
    line-height: 1.6;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color, #374151);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.form-group .required {
    color: #dc2626;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--secondary-color, #212529);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--secondary-color, #212529);
    background-color: #fff;
    border-color: var(--primary-color, #ff6600);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid #ced4da;
    appearance: none;
    color-adjust: exact;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, background-position 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    border-radius: 0.25rem;
}

.form-check-input:checked {
    background-color: var(--primary-color, #ff6600);
    border-color: var(--primary-color, #ff6600);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:focus {
    border-color: var(--primary-color, #ff6600);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
}

.form-check-label {
    color: var(--secondary-color, #212529);
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    color: #fff;
    background: var(--primary-color, #e4b15d);
    border-color: var(--primary-color, #e4b15d);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--accent-color, #0073aa);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(228, 177, 93, 0.25);
}

/* Links */
.lost-password-link,
.register-link {
    color: var(--primary-color, #e4b15d);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.lost-password-link:hover,
.register-link:hover {
    color: var(--accent-color, #0073aa);
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .dashboard-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .my-account-dashboard,
    .my-account-login {
        padding: 20px 0;
    }
    
    .dashboard-title {
        font-size: 2.25rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card {
        padding: 24px;
    }
    
    .login-wrapper {
        padding: 32px 24px;
    }
    
    .login-title {
        font-size: 1.875rem;
    }
}

@media (max-width: 480px) {
    .dashboard-title {
        font-size: 1.875rem;
    }
    
    .dashboard-card {
        padding: 20px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .login-wrapper {
        padding: 24px 20px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
}

/* RTL Support */
html[dir="rtl"] .account-info h3::before,
html[dir="rtl"] .recent-orders h3::before {
    margin-left: 12px;
    margin-right: 0;
}

html[dir="rtl"] .order-info {
    flex-direction: row-reverse;
}

html[dir="rtl"] .order-status {
    justify-content: flex-end;
}
