/*
 * Custom Styles for My Account Page Redesign
 */

#account-account #content h2,
#account-account #content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.account-dashboard .row {
    margin-bottom: 15px;
}

.account-divider {
    margin-top: 25px;
    margin-bottom: 35px;
    border-top: 1px solid #e9e9e9;
}

.account-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    padding: 25px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.account-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #6f4e37;
    color: #333;
}

.account-card-icon {
    font-size: 28px;
    color: #6f4e37;
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.account-card-body {
    flex-grow: 1;
}

.account-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.account-card-text {
    font-size: 14px;
    color: #777;
    margin: 0;
}

@media (max-width: 767px) {
    .account-card {
        padding: 20px 15px;
    }
    .account-card-icon {
        font-size: 24px;
        margin-right: 15px;
    }
    .account-card-title {
        font-size: 16px;
    }
    .account-card-text {
        font-size: 13px;
    }
    #account-account #content h2,
    #account-account #content h3 {
        font-size: 20px;
    }
}

/*
 * Generic Styles for all Account/* pages (Edit, Password, Orders, etc.)
 */

/* Common page header for Account pages */
[id^="account-"] #content h1,
[id^="account-"] #content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Main content box styling */
[id^="account-"] #content > form,
[id^="account-"] #content > .table-responsive {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Form Styling */
[id^="account-"] #content fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
[id^="account-"] #content legend {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 10px;
}
[id^="account-"] #content .form-group {
    margin-bottom: 20px;
}
[id^="account-"] #content .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    box-shadow: none !important;
    padding: 10px 15px;
    height: auto;
    transition: border-color 0.2s ease;
}
[id^="account-"] #content .form-control:focus {
    border-color: #6f4e37;
}
[id^="account-"] #content .control-label {
    font-weight: 600;
    color: #555;
    padding-top: 7px; /* Align with form control */
}

/* Buttons Styling */
[id^="account-"] #content .buttons {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}
[id^="account-"] #content .btn-primary {
    background-color: #6f4e37;
    border-color: #6f4e37;
    padding: 10px 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.2s ease;
}
[id^="account-"] #content .btn-primary:hover,
[id^="account-"] #content .btn-primary:focus {
    background-color: #5a3f2d;
    border-color: #5a3f2d;
}
[id^="account-"] #content .btn-default,
[id^="account-"] #content .btn-secondary {
    padding: 10px 25px;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.2s ease;
    background-color: #fff;
    border: 1px solid #ccc;
    text-transform: uppercase;
    font-size: 14px;
}
[id^="account-"] #content .btn-default:hover,
[id^="account-"] #content .btn-secondary:hover {
    background-color: #f5f5f5;
    border-color: #aaa;
}

/* Table Styling (for Order History, Wishlist, etc.) */
[id^="account-"] #content .table-responsive {
    padding: 0; /* Reset padding for tables */
}
[id^="account-"] #content .table {
    margin-bottom: 0;
}
[id^="account-"] #content .table thead th {
    background-color: #fdfdfd;
    border-bottom: 2px solid #e9e9e9;
    font-weight: 600;
    color: #555;
    padding: 15px;
}
[id^="account-"] #content .table tbody td {
    vertical-align: middle;
    padding: 15px;
    color: #555;
}
[id^="account-"] #content .table-bordered > thead > tr > th,
[id^="account-"] #content .table-bordered > tbody > tr > td {
    border: none;
    border-bottom: 1px solid #f0f0f0;
}
[id^="account-"] #content .table-bordered > tbody > tr:last-child > td {
    border-bottom: none;
}
[id^="account-"] #content .table-hover tbody tr:hover {
    background-color: #f9f7f6;
}

/* Responsive adjustments for forms */
@media (max-width: 767px) {
    [id^="account-"] #content h1,
    [id^="account-"] #content h2 {
        font-size: 20px;
    }
    [id^="account-"] #content .control-label {
        text-align: left;
        margin-bottom: 5px;
    }
    [id^="account-"] #content > form {
        padding: 20px;
    }
}

/*
 * Custom Styles for Two-Column Login Page
 */

#account-login .login-panel,
#account-login .register-panel {
    padding: 30px 35px;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
    height: 100%;
}

#account-login .login-panel {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

#account-login .register-panel {
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#account-login .form-label {
    font-weight: 600;
    color: #555;
}

#account-login .register-panel .btn-outline-primary {
    padding: 10px 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    border-color: #6f4e37;
    color: #6f4e37;
}

#account-login .register-panel .btn-outline-primary:hover {
    background-color: #6f4e37;
    color: #fff;
}