/* 5K TaskForce User Dashboard Styles */

/* Main Container */
.fivek-dashboard-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header */
.fivek-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: #b9005d;
    color: #fff;
    border-bottom: 1px solid #b9005d;
    position: relative;
    z-index: 10;
}

.fivek-dashboard-logo {
    flex-shrink: 0;
    margin-right: 30px;
}

.fivek-dashboard-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.fivek-dashboard-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    flex-grow: 1;
}

.fivek-dashboard-menu li {
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    font-weight: 500;
    color: #f0f0f0;
}

.fivek-dashboard-menu li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.fivek-dashboard-menu li.active {
    background-color: #fff;
    color: #b9005d;
    font-weight: 600;
}

/* User Info and Avatar */
.fivek-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.fivek-user-avatar {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    width: 40px;
    height: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.fivek-user-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
}

.fivek-avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.fivek-user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.fivek-user-name {
    font-weight: 600;
    font-size: 15px;
}

.fivek-user-role-tag {
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 3px;
    display: inline-block;
}

.fivek-logout-btn {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
}

.fivek-logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Dashboard Content */
.fivek-dashboard-content {
    display: flex;
    gap: 30px;
}

.fivek-dashboard-sidebar {
    flex: 0 0 220px;
}

.fivek-dashboard-main {
    flex: 1;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

/* Dashboard Sections */
.fivek-dashboard-section {
    display: none;
}

.fivek-dashboard-section.active {
    display: block;
}

.fivek-dashboard-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #b9005d ;
    font-size: 20px;
}

/* Credit Summary */
.fivek-credit-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.fivek-credit-item {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin: 0 10px;
}

.fivek-credit-item:first-child {
    margin-left: 0;
}

.fivek-credit-item:last-child {
    margin-right: 0;
}

.fivek-credit-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 5px;
}

.fivek-credit-label {
    color: #666;
    font-size: 14px;
}

/* Dashboard Cards */
.fivek-dashboard-cards {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.fivek-card {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.fivek-card h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Activity List */
.fivek-activity-list {
    list-style: none;
    padding: 0;
}

.fivek-activity-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.fivek-activity-list li:last-child {
    border-bottom: none;
}

.fivek-activity-user {
    font-weight: bold;
    color: #2271b1;
}

.fivek-activity-tokens {
    font-weight: bold;
}

.fivek-activity-module {
    color: #666;
}

.fivek-activity-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

/* Quick Actions */
.fivek-quick-actions {
    list-style: none;
    padding: 0;
}

.fivek-quick-actions li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.fivek-quick-actions li:last-child {
    border-bottom: none;
}

.fivek-quick-actions a {
    text-decoration: none;
    color: #2271b1;
    display: block;
}

.fivek-quick-actions a:hover {
    color: #135e96;
}

/* Credit Details */
.fivek-credit-details {
    margin-top: 20px;
}

.fivek-credit-section {
    margin-bottom: 40px;
}

.fivek-credit-chart {
    margin: 20px 0;
    height: 300px;
}

.fivek-credit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.fivek-credit-table th, 
.fivek-credit-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.fivek-credit-table th {
    background-color: #f7f7f7;
    font-weight: 600;
}

/* User Management */
.fivek-user-management {
    margin-top: 20px;
}

.fivek-add-user-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.fivek-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.fivek-form-group {
    flex: 1;
    min-width: 200px;
}

.fivek-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.fivek-form-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fivek-form-actions {
    margin-top: 20px;
    gap: 0 20px;
}

.fivek-button {
    background-color: #2271b1;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.fivek-button:hover {
    background-color: #135e96;
}

.fivek-users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background-color: transparent;
}

.fivek-users-table thead th {
    text-align: left;
    padding: 16px 12px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
    position: relative;
    border: none !important;
}

.fivek-users-table tbody tr {
    transition: all 0.2s ease;
    border-radius: 8px;
    position: relative;
    border: none;
}

.fivek-users-table tbody tr:hover {
    background-color: rgba(185,0,93,0.03);
}

.fivek-users-table tbody td {
    padding: 16px 12px;
    vertical-align: middle;
    color: #333;
    font-size: 14px;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
    border-top: none;
    border-left: none;
    border-right: none;
}

/* User info cell styling */
.fivek-user-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fivek-user-info-cell img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.fivek-users-table tr:hover .fivek-user-info-cell img {
    border-color: #b9005d;
    transform: scale(1.05);
}

.fivek-user-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fivek-user-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.fivek-user-name-wrapper {
    display: flex;
    flex-direction: column;
}

.fivek-user-name {
    font-weight: 600;
    color: #333 !important;
    margin-bottom: 3px;
}

.fivek-user-role {
    font-size: 12px;
    padding: 2px 8px;
    background-color: rgba(185,0,93,0.1);
    color: #b9005d;
    border-radius: 30px;
    display: inline-block;
    font-weight: 500;
    margin-bottom: 8px;
}

.fivek-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    justify-content: flex-end;
}

