/* Profile Dashboard Styles */
.profile-dashboard {
    padding: 60px 0;
    background: #fff;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, #50bfda 0%, #3da8c4 100%);
    border-radius: 25px;
    padding: 50px 30px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(80, 191, 218, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.profile-header .row {
    position: relative;
    z-index: 2;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-avatar i {
    font-size: 56px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.profile-name {
    font-family: "Mitr", sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.profile-email {
    font-family: "Mitr", sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* VIP Upgrade Button */
.renewal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFC224 0%, #FFB300 100%);
    color: #212529;
    font-family: "Mitr", sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 194, 36, 0.3);
    border: none;
    cursor: pointer;
}

.renewal-btn:hover {
    background: linear-gradient(135deg, #FFB300 0%, #FFA000 100%);
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 194, 36, 0.4);
    text-decoration: none;
}

.renewal-btn:active {
    transform: translateY(-1px);
}

.renewal-btn i {
    margin-right: 8px;
    font-size: 20px;
}

/* Upgrade Button - Simple Blue Style */
.upgrade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #50bfda 0%, #3da8c4 100%);
    color: #fff;
    font-family: "Mitr", sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(80, 191, 218, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, #3da8c4 0%, #2d8ba3 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 191, 218, 0.4);
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.upgrade-btn:active {
    transform: translateY(0);
}

.upgrade-btn i {
    margin-right: 8px;
    font-size: 18px;
}

/* Profile Settings Dropdown */
.profile-settings-dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 998;
}

.profile-settings-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 999;
}

.profile-settings-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: scale(1.05);
}

.profile-settings-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.profile-settings-btn i {
    font-size: 18px;
}

.profile-settings-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    min-width: 200px;
    z-index: 1002;
}

.profile-settings-menu .dropdown-item {
    color: #333;
    font-family: "Mitr", sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.profile-settings-menu .dropdown-item:hover {
    background: rgba(80, 191, 218, 0.1);
    color: #50bfda;
    transform: translateX(5px);
}

.profile-settings-menu .dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Membership Card */
.membership-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.membership-status {
    display: inline-flex;
    align-items: center;
    font-family: "Mitr", sans-serif;
    font-size: 20px;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 50px;
    margin-bottom: 25px;
}

.membership-status.status-none {
    background: linear-gradient(135deg, #6c757d 0%, #6c757d 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.membership-status.status-active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.membership-status.status-expired {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.membership-status i {
    margin-right: 10px;
    font-size: 22px;
}

.membership-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.info-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.info-label {
    font-family: "Mitr", sans-serif;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.info-value {
    font-family: "Mitr", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

/* Dashboard Sections */
.dashboard-section {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.section-title {
    font-family: "Mitr", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 15px;
}

.section-title i {
    margin-right: 12px;
    color: #50bfda;
    font-size: 26px;
}

/* History Tables */
.history-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Mitr", sans-serif;
}

.history-table thead th {
    background: #f8f9fa;
    color: #212529;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 12px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
}

.history-table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.3s ease;
}

.history-table tbody tr:hover {
    background: #f8f9fa;
}

.history-table tbody td {
    padding: 15px 12px;
    font-size: 16px;
    color: #212529;
    vertical-align: middle;
}

.history-table .badge {
    font-family: "Mitr", sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.course-card {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.course-card:hover {
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.course-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.course-thumb a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.course-card:hover .course-thumb img {
    transform: scale(1.05);
}

.course-content {
    padding: 20px;
}

.course-title {
    font-family: "Mitr", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-title a:hover {
    color: #50bfda;
}

.course-category {
    font-family: "Mitr", sans-serif;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
    line-height: 1.3;
}

.course-access {
    font-family: "Mitr", sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8f9fa;
}

.course-access.access-available {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.course-access.access-expired {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.course-access i {
    margin-right: 6px;
    font-size: 14px;
}

/* Order Search */
.order-grid__search {
    position: relative;
    display: block;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}
    
.order-grid__search:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.filter-order {
    padding: 20px;
}

.filter-order input[type="search"] {
    flex: 1;
    /*border: 2px solid #e9ecef;*/
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    /*background: #f8f9fa;*/
    font-family: "Mitr", sans-serif;
}

.filter-order input[type="search"]:focus {
    outline: none;
    border-color: #50bfda;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(80, 191, 218, 0.1);
}

.filter-order button {
    background: #50bfda;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Mitr", sans-serif;
}

.filter-order button:hover {
    background: #3da8c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(80, 191, 218, 0.3);
}

.filter-order button:disabled {
    pointer-events: none;
    opacity: .65
}

.filter-order button i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-dashboard {
        padding: 40px 0;
    }

    .profile-header {
        padding: 40px 20px;
        border-radius: 20px;
    }
    
    .profile-settings-dropdown {
        top: 15px;
        right: 15px;
    }
    
    .profile-settings-btn {
        width: 40px;
        height: 40px;
    }
    
    .profile-settings-btn i {
        font-size: 16px;
    }
    
    .profile-settings-menu {
        min-width: 180px;
    }
    
    .profile-settings-menu .dropdown-item {
        font-size: 13px;
        padding: 10px 16px;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .profile-avatar i {
        font-size: 48px;
    }
    
    .profile-name {
        font-size: 26px;
    }
    
    .profile-email {
        font-size: 16px;
    }
    
    .membership-card,
    .dashboard-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .membership-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-item {
        padding: 15px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .section-title i {
        font-size: 22px;
    }
    
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .course-card {
        padding: 0;
    }
    
    .course-thumb {
        height: 180px;
    }
    
    .course-content {
        padding: 15px;
    }
    
    .course-title {
        font-size: 15px;
    }
    
    .course-category {
        font-size: 12px;
    }
    
    .course-access {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .history-table {
        font-size: 14px;
    }
    
    .history-table thead th,
    .history-table tbody td {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .renewal-btn {
        font-size: 16px;
        padding: 12px 25px;
    }
    
    .upgrade-btn {
        font-size: 14px;
        padding: 12px 24px;
    }
    
    .upgrade-btn i {
        font-size: 16px;
    }
    
    .membership-status {
        font-size: 18px;
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .profile-header {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .profile-settings-dropdown {
        top: 10px;
        right: 10px;
    }
    
    .profile-settings-btn {
        width: 35px;
        height: 35px;
    }
    
    .profile-settings-btn i {
        font-size: 14px;
    }
    
    .profile-settings-menu {
        min-width: 160px;
    }
    
    .profile-settings-menu .dropdown-item {
        font-size: 12px;
        padding: 8px 14px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar i {
        font-size: 40px;
    }
    
    .profile-name {
        font-size: 22px;
    }
    
    .profile-email {
        font-size: 15px;
    }
    
    .membership-card,
    .dashboard-section {
        padding: 15px;
        border-radius: 15px;
    }
    
    .info-item {
        padding: 12px;
    }
    
    .info-label {
        font-size: 13px;
    }
    
    .info-value {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 18px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .section-title i {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .course-thumb {
        height: 160px;
    }
    
    .course-content {
        padding: 12px;
    }
    
    .course-title {
        font-size: 14px;
    }
    
    .course-category {
        font-size: 11px;
    }
    
    .course-access {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .renewal-btn {
        font-size: 15px;
        padding: 10px 20px;
    }
    
    .renewal-btn i {
        font-size: 18px;
    }
    
    .upgrade-btn {
        font-size: 13px;
        padding: 10px 20px;
    }
    
    .upgrade-btn i {
        font-size: 15px;
    }
    
    .membership-status {
        font-size: 16px;
        padding: 8px 16px;
    }
    
    .membership-status i {
        font-size: 18px;
    }

    .filter-order {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-order button {
        width: 100%;
    }
}

/* Table Responsive */
/*@media (max-width: 768px) {
    .table-responsive {
        border-radius: 15px;
        overflow: hidden;
    }
    
    .history-table thead {
        display: none;
    }
    
    .history-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        padding: 15px;
        background: #fff;
    }
    
    .history-table tbody td {
        display: block;
        text-align: left;
        padding: 8px 0;
        border: none;
        position: relative;
        padding-left: 120px;
    }
    
    .history-table tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 110px;
        font-weight: 600;
        color: #6c757d;
        font-size: 14px;
    }
    
    .history-table tbody td:first-child {
        padding-top: 0;
    }
    
    .history-table tbody td:last-child {
        padding-bottom: 0;
    }
}*/

/* Profile Modal Styles */
.profile-modal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow: hidden;
}

.profile-modal .modal-header {
    background: linear-gradient(135deg, #50bfda 0%, #3da8c4 100%);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 20px 25px;
    position: relative;
    overflow: hidden;
}

.profile-modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.profile-modal .modal-title {
    font-family: "Mitr", sans-serif;
    color: #fff;
    font-weight: 600;
    font-size: 20px;
    position: relative;
    z-index: 2;
    margin: 0;
}

.profile-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

.profile-modal .btn-close:hover {
    opacity: 1;
}

.profile-modal form {
    display: contents;
}

.profile-modal .modal-body {
    padding: 30px 25px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.profile-modal .form-label {
    font-family: "Mitr", sans-serif;
    font-weight: 500;
    color: #212529;
    margin-bottom: 8px;
    font-size: 16px;
}

.profile-modal .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    font-family: "Mitr", sans-serif;
    transition: all 0.3s ease;
    background: #fff;
}

.profile-modal .form-control:disabled {
    background: #f8f9fa;
}

.profile-modal .form-control:focus {
    border-color: #50bfda;
    box-shadow: 0 0 0 0.2rem rgba(80, 191, 218, 0.25);
    background: #fff;
}

.profile-modal .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.profile-modal .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.profile-modal .invalid-feedback {
    font-family: "Mitr", sans-serif;
    font-size: 14px;
    color: #dc3545;
    margin-top: 5px;
}

.profile-modal .valid-feedback {
    font-family: "Mitr", sans-serif;
    font-size: 14px;
    color: #28a745;
    margin-top: 5px;
}

.profile-modal .form-text {
    font-family: "Mitr", sans-serif;
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

.profile-modal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 10px 25px;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.profile-modal .btn {
    font-family: "Mitr", sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.profile-modal .btn-primary {
    background: linear-gradient(135deg, #50bfda 0%, #3da8c4 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(80, 191, 218, 0.3);
}

.profile-modal .btn-primary:hover {
    background: linear-gradient(135deg, #3da8c4 0%, #2d8ba3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 191, 218, 0.4);
}

.profile-modal .btn-secondary {
    background: #6c757d;
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.profile-modal .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.profile-modal .btn:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 10px;
}

.password-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
    overflow: hidden;
    margin-bottom: 5px;
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-fill.weak {
    background: #dc3545;
    width: 25%;
}

.password-strength-fill.fair {
    background: #ffc107;
    width: 50%;
}

.password-strength-fill.good {
    background: #17a2b8;
    width: 75%;
}

.password-strength-fill.strong {
    background: #28a745;
    width: 100%;
}

.password-strength-text {
    font-family: "Mitr", sans-serif;
    font-size: 12px;
    margin: 0;
}

.password-strength-text.weak {
    color: #dc3545;
}

.password-strength-text.fair {
    color: #ffc107;
}

.password-strength-text.good {
    color: #17a2b8;
}

.password-strength-text.strong {
    color: #28a745;
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #50bfda;
}

.password-field-wrapper {
    position: relative;
}

/* Animation for modals */
.profile-modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.profile-modal.show .modal-dialog {
    transform: none;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .profile-modal .modal-dialog {
        margin: 10px;
        max-height: 90vh;
    }
    
    .profile-modal .modal-content {
        max-height: 90vh;
    }
    
    .profile-modal .modal-body {
        padding: 20px 15px;
        max-height: calc(90vh - 100px);
    }
    
    .profile-modal .modal-header {
        padding: 15px 20px;
    }
    
    .profile-modal .modal-footer {
        padding: 15px 20px;
    }
    
    .profile-modal .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .profile-modal .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .profile-modal .form-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .profile-modal .modal-dialog {
        margin: 5px;
    }
    
    .profile-modal .modal-content {
        border-radius: 10px;
    }
    
    .profile-modal .modal-header {
        border-radius: 10px 10px 0 0;
        padding: 12px 15px;
    }
    
    .profile-modal .modal-footer {
        border-radius: 0 0 10px 10px;
        padding: 12px 15px;
    }
    
    .profile-modal .modal-body {
        padding: 15px 12px;
    }
    
    .profile-modal .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Loading state for form submission */
.profile-modal .btn.loading {
    position: relative;
    color: transparent;
}

.profile-modal .btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success/Error Messages */
.profile-modal .alert {
    font-family: "Mitr", sans-serif;
    border-radius: 8px;
    border: none;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.profile-modal .alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.profile-modal .alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.profile-modal .alert-info {
    background: rgba(80, 191, 218, 0.1);
    color: #0c5460;
    border-left: 4px solid #50bfda;
}

/* Withholding Tax Alert Styles */
.withholding-tax-alert {
    margin-bottom: 30px;
}

.withholding-tax-alert .alert {
    border: none;
    border-radius: 15px;
    padding: 0;
    background: transparent;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.15);
    overflow: hidden;
}

.withholding-tax-alert .alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid #ffc107;
}

.withholding-tax-alert .alert-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.withholding-tax-alert .alert-icon i {
    font-size: 24px;
    color: #ffc107;
}

.withholding-tax-alert .alert-content {
    padding: 20px 0;
}

.withholding-tax-alert .alert-text {
    font-family: "Mitr", sans-serif;
    font-size: 16px;
    color: #856404;
    line-height: 1.5;
}

.withholding-tax-alert .alert-text .fw-bold {
    font-weight: 700;
}

/* Animation for withholding tax alert */
.withholding-tax-alert .alert {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for withholding tax alert */
@media (max-width: 768px) {
    .withholding-tax-alert .alert-icon {
        width: 50px;
        height: 50px;
    }
    
    .withholding-tax-alert .alert-icon i {
        font-size: 20px;
    }
    
    .withholding-tax-alert .alert-text {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .withholding-tax-alert .alert-icon {
        width: 45px;
        height: 45px;
    }
    
    .withholding-tax-alert .alert-icon i {
        font-size: 18px;
    }
    
    .withholding-tax-alert .alert-text {
        font-size: 13px;
    }
}

/* Withholding Tax Modal Styles */
#withholdingTaxModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow: hidden;
}

#withholdingTaxModal .modal-header {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 20px 25px;
    position: relative;
    overflow: hidden;
}

#withholdingTaxModal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

#withholdingTaxModal .modal-title {
    font-family: "Mitr", sans-serif;
    color: #212529;
    font-weight: 600;
    font-size: 20px;
    position: relative;
    z-index: 2;
    margin: 0;
}

#withholdingTaxModal .btn-close {
    filter: none;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

#withholdingTaxModal .btn-close:hover {
    opacity: 1;
}

#withholdingTaxModal .modal-body {
    padding: 30px 25px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

#withholdingTaxModal .form-section {
    margin-bottom: 25px;
}

#withholdingTaxModal .form-section h6 {
    font-family: "Mitr", sans-serif;
    font-weight: 600;
    color: #212529;
    margin-bottom: 15px;
}

#withholdingTaxModal .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    font-family: "Mitr", sans-serif;
    transition: all 0.3s ease;
    background: #fff;
}

#withholdingTaxModal .form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    background: #fff;
}

#withholdingTaxModal .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#withholdingTaxModal .invalid-feedback {
    font-family: "Mitr", sans-serif;
    font-size: 14px;
    color: #dc3545;
    margin-top: 5px;
}

#withholdingTaxModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 25px;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

#withholdingTaxModal .btn {
    font-family: "Mitr", sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

#withholdingTaxModal .btn-primary {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

#withholdingTaxModal .btn-primary:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%);
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

#withholdingTaxModal .btn-secondary {
    background: #6c757d;
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

#withholdingTaxModal .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

#withholdingTaxModal .btn:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* File Upload Styles for Withholding Tax Modal */
#withholdingTaxModal .upload-section {
    margin-top: 15px;
}

#withholdingTaxModal .upload-area {
    border: 2px dashed #ffc107;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 193, 7, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

#withholdingTaxModal .upload-area:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffb300;
}

#withholdingTaxModal .upload-area.dragover {
    background: rgba(255, 193, 7, 0.15);
    border-color: #ffb300;
    transform: scale(1.02);
}

#withholdingTaxModal .upload-icon {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 15px;
}

#withholdingTaxModal .upload-text {
    font-weight: 500;
    color: #212529;
    margin-bottom: 8px;
    font-size: 16px;
}

#withholdingTaxModal .upload-hint {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

#withholdingTaxModal .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#withholdingTaxModal .upload-preview {
    margin-top: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

#withholdingTaxModal .preview-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
}

#withholdingTaxModal .preview-content img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

#withholdingTaxModal .preview-info {
    flex: 1;
}

#withholdingTaxModal .preview-info p {
    margin: 0 0 5px 0;
    font-weight: 500;
    color: #212529;
}

#withholdingTaxModal .btn-remove-file {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#withholdingTaxModal .btn-remove-file:hover {
    background: #c82333;
}

/* Withholding Info Box */
.withholding-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.withholding-info h6 {
    color: #495057;
    margin-bottom: 15px;
    font-weight: 600;
}

.withholding-info p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.withholding-info p:last-child {
    margin-bottom: 0;
}

/* Withholding Tax Button */
.withholding-tax-btn {
    font-family: "Mitr", sans-serif;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.withholding-tax-btn:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%);
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.withholding-tax-btn:active {
    transform: translateY(0);
}

.withholding-tax-btn i {
    margin-right: 6px;
    font-size: 14px;
}

/* View Document Button */
.btn-success {
    font-family: "Mitr", sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    text-decoration: none;
}

.btn-success:active {
    transform: translateY(0);
}

.btn-success i {
    margin-right: 6px;
    font-size: 14px;
}

/* Custom Purple Button for Receipt */
.btn-purple {
    background: #9575cd;
    color: #ffffff;
}

.btn-purple:hover {
    background: #7e57c2;
    color: #ffffff;
}

/* Responsive adjustments for withholding tax modal */
@media (max-width: 768px) {
    #withholdingTaxModal .modal-dialog {
        margin: 10px;
        max-height: 90vh;
    }
    
    #withholdingTaxModal .modal-content {
        max-height: 90vh;
    }
    
    #withholdingTaxModal .modal-body {
        padding: 20px 15px;
        max-height: calc(90vh - 100px);
    }
    
    #withholdingTaxModal .modal-header {
        padding: 15px 20px;
    }
    
    #withholdingTaxModal .modal-footer {
        padding: 15px 20px;
    }
    
    #withholdingTaxModal .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    #withholdingTaxModal .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    #withholdingTaxModal .upload-area {
        padding: 30px 15px;
    }
    
    #withholdingTaxModal .upload-icon {
        font-size: 36px;
    }
    
    #withholdingTaxModal .upload-text {
        font-size: 14px;
    }
    
    #withholdingTaxModal .upload-hint {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    #withholdingTaxModal .modal-dialog {
        margin: 5px;
    }
    
    #withholdingTaxModal .modal-content {
        border-radius: 10px;
    }
    
    #withholdingTaxModal .modal-header {
        border-radius: 10px 10px 0 0;
        padding: 12px 15px;
    }
    
    #withholdingTaxModal .modal-footer {
        border-radius: 0 0 10px 10px;
        padding: 12px 15px;
    }
    
    #withholdingTaxModal .modal-body {
        padding: 15px 12px;
    }
    
    #withholdingTaxModal .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    #withholdingTaxModal .upload-area {
        padding: 25px 12px;
    }
    
    #withholdingTaxModal .upload-icon {
        font-size: 32px;
    }
    
    #withholdingTaxModal .upload-text {
        font-size: 13px;
    }
    
    #withholdingTaxModal .upload-hint {
        font-size: 11px;
    }
}
