/* Account UI Improvements - Custom Styles */

/* Common Elements */
.required {
    color: #dc3545;
}

.form-label {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-control {
    height: 45px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #cda557;
    box-shadow: 0 0 0 0.2rem rgba(205, 165, 87, 0.25);
}

.form-control:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

textarea.form-control {
    height: auto;
    min-height: 100px;
}

.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
    margin-bottom: 20px;
}

.form-group {
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 20px;
}

/* Custom Select */
.custom-select {
    height: 45px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    font-size: 14px;
    width: 100%;
    background-color: #fff;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%23343a40' d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' transform='rotate(90 4 4)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 8px 8px;
}

.custom-select:focus {
    border-color: #cda557;
    box-shadow: 0 0 0 0.2rem rgba(205, 165, 87, 0.25);
}

/* Custom Checkbox */
.custom-checkbox {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 10px;
}

.form-check-label {
    font-size: 14px;
    color: #495057;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #cda557;
    color: white;
}

.btn-primary:hover {
    background-color: #be8658;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(205, 165, 87, 0.2);
}

.btn-search {
    background-color: #6c757d;
    color: white;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-search:hover {
    background-color: #5a6268;
}

.btn i {
    margin-right: 5px;
}

.save-changes-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #cda557;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-changes-btn:hover {
    background-color: #be8658;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(205, 165, 87, 0.2);
}

/* Input Groups */
.input-group {
    display: flex;
    width: 100%;
}

.input-group-append {
    display: flex;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.alert-info {
    background-color: #e8f4f8;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.alert-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.alert-icon {
    font-size: 18px;
    margin-right: 15px;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert i {
    font-size: 18px;
    margin-right: 10px;
}

/* Card Styling */
.account-form-card, .profile-card, .einvoice-container, .address-card, .order-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.account-form-card:hover, .profile-card:hover, .einvoice-container:hover, .address-card:hover, .order-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.card-header, .einvoice-header, .profile-header, .address-header, .order-header {
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h4, .einvoice-header h4, .address-header h4, .order-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #343a40;
}

.card-header-icon {
    color: #cda557;
    font-size: 20px;
    margin-right: 10px;
}

.card-body, .einvoice-form, .address-body, .order-body {
    padding: 25px;
}

.einvoice-subtitle, .card-subtitle {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
}

/* Profile Card Styling */
.profile-header {
    position: relative;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #cda557;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-image-edit:hover {
    background-color: #be8658;
    transform: scale(1.1);
}

.membership-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #e9ecef;
    color: #495057;
}

.normal-member {
    background-color: #e9ecef;
    color: #495057;
}

.silver-member {
    background-color: #f5f5f5;
    color: #6c757d;
    border: 1px solid #ced4da;
}

.gold-member {
    background-color: #fff9db;
    color: #856404;
    border: 1px solid #ffeeba;
}

.platinum-member {
    background-color: #e8f4f8;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.profile-body {
    padding: 20px;
}

.profile-info {
    margin-bottom: 15px;
}

.info-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

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

.info-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 3px;
}

.info-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #343a40;
}

/* Account Dashboard Area */
.account-dashboard-area {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.account-dashboard-wrapper {
    margin-bottom: 30px;
}

/* Tabs Styling */
.account-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.account-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.account-tab:hover {
    color: #cda557;
}

.account-tab.active {
    color: #cda557;
    border-bottom-color: #cda557;
}

.account-tab-content {
    display: none;
}

.account-tab-content.active {
    display: block;
}

/* Address Card */
.address-card {
    height: auto;
}

.address-actions {
    display: flex;
    gap: 10px;
}

.address-action-btn {
    background-color: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-action-btn:hover {
    color: #cda557;
}

.address-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.address-type-primary {
    background-color: #cda557;
    color: white;
}

.address-type-secondary {
    background-color: #e9ecef;
    color: #495057;
}

.address-content {
    margin-bottom: 15px;
}

.address-content p {
    margin: 0;
    line-height: 1.6;
}

.address-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.address-phone {
    color: #6c757d;
}

/* Order Card */
.order-card {
    margin-bottom: 20px;
}

.order-header {
    background-color: #f8f9fa;
}

.order-id {
    font-weight: 600;
    color: #343a40;
}

.order-date {
    font-size: 13px;
    color: #6c757d;
}

.order-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.order-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.order-status-processing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.order-status-completed {
    background-color: #d4edda;
    color: #155724;
}

.order-status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.order-item-price {
    font-size: 13px;
    color: #6c757d;
}

.order-item-quantity {
    font-size: 13px;
    color: #6c757d;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    font-weight: 600;
}

.order-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.order-action-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-details-btn {
    background-color: #f8f9fa;
    color: #343a40;
    border: 1px solid #dee2e6;
}

.order-details-btn:hover {
    background-color: #e9ecef;
    color: #cda557;
}

.order-track-btn {
    background-color: #cda557;
    color: white;
    border: 1px solid #cda557;
}

.order-track-btn:hover {
    background-color: #be8658;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(205, 165, 87, 0.2);
}

/* E-Invoice Styling */
.einvoice-container {
    margin-bottom: 30px;
}

.einvoice-form {
    padding: 25px;
}

.form-section {
    margin-bottom: 20px;
}

/* Mini Cart Styling */
.minicart-actions {
    display: flex;
    gap: 10px;
    padding: 15px 10px 10px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0 15px;
}

.view-cart-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.view-cart-btn:hover {
    background-color: #e9ecef;
    color: #cda557;
}

.checkout-btn {
    background-color: #cda557;
    color: white;
    border: 1px solid #cda557;
}

.checkout-btn:hover {
    background-color: #be8658;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(205, 165, 87, 0.2);
}

.action-btn i {
    margin-right: 5px;
    font-size: 16px;
}

/* Empty Cart Styling */
.empty-cart {
    padding: 30px 20px;
    text-align: center;
}

.empty-cart-icon {
    font-size: 40px;
    color: #ccc;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #777;
    margin-bottom: 15px;
}

.minicart-continue-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #333 !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.minicart-continue-btn:hover {
    background-color: #e9ecef;
    color: #cda557 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Continue Shopping Button in Cart */
.continue-shopping {
    display: block;
    text-align: center;
    background-color: #f8f9fa;
    color: #333 !important;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    margin-top: 10px;
}

.continue-shopping:hover {
    background-color: #e9ecef;
    color: #cda557 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .profile-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
}

/* Address List Page Styling */
.account-section-header {
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.account-action-btn {
    background-color: #e66f23;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.account-action-btn:hover {
    background-color: #d45e18;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 111, 35, 0.2);
    color: white;
}

.address-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.address-card-header {
    padding: 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.edit-btn {
    background-color: #e9ecef;
    color: #495057;
}

.edit-btn:hover {
    background-color: #dee2e6;
    color: #212529;
}

.delete-btn {
    background-color: #ffe5e5;
    color: #dc3545;
}

.delete-btn:hover {
    background-color: #ffd1d1;
    color: #c82333;
}

.address-card-body {
    padding: 20px;
    flex-grow: 1;
}

.address-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.address-line i {
    color: #6c757d;
    margin-top: 3px;
}

.address-card-footer {
    padding: 16px;
    border-top: 1px solid #eee;
    text-align: center;
}

.empty-state-container {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
    font-size: 48px;
    color: #e66f23;
    margin-bottom: 20px;
}

.empty-state-container h5 {
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-state-container p {
    color: #6c757d;
    margin-bottom: 20px;
}