.fivek-users-table tbody tr:hover .fivek-user-actions {
    opacity: 1;
}

.fivek-action-btn {
    background: none;
    border: 1px solid transparent;
    padding: 5px 10px;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}

.fivek-action-btn:hover {
    color: #333;
    background-color: #f0f0f0;
    border-color: #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.fivek-action-btn:active {
    transform: scale(0.98);
    background-color: #e0e0e0;
}

.fivek-edit-btn:hover {
    background-color: #e6f3ff;
    color: #005a9e;
    border-color: #b3d7ff;
}

.fivek-view-btn:hover {
    background-color: #f0f0f0;
    color: #333;
    border-color: #e0e0e0;
}

.fivek-remove-btn:hover {
    background-color: #ffebee;
    color: #b71c1c;
    border-color: #ffcdd2;
}

@media screen and (max-width: 768px) {
    .fivek-user-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .fivek-user-actions {
        justify-content: flex-start;
    }
}

/* Profile */
.fivek-profile-form {
    max-width: 800px;
}

/* Login Form */
.fivek-login-container {
    max-width: 400px;
    margin: 40px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Enhanced message styling for registration form */
.fivek-registration-container .fivek-message-container {
    margin-top: 25px;
    transition: all 0.3s ease;
}

.fivek-registration-container .fivek-message {
    padding: 15px 15px 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.5;
    font-weight: 500;
}

.fivek-registration-container .fivek-message:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.fivek-registration-container .fivek-message.error {
    background-color: #fff5f5;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.fivek-registration-container .fivek-message.error:before {
    background-color: #d32f2f;
}

.fivek-registration-container .fivek-message.success {
    background-color: #f1f8e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.fivek-registration-container .fivek-message.success:before {
    background-color: #2e7d32;
}

.fivek-registration-container .registration-success {
    padding: 25px;
    background-color: #f1f8e9;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease forwards;
}

.fivek-registration-container .registration-success:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #2e7d32;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fivek-login-container h2 {
    margin-top: 0;
    color: #2271b1;
    margin-bottom: 30px;
}

.fivek-login-form .fivek-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.fivek-login-btn {
    width: 100%;
    background-color: #2271b1;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.fivek-login-btn:hover {
    background-color: #135e96;
}

.fivek-login-links {
    margin-top: 20px;
    font-size: 14px;
}

.fivek-login-links a {
    color: #2271b1;
    text-decoration: none;
}

.fivek-login-links a:hover {
    text-decoration: underline;
}

.fivek-login-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Messages */
.fivek-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
}

.fivek-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
}

.fivek-loading {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .fivek-dashboard-content {
        flex-direction: column;
    }
    
    .fivek-dashboard-sidebar {
        flex: 0 0 auto;
        margin-bottom: 20px;
    }
    
    .fivek-credit-summary {
        flex-direction: column;
    }
    
    .fivek-credit-item {
        margin: 0 0 15px 0;
    }
    
    .fivek-dashboard-cards {
        flex-direction: column;
    }
    
    .fivek-dashboard-header {
        flex-direction: column;
    }
    
    .fivek-user-info {
        margin-top: 15px;
    }
}

.fivek-dashboard {
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.fivek-dashboard-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fivek-dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    position: relative;
}

.fivek-dashboard-section {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .fivek-dashboard-content {
        padding: 15px;
    }

    .fivek-dashboard-section {
        padding: 15px;
    }
}

/* Reset and base styles with higher specificity */
.fivek-dashboard-container,
.fivek-dashboard-container * {
    box-sizing: border-box !important;
}

.fivek-dashboard-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    color: #333 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    max-width: 1200px !important;
    background-color: #fff !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: fixed !important;
    top: 0;
    left: 0;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    position: relative !important;
}

/* Merged Dashboard Header and Navigation */
.fivek-dashboard-container .fivek-dashboard-header {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 15px 20px !important;
    background-color: #b9005d !important;
    color: #fff !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.fivek-dashboard-container .fivek-header-left {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    gap: 20px !important;
}

.fivek-dashboard-container .fivek-dashboard-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-right: 15px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.fivek-dashboard-container .fivek-dashboard-logo img {
    height: auto;
    max-width: 120px !important;
}

.fivek-dashboard-container .fivek-user-info {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #fff !important;
    padding-left: 20px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.fivek-dashboard-container .fivek-user-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.fivek-dashboard-container .fivek-user-name {
    font-weight: 500 !important;
    color: #fff !important;
}

.fivek-dashboard-container .fivek-user-role-tag {
    font-size: 0.75em !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    display: inline-block !important;
    color: #fff !important;
}

.fivek-dashboard-container .fivek-user-info img {
    border-radius: 50% !important;
    margin: 0 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.fivek-dashboard-container .fivek-logout-btn {
    padding: 5px 12px !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 4px !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.85em !important;
    transition: all 0.2s !important;
    display: inline-block !important;
    margin-left: 10px !important;
}

.fivek-dashboard-container .fivek-logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    text-decoration: none !important;
    color: #fff !important;
}

/* Improved Navigation Menu in Header */
.fivek-dashboard-container .fivek-dashboard-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 5px !important;
    flex-grow: 1 !important;
}

.fivek-dashboard-container .fivek-dashboard-menu li {
    padding: 8px 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: block !important;
    margin: 0 !important;
    color: white !important;
    font-weight: 500 !important;
    border-radius: 20px !important;
    text-align: center !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}
.fivek-dashboard-container .fivek-dashboard-menu li a { color: #FFF; }

.fivek-dashboard-container .fivek-dashboard-menu li:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1) !important;
}

.fivek-dashboard-container .fivek-dashboard-menu li.active {
    background-color: white !important;
    color: #b9005d !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.fivek-dashboard-container .fivek-dashboard-menu li.active a { color: #b9005d !important; }

.fivek-dashboard-container .fivek-dashboard-menu li:before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%) !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
    z-index: -1 !important;
}

.fivek-dashboard-container .fivek-dashboard-menu li:hover:before {
    opacity: 1 !important;
}

/* Dashboard Content Layout */
.fivek-dashboard-container .fivek-dashboard-content {
    display: flex !important;
    min-height: 500px !important;
    flex-direction: column !important;
}

/* Main Content Area */
.fivek-dashboard-container .fivek-dashboard-main {
    flex-grow: 1 !important;
    padding: 25px !important;
    background-color: #fff !important;
    min-height: 500px !important;
    width: 100% !important;
}

/* User role tag styling */
.fivek-user-role-tag {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    font-size: 0.7em !important;
    padding: 3px 8px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Dashboard sections */
.fivek-dashboard-section {
    display: none;
    max-width: 100% !important;
    width: 100%;
}

.fivek-dashboard-section.active {
    display: block;
}

/* Card styling */
.fivek-dashboard-cards {
    /* display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
    gap: 20px;
    margin-top: 20px;
}

.fivek-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    position: relative;
}

.fivek-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Credit summary styling */
.fivek-credit-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.fivek-credit-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    text-align: center;
    flex: 1;
    min-width: 150px;
    transition: transform 0.2s;
}

.fivek-credit-item:hover {
    transform: translateY(-5px);
}

.fivek-credit-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #b9005d;
}

.fivek-credit-label {
    color: #666;
    font-size: 0.9em;
}

/* Quick actions styling */
.fivek-quick-actions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fivek-quick-actions li {
    margin-bottom: 10px;
}

.fivek-quick-actions li a {
    display: block;
    padding: 10px 15px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s;
}

.fivek-quick-actions li a:hover {
    background-color: #e0e0e0;
    transform: translateX(5px);
}

/* Activity list styling */
.fivek-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fivek-activity-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
}

.fivek-activity-list li:last-child {
    border-bottom: none;
}

.fivek-activity-user {
    font-weight: bold;
    color: #b9005d;
}

.fivek-activity-tokens {
    font-weight: 500;
}

.fivek-activity-module {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.fivek-activity-date {
    display: block;
    color: #999;
    font-size: 0.85em;
    margin-top: 3px;
}

/* Credit details styling */
.fivek-credit-details {
    margin-top: 20px;
}

.fivek-credit-section {
    margin-bottom: 30px;
}

.fivek-table-responsive {
    overflow-x: auto;
}

.fivek-credit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.fivek-credit-table th {
    background-color: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.fivek-credit-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.fivek-credit-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Profile Section Styles */
.fivek-profile-section {
    width: 100%;
}

.fivek-profile-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.fivek-profile-sidebar {
    flex: 0 0 250px;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.fivek-profile-avatar-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.fivek-profile-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fivek-default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #b9005d 0%, #e91e63 100%);
    text-transform: uppercase;
}

.fivek-profile-avatar-edit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.3));
}

.fivek-profile-avatar-edit:hover {
    transform: scale(1.1);
}

.fivek-profile-avatar-edit-icon {
    font-size: 24px;
}

.fivek-profile-info h4 {
    margin: 10px 0 5px;
    font-size: 1.2em;
    color: #333;
}

.fivek-profile-email {
    margin: 5px 0;
    color: #666;
    font-size: 0.95em;
    word-break: break-all;
}

.fivek-profile-date {
    margin: 5px 0;
    color: #888;
    font-size: 0.85em;
}

.fivek-profile-date span {
    color: #555;
}

.fivek-profile-role-tag {
    display: inline-block;
    background-color: #b9005d;
    color: #fff;
    font-size: 0.6em;
    padding: 2px 8px;
    margin-left: 10px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
}

.fivek-profile-form-container {
    flex: 1;
    min-width: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.fivek-profile-form-tabs {
    display: flex;
    background-color: #f5f5f5;
    overflow: hidden;
    border-bottom: 1px solid #e0e0e0;
}

.fivek-profile-tab {
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    position: relative;
}

.fivek-profile-tab:hover {
    background-color: #efefef;
}

.fivek-profile-tab.active {
    background-color: #fff;
    color: #b9005d;
}

.fivek-profile-tab.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #b9005d;
}

.fivek-profile-tab-panel {
    display: none;
    padding: 25px;
}

.fivek-profile-tab-panel.active {
    display: block;
}

/* Form Styling */
.fivek-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Add extra spacing for password form */
#fivek-update-password-form .fivek-form-group {
    margin-bottom: 20px;
}

#fivek-update-password-form .fivek-password-strength {
    margin: 25px 0;
}

#fivek-update-password-form .fivek-password-requirements {
    margin: 25px 0;
    padding: 15px 20px;
}

#fivek-update-password-form .fivek-form-actions {
    margin-top: 30px;
}

.fivek-form-group {
    flex: 1;
    position: relative;
}

.fivek-form-group.full-width {
    width: 100%;
}

.fivek-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.fivek-form-group input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s;
}

.fivek-form-group input:focus {
    border-color: #b9005d;
    box-shadow: 0 0 0 2px rgba(185, 0, 93, 0.2);
    outline: none;
}

.fivek-form-icon {
    position: absolute;
    left: 12px;
    top: 40px;
    color: #888;
    font-size: 18px;
}

.fivek-form-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 20px;
}

.fivek-button {
    padding: 12px 25px;
    background-color: #b9005d;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.fivek-button:hover {
    background-color: #a0004d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.fivek-form-status {
    margin-left: 15px;
    font-size: 0.9em;
}

.fivek-password-toggle {
    position: absolute;
    right: 10px;
    top: 40px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #888;
    padding: 0;
}

.fivek-password-toggle:focus {
    outline: none;
}

.fivek-password-toggle:hover {
    color: #757575;
}

.fivek-remember-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 25px;
}
.fivek-login-body { margin-top: 15px; }


/* Custom checkbox */
.fivek-checkbox {
    position: relative;
    display: flex !important;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 8px;
}

.fivek-checkbox input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.fivek-checkmark {
    height: 20px;
    width: 20px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    background-color: white;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fivek-checkbox:hover input ~ .fivek-checkmark {
    border-color: #b9005d;
}

.fivek-checkbox input:checked ~ .fivek-checkmark {
    background-color: #b9005d;
    border-color: #b9005d;
}

.fivek-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.fivek-checkbox input:checked ~ .fivek-checkmark:after {
    display: block;
}

.fivek-checkbox-text {
    font-size: 14px;
    color: #666;
}

.fivek-forgot-password {
    font-size: 14px;
    color: #b9005d;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.fivek-forgot-password:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #b9005d;
    transition: width 0.3s ease;
}

.fivek-forgot-password:hover:after {
    width: 100%;
}

.fivek-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #b9005d 0%, #e91e63 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(185, 0, 93, 0.25);
    position: relative;
    overflow: hidden;
}

.fivek-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s;
}

.fivek-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(185, 0, 93, 0.35);
}

.fivek-button:hover:before {
    left: 100%;
}

.fivek-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-text {
    margin-right: 8px;
}

.button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Improved loading spinner */
.fivek-loading-spinner {
    display: none;
    position: absolute;
    width: 24px;
    height: 24px;
}

.fivek-loading-spinner div {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    animation: fivek-spinner 1.2s linear infinite;
}

.fivek-loading-spinner div:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.fivek-loading-spinner div:nth-child(2) {
    top: 0;
    right: 0;
    animation-delay: 0.3s;
}

.fivek-loading-spinner div:nth-child(3) {
    bottom: 0;
    right: 0;
    animation-delay: 0.6s;
}

.fivek-loading-spinner div:nth-child(4) {
    bottom: 0;
    left: 0;
    animation-delay: 0.9s;
}

@keyframes fivek-spinner {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.fivek-message-container {
    margin-top: 20px;
}

.fivek-message-container .fivek-error {
    background: #feefef;
    color: #e53935;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    border-left: 4px solid #e53935;
    box-shadow: 0 2px 10px rgba(229, 57, 53, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.fivek-message-container .fivek-success {
    background: #edf7ed;
    color: #4caf50;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    border-left: 4px solid #4caf50;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .fivek-login-container {
        max-width: 100%;
        margin: 20px auto;
        border-radius: 12px;
    }
    
    .fivek-login-header {
        padding: 30px 20px 20px;
    }
    
    .fivek-login-body {
        padding: 25px 20px 15px;
    }
}

/* Improved Sub-User Management Styles */
.fivek-sub-user-management {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

/* Section header styling */
#dashboard-users .fivek-section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

#dashboard-users .fivek-section-header h3 {
    margin-bottom: 5px;
}

#dashboard-users .fivek-section-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

/* Empty State */
.fivek-empty-state {
    text-align: center;
    padding: 40px 20px;
    background-color: #fdfdfd;
    border: 1px dashed #e0e0e0;
    border-radius: 6px;
}

.fivek-empty-state-icon {
    margin-bottom: 15px;
    display: inline-block;
    padding: 15px;
    background-color: #eef6fc;
    border-radius: 50%;
}

.fivek-empty-state-icon svg {
    fill: #2271b1;
    display: block;
}

.fivek-empty-state h4 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.fivek-empty-state p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.fivek-empty-state .fivek-add-user-btn {
    display: inline-flex;
    padding: 10px 20px;
    font-size: 14px;
    background-color: #b9005d;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.fivek-empty-state .fivek-add-user-btn svg {
    margin-right: 8px;
}

.fivek-empty-state .fivek-add-user-btn:hover {
    background-color: #135e96;
}

/* Table Actions (Search and Add Button) */
.fivek-table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.fivek-search-container {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}

.fivek-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fivek-search-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.fivek-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.fivek-add-user-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.fivek-add-user-btn svg {
    margin-right: 8px;
    fill: currentColor;
}

.fivek-add-user-btn:hover {
    background-color: #135e96;
}

/* Users Table */
.fivek-table-responsive {
    overflow-x: auto;
    margin-top: 10px;
}

.fivek-users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px;
    margin-top: 0;
}

.fivek-users-table thead th {
    background-color: #f8f9fa;
    color: #555;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.fivek-users-table thead th:first-child {
    border-top-left-radius: 6px;
}
.fivek-users-table thead th:last-child {
    border-top-right-radius: 6px;
}

.fivek-users-table tbody tr {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s ease;
}

.fivek-users-table tbody tr:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.07);
}

.fivek-users-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid #f1f1f1;
    color: #444;
}

.fivek-users-table tbody tr td:first-child {
    border-left: 1px solid #f1f1f1;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
.fivek-users-table tbody tr td:last-child {
    border-right: 1px solid #f1f1f1;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}


/* User Info Cell */
.fivek-user-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fivek-user-info-cell img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fivek-user-details {
    flex-grow: 1;
}

.fivek-user-name {
    font-weight: 600;
    color: #333 !important;
    margin-bottom: 2px;
    display: block;
}

.fivek-user-role {
    font-size: 12px;
    color: #777;
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 8px;
}

/* Credits Badge & Meter */
.fivek-credits-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
    margin-top: 4px;
}

.fivek-credits-badge.sharing {
    background-color: #e6f3ff;
    color: #005a9e;
}

.fivek-credits-badge.own {
    background-color: #e6fff5;
    color: #00643c;
}

.fivek-badge-label {
    margin-right: 5px;
    opacity: 0.8;
}

.fivek-badge-value {
    font-weight: 600;
}

.fivek-credit-meter-wrapper {
    margin-top: 6px;
    max-width: 150px;
}

.fivek-credit-meter {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.fivek-credit-meter-fill {
    height: 100%;
    background-color: #28a745;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.fivek-credit-meter-fill.warning {
    background-color: #ffc107;
}

.fivek-credit-meter-fill.danger {
    background-color: #dc3545;
}


/* Date Info Cell */
.fivek-date-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fivek-date-value {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.fivek-date-ago {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    white-space: nowrap;
}

/* User Actions Cell */
.fivek-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.2s ease;
    justify-content: flex-start;
}

.fivek-user-actions button {
    background: #b9005d;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px;
    padding: 5px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
    width: 100px;
}

#fivek-user-search { padding-left: 40px; }
.fivek-users-table tbody tr:hover .fivek-user-actions {
    opacity: 1;
}

.fivek-action-btn {
    background: none;
    border: 1px solid transparent;
    padding: 5px 10px;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}

.fivek-action-btn:hover {
    color: #333;
    background-color: #f0f0f0;
    border-color: #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.fivek-action-btn:active {
    transform: scale(0.98);
    background-color: #e0e0e0;
}

.fivek-edit-btn:hover {
    background-color: #e6f3ff;
    color: #005a9e;
    border-color: #b3d7ff;
}

.fivek-view-btn:hover {
    background-color: #f0f0f0;
    color: #333;
    border-color: #e0e0e0;
}

.fivek-remove-btn:hover {
    background-color: #ffebee;
    color: #b71c1c;
    border-color: #ffcdd2;
}

/* Danger Button Style */
.fivek-danger-btn {
    color: #c62828; /* Dark red text */
    border: 1px solid #ffccbc; /* Light red border */
    background: #FFF;
}

.fivek-danger-btn:hover {
    background-color: #ffccbc; /* Darker red background */
    color: #b71c1c; /* Darker red text */
    border-color: #ffab91;
}

/* Loading Spinner */
.fivek-loading-spinner {
    display: inline-block; /* Or block if needed */
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid rgba(185, 0, 93, 0.2); /* Spinner color using brand color */
    border-radius: 50%;
    border-top-color: #b9005d; /* Spinner top color */
    animation: fivek-spin 0.8s linear infinite;
    vertical-align: middle;
    box-sizing: border-box;
}

/* For spinners inside buttons */
.fivek-button .fivek-loading-spinner {
    border-color: rgba(255, 255, 255, 0.3); /* White spinner for dark buttons */
    border-top-color: #fff;
}

@keyframes fivek-spin {
    to { transform: rotate(360deg); }
}

/* Container for centered spinner (used in modals before content load) */
.fivek-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 150px; /* Ensure it has some height */
}

.fivek-spinner-container .fivek-loading-spinner {
    margin-left: 0; /* Remove margin when centered */
    width: 30px; /* Make centered spinner larger */
    height: 30px;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .fivek-users-table thead {
        display: none;
    }

    .fivek-users-table tbody,
    .fivek-users-table tr,
    .fivek-users-table td {
        display: block;
        width: 100%;
    }

    .fivek-users-table tbody tr {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        box-shadow: none;
    }
    .fivek-users-table tbody tr td:first-child,
    .fivek-users-table tbody tr td:last-child {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .fivek-users-table tbody tr td:first-child {
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
    }
     .fivek-users-table tbody tr td:last-child {
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
        border-bottom: none;
    }

    .fivek-users-table tbody td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #f0f0f0;
    }

    .fivek-users-table tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
    }

    .fivek-user-info-cell {
        justify-content: flex-end;
    }

    .fivek-user-actions {
        opacity: 1;
        justify-content: flex-end;
        padding-top: 5px;
    }

    .fivek-date-info {
         align-items: flex-end;
    }

    .fivek-table-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .fivek-search-container {
        max-width: none;
    }
}

/* Add data-label attributes to PHP if using the mobile view above */
/* Example for PHP: <td data-label="Email"><?php echo esc_html($sub_user->user_email); ?></td> */

/* Modal Styles */
#fivek-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.fivek-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    padding: 30px 40px;
}

.fivek-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.fivek-modal-close:hover {
    color: #333;
}

.fivek-modal-content .fivek-section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.fivek-modal-content .fivek-section-header h3 {
    margin-bottom: 5px;
    color: #b9005d;
}

.fivek-modal-content .fivek-section-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

/* Ensure form inside modal uses available space */
#fivek-add-subuser-form {
    width: 100%;
}

/* Adjustments for Add User form within modal */
.fivek-add-user-section {
    display: block;
}

.fivek-add-user-form-container {
    padding: 0;
}

.fivek-tips-card {
    margin-top: 25px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
}

.fivek-login-form-wrapper { padding: 20px !important; }

/* Reset Password Form Styles */
#fivek-reset-password-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

#fivek-reset-password-form .form-group {
    margin-bottom: 15px;
}

#fivek-reset-password-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

#fivek-reset-password-form input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#fivek-reset-password-form button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

#fivek-reset-password-form button[type="submit"]:hover {
    background-color: #005177;
}

#fivek-reset-password-form button[type="submit"].loading {
    opacity: 0.7;
    cursor: not-allowed;
}

#fivek-reset-password-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

#fivek-reset-password-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#fivek-reset-password-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fivek-tasqsuite-link {
    display: none !important;
}

.fivek-dashboard-container .fivek-tasqsuite-menu-item {
    margin-left: auto !important; /* Push it to the right side */
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Subscription Styles */
.fivek-subscriptions-container {
    padding: 20px 0;
}

.fivek-subscription-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    padding: 20px;
}

.fivek-subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.fivek-subscription-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.fivek-subscription-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.fivek-status-active {
    background-color: #e0f7e6;
    color: #0b8a25;
}

.fivek-status-expired, .fivek-status-canceled {
    background-color: #fee7e7;
    color: #d92c2c;
}

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

.fivek-status-paid {
    background-color: #e0f7e6;
    color: #0b8a25;
}

.fivek-subscription-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.fivek-subscription-detail {
    display: flex;
    flex-direction: column;
}

.fivek-detail-label {
    color: #666;
    font-size: 13px;
    margin-bottom: 4px;
}

.fivek-detail-value {
    font-weight: 500;
}

.fivek-subscription-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.fivek-button-secondary {
    background-color: #f0f2f5;
    color: #333;
    border: 1px solid #ddd;
}

.fivek-button-secondary:hover {
    background-color: #e6e8eb;
}

.fivek-button-danger {
    background-color: #fff;
    color: #d92c2c;
    border: 1px solid #d92c2c;
}

.fivek-button-danger:hover {
    background-color: #d92c2c;
    color: #fff;
}

.fivek-subscription-history {
    margin-top: 30px;
}

.fivek-subscription-history h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.fivek-billing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.fivek-billing-table th,
.fivek-billing-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.fivek-billing-table th {
    background-color: #f9f9f9;
    font-weight: 500;
    color: #555;
}

.fivek-payment-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.fivek-invoice-link {
    color: #007bff;
    text-decoration: none;
}

.fivek-invoice-link:hover {
    text-decoration: underline;
}

.fivek-no-subscription {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.fivek-no-subscription-icon {
    margin-bottom: 20px;
}

.fivek-no-subscription h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.fivek-no-subscription p {
    color: #666;
    margin-bottom: 20px;
}
.fivek-available-credits { top: 0 !important; }

.fivek-dashboard-section h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fivek-subscription-details {
        grid-template-columns: 1fr;
    }
    
    .fivek-subscription-actions {
        flex-direction: column;
    }
    
    .fivek-subscription-actions button {
        width: 100%;
    }
}

/* Credit Statistics Overview */
.fivek-credit-stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fivek-credit-stats-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fivek-credit-stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fivek-credit-stats-card h4 {
    color: #b9005d;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.fivek-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.fivek-stat-label {
    color: #777;
    font-size: 14px;
}

/* Chart Styling */
.fivek-credit-chart-container {
    grid-column: 1 / -1;
}

.fivek-credit-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.fivek-chart-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 60px;
}

.fivek-chart-bar {
    width: 30px;
    background: linear-gradient(to top, #b9005d, #ff338f);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    min-height: 1px;
    position: relative;
}

.fivek-chart-bar:hover {
    background: linear-gradient(to top, #980049, #ff5ca5);
    cursor: pointer;
}

.fivek-chart-bar:hover::after {
    content: attr(title);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}

.fivek-chart-label {
    margin-top: 8px;
    font-size: 12px;
    color: #777;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fivek-credit-stats-overview {
        grid-template-columns: 1fr;
    }
    
    .fivek-chart-bar {
        width: 20px;
    }
    
    .fivek-chart-bar-container {
        max-width: 40px;
    }
    /* Header layout */
    #page .fivek-dashboard-header {
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 15px !important;
        flex-direction: row;
        -ms-flex-direction: row;
        gap: 0 10px !important;
    }

    .fivek-dashboard-logo {
        margin-bottom: 0;
        text-align: left;
        max-width: 70%;
    }

    .fivek-dashboard-container .fivek-dashboard-logo { border-right: 0 !important; }

    /* Hamburger Menu */
    #fivek-hamburger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        padding: 10px;
        margin-left: auto;
        background-color: #e73294;
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 2px solid #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        width: 42px;
        height: 42px;
        position: relative;
        z-index: 1000;
        top: 0;
        right: 0;
    }

    #fivek-hamburger-menu:hover {
        background-color: rgba(255, 255, 255, 0.35);
        transform: scale(1.05);
    }

    #fivek-hamburger-menu:active {
        transform: scale(0.95);
    }

    /* Hamburger lines */
    /* #fivek-hamburger-menu .fivek-hamburger-line {
        display: block;
        width: 26px;
        height: 3px;
        margin-bottom: 5px;
        background-color: white;
        border-radius: 3px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    #fivek-hamburger-menu .fivek-hamburger-line:last-child {
        margin-bottom: 0;
    } */

    /* Animation for active state */
    /* #fivek-hamburger-menu.active .fivek-hamburger-line:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    #fivek-hamburger-menu.active .fivek-hamburger-line:nth-child(2) {
        opacity: 0;
    }

    #fivek-hamburger-menu.active .fivek-hamburger-line:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    } */

    /* Dashboard Menu */
    #fivek-dashboard-menu {
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        background-color: #b9005d;
        display: none !important;
        flex-direction: column !important;
        padding: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        border-radius: 0;
        overflow: hidden;
    }

    #fivek-dashboard-menu.active {
        display: flex !important;
    }

    #fivek-dashboard-menu li {
        margin: 0 !important;
        padding: 15px 20px !important;
        text-align: left !important;
        width: 100% !important;
        color: white !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: background-color 0.2s ease !important;
        border-radius: 0 !important;
    }

    #fivek-dashboard-menu li:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

    #fivek-dashboard-menu li.active {
        background-color: white !important;
        color: #b9005d !important;
    }

    #fivek-dashboard-menu li:last-child {
        border-bottom: none !important;
    }

    /* User info placement */
    .fivek-user-info {
        width: 100%;
        order: 3;
        margin-top: 15px;
        justify-content: flex-start;
        border-left: none !important;
        padding-left: 0 !important;
    }

    .fivek-dashboard-column-left,
    .fivek-dashboard-column-right { 
        width: 100% !important; 
        max-width: 100% !important;
    }
    .fivek-dashboard-container .fivek-user-info {
        padding-left: 0 !important;
        border-left: 0 !important;
    }
    .fivek-dashboard-container .fivek-user-name { text-align: left; }
    /* #dashboard-profile {
        display: flex;
        flex-direction: column;
        -ms-flex-direction: column;
        justify-content: center;
    } */
    .fivek-profile-sidebar { flex: 0 0 100%; }
    .fivek-profile-form-container { min-width: 100%; }
    .fivek-profile-tab-panel {
        max-width: 100%;
        width: calc(100% - 25px) !important;
    }
    .fivek-users-table tbody td {
        padding-left: 0;
        text-align: left;
    }
    .fivek-user-actions { justify-content: flex-start; }
    .fivek-users-table { border: none !important; }
    .fivek-users-table tbody td { padding: 15px !important; }
    .fivek-date-info { align-items: flex-start; }
    .fivek-user-details { margin-left: 0; margin-right: 0; }
    .fivek-sub-user-management {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    .fivek-table-responsive {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    .fivek-dashboard-container .fivek-dashboard-main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .fivek-hamburger-menu span { margin: 2px; }
    .fivek-hamburger-menu.active span:nth-child(1) {
        transform: translateY(7px) rotate(50deg);
    }
    .fivek-hamburger-menu.active span:nth-child(3) {
        transform: translateY(-5px) rotate(-50deg);
    }
}

@media (max-width: 480px) {
    .fivek-user-info {
        flex-direction: row;
        -ms-flex-direction: row;
        flex-wrap: nowrap;
    }
}