/* GetReelTraffic.com - Modern Landing Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

.cta-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: #667eea;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: #f8fafc;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: #1a202c;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 1rem;
    text-align: center;
    color: #cbd5e0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Authentication System Styles */
.grt-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.grt-modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.grt-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    position: relative;
}

.grt-modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.grt-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.grt-close:hover {
    opacity: 1;
}

.grt-modal-body {
    padding: 30px 20px;
}

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

.grt-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.grt-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.grt-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.grt-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.grt-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.grt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.grt-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.grt-btn-logout {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    width: auto;
}

.grt-btn-logout:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.grt-error {
    background: #ffe6e6;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #ffcdd2;
    font-size: 14px;
}

.grt-user-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #e1e8ed;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
}

.grt-user-info {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.grt-role-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    margin-left: 8px;
}

/* Authenticated navigation styling */
.nav-links a.grt-authenticated {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.nav-links a.grt-authenticated:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .grt-modal-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .grt-user-menu {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin: 10px 0;
        justify-content: space-between;
    }
}

/* ========================
   ADMIN DASHBOARD STYLES
   ======================== */

/* Admin Dashboard Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.sidebar-header h3 i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.admin-label {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
    margin-top: 0.25rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu li.active a {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar-menu a i {
    width: 20px;
    margin-right: 0.75rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.user-info i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    opacity: 0.8;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.7;
}

.logout-btn {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    text-decoration: none;
    padding: 0.375rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

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

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
    min-height: 100vh;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.header-left h1 {
    margin: 0 0 0.5rem 0;
    color: #343a40;
    font-size: 2rem;
    font-weight: 700;
}

.header-left p {
    margin: 0;
    color: #6c757d;
    font-size: 1.1rem;
}

.header-right .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.stat-icon.primary { background: rgba(0,123,255,0.1); color: #007bff; }
.stat-icon.success { background: rgba(40,167,69,0.1); color: #28a745; }
.stat-icon.warning { background: rgba(255,193,7,0.1); color: #ffc107; }
.stat-icon.info { background: rgba(23,162,184,0.1); color: #17a2b8; }

.stat-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: #343a40;
}

.stat-content p {
    margin: 0 0 0.5rem 0;
    color: #6c757d;
    font-weight: 600;
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-change.success { color: #28a745; }
.stat-change.warning { color: #ffc107; }

/* Dashboard Cards */
.dashboard-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.card-header h3 {
    margin: 0;
    color: #343a40;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.card-header h3 i {
    margin-right: 0.5rem;
    color: #007bff;
}

.card-body {
    padding: 1.5rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    transform: translateY(-3px);
    border-color: #007bff;
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.quick-action-btn i {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.quick-action-btn span {
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.quick-action-btn small {
    font-size: 0.75rem;
    opacity: 0.8;
    text-align: center;
}

.quick-action-btn.has-badge small.badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    min-width: 1.5rem;
    text-align: center;
    font-weight: 700;
}

/* Activity List */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

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

.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #343a40;
}

.activity-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.activity-source {
    font-style: italic;
    opacity: 0.7;
    margin-left: 0.5rem;
}

/* Status List */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-item {
    display: flex;
    align-items: center;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.status-indicator.success { background: #28a745; }
.status-indicator.warning { background: #ffc107; }
.status-indicator.danger { background: #dc3545; }

.status-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #343a40;
}

.status-desc {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Loading and Alert States */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.alert-info {
    background: rgba(23,162,184,0.1);
    color: #17a2b8;
    border: 1px solid rgba(23,162,184,0.2);
}

.alert i {
    margin-right: 0.5rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

/* Hide admin dashboard by default */
.admin-dashboard {
    display: none;
}

.admin-dashboard.active {
    display: block;
}

/* Hide landing page when admin is active */
.landing-page.hidden {
    display: none;
}

/* Admin Dashboard Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ========================
   REGISTRATION FORM STYLES
   ======================== */

/* Registration Form Styles */
.registration-view {
    display: block;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.registration-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.registration-header .header-content {
    text-align: center;
    position: relative;
}

.registration-header h1 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.registration-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin: 0;
}

.registration-header .back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.registration-header .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) translateX(2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.progress-container {
    padding: 1rem 0 2rem 0;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: rgba(255, 255, 255, 1);
    color: #667eea;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.step.completed .step-number {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.step-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-container {
    padding: 0 0 4rem 0;
}

.registration-form {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-step h2 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-step > p {
    color: #666;
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.file-upload-area {
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-placeholder i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-placeholder p {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-weight: 500;
}

.upload-placeholder small {
    color: #666;
}

.uploaded-file {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #4CAF50;
    font-weight: 500;
}

.remove-file {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

.checkbox-group {
    margin-top: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

.nav-spacer {
    flex: 1;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.registration-form .btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.registration-form .btn-primary:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.registration-form .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Registration Form Responsive Design */
@media (max-width: 768px) {
    .registration-header .back-btn {
        position: static;
        transform: none;
        margin-bottom: 1rem;
    }
    
    .registration-header h1 {
        font-size: 2rem;
    }
    
    .progress-steps {
        gap: 1rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .registration-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-spacer {
        display: none;
    }
}

/* ===============================================
   CLIENT MANAGEMENT STYLES
   =============================================== */

/* Sub-tabs for registration status */
.sub-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.sub-tab {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sub-tab:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.sub-tab.active {
    background-color: #667eea;
    color: white;
}

.sub-tab .badge {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.25rem;
    text-align: center;
}

.sub-tab.active .badge {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
}

/* Filters bar */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Registrations table */
.registrations-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.registrations-table table {
    width: 100%;
    border-collapse: collapse;
}

.registrations-table th {
    background: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.registrations-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.registrations-table tr:hover {
    background: #f9fafb;
}

.registrations-table code {
    background: #f3f4f6;
    color: #667eea;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Clickable Application ID */
.clickable-app-id {
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    color: #667eea !important;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    user-select: none;
}

.clickable-app-id::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.6s;
}

.clickable-app-id:hover {
    background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%) !important;
    color: white !important;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.clickable-app-id:hover::before {
    left: 100%;
}

.clickable-app-id:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.company-info strong {
    display: block;
    color: #111827;
    font-weight: 600;
}

.company-info small {
    color: #6b7280;
    font-size: 0.875rem;
}

.contact-info div {
    font-weight: 500;
    color: #111827;
}

.contact-info small {
    color: #6b7280;
    font-size: 0.875rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    background: #f3f4f6;
    color: #6b7280;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.under_review {
    background: #dbeafe;
    color: #2563eb;
}

.status-badge.approved {
    background: #d1fae5;
    color: #059669;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #dc2626;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state i {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.875rem;
}

/* ========================
   MODERN REGISTRATION MODAL STYLES
   ======================== */

/* Enhanced Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modern Large Modal */
.modal-large {
    background: white;
    border-radius: 20px;
    width: 95vw;
    max-width: 1400px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10000;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Modal Header */
.modal-large .modal-header {
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.modal-large .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
}

.modal-large .modal-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.modal-large .modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Important for flex scrolling */
}

/* Modern Registration Detail Grid */
.registration-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    min-height: 0; /* Allow shrinking */
    height: 100%;
    flex: 1;
    overflow: hidden;
}

/* Enhanced Detail Panel */
.detail-panel {
    padding: 2.5rem;
    overflow-y: auto;
    background: white;
    min-height: 0; /* Allow shrinking for scroll */
}

/* Scrollbar Styling */
.detail-panel::-webkit-scrollbar,
.action-panel::-webkit-scrollbar {
    width: 8px;
}

.detail-panel::-webkit-scrollbar-track,
.action-panel::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.detail-panel::-webkit-scrollbar-thumb,
.action-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    border: 1px solid #f1f5f9;
}

.detail-panel::-webkit-scrollbar-thumb:hover,
.action-panel::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Modern Action Panel */
.action-panel {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 1px solid #e2e8f0;
    padding: 2.5rem;
    overflow-y: auto;
    position: relative;
    min-height: 0; /* Allow shrinking for scroll */
}

.action-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

/* Enhanced Detail Sections */
.detail-section {
    margin-bottom: 1.5rem; /* Reduced from 2.5rem */
    background: white;
    border-radius: 16px;
    padding: 1.5rem; /* Reduced from 2rem */
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e293b;
    font-size: 1.1rem; /* Reduced from 1.25rem */
    font-weight: 700;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    padding-bottom: 0.75rem; /* Reduced from 1rem */
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.detail-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

.detail-section h3 i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Action Panel Sections */
.action-panel .detail-section {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.action-panel .detail-section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Enhanced Detail Items */
.detail-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem; /* Reduced from 1.25rem */
    margin-bottom: 0.75rem; /* Reduced from 1.25rem */
    align-items: start;
    padding: 1rem 0; /* Increased back to 1rem for proper button spacing */
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    overflow: visible; /* Ensure content doesn't get cut off */
    min-height: 3rem; /* Ensure minimum height for buttons */
}

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

.detail-item:hover {
    background: rgba(102, 126, 234, 0.02);
    border-radius: 8px;
    margin: 0 -0.5rem 0.75rem -0.5rem; /* Adjusted for reduced spacing */
    padding: 1rem 0.5rem; /* Increased back to 1rem for proper button spacing */
}

.detail-item:last-child:hover {
    margin-bottom: 0;
}

.detail-item span {
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
    line-height: 1.5;
    overflow: visible; /* Ensure span content is fully visible */
    min-height: fit-content; /* Allow proper height for buttons */
    display: flex; /* Use flex to properly contain buttons */
    align-items: flex-start; /* Align content to top */
    padding-top: 0.125rem; /* Small top padding to align with label */
}

.detail-item label {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-top: 0.125rem;
}

.detail-item span {
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
    line-height: 1.5;
}

.detail-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.detail-item a:hover {
    color: #5a67d8;
    border-bottom-color: #5a67d8;
}

.text-muted {
    color: #94a3b8;
    font-style: italic;
    font-weight: 400;
}

/* Enhanced Form Elements */
.action-panel .form-group {
    margin-bottom: 1.5rem;
}

.action-panel .form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.action-panel select,
.action-panel textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.action-panel select:focus,
.action-panel textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.action-panel textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

/* Modern Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.action-buttons .btn {
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.action-buttons .btn::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.5s;
}

.action-buttons .btn:hover::before {
    left: 100%;
}

.action-buttons .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: transparent;
}

.action-buttons .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.action-buttons .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: transparent;
}

.action-buttons .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.action-buttons .btn-outline {
    background: white;
    color: #667eea;
    border-color: #667eea;
}

.action-buttons .btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

/* Enhanced File Link */
.file-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #667eea;
    text-decoration: none;
    padding: 0.875rem 1rem; /* Restored to better padding */
    border: 2px solid #667eea;
    border-radius: 12px;
    font-size: 0.85rem; /* Slightly smaller font */
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.05);
    white-space: nowrap; /* Prevent text wrapping */
    min-width: fit-content; /* Ensure button doesn't get squished */
    flex-shrink: 0; /* Prevent shrinking in flex containers */
    line-height: 1.2; /* Controlled line height */
    vertical-align: top; /* Ensure proper vertical alignment */
    margin: 0.25rem 0; /* Add small vertical margin for breathing room */
}

.file-link:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.file-link i {
    font-size: 1.1rem;
}

/* Status Badge in Modal */
.detail-item .status-badge {
    position: static;
    margin: 0;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

/* Enhanced Approval Modal */
.approval-success {
    text-align: center;
    padding: 2rem;
}

.approval-success h3 {
    color: #059669;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.approval-success h3 i {
    background: #059669;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credentials-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #bbf7d0;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.credentials-box h4 {
    color: #166534;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.credential-item label {
    font-weight: 600;
    color: #166534;
    min-width: 100px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.credential-item code {
    flex: 1;
    background: #0f172a;
    color: #10b981;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.copy-button {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.copy-button:hover {
    background: #059669;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .registration-detail-grid {
        grid-template-columns: 1fr;
        overflow-y: auto; /* Enable scrolling on smaller screens */
    }
    
    .action-panel {
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
    
    .action-panel::before {
        width: 100%;
        height: 4px;
        top: 0;
        left: 0;
    }
    
    /* Make sure both panels can scroll independently when stacked */
    .detail-panel,
    .action-panel {
        max-height: 60vh; /* Limit height to allow scrolling */
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .modal-large {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-large .modal-header {
        padding: 1.5rem;
    }
    
    .modal-large .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }
    
    .detail-panel,
    .action-panel {
        padding: 1.5rem;
    }
    
    .detail-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .detail-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .detail-item label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .action-buttons {
        gap: 0.75rem;
    }
    
    .action-buttons .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Ensure file link displays properly on mobile */
    .file-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
        gap: 0.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .modal-large .modal-header {
        padding: 1rem;
    }
    
    .detail-panel,
    .action-panel {
        padding: 1rem;
    }
    
    .detail-section {
        padding: 1rem;
    }
    
    .detail-section h3 {
        font-size: 1.1rem;
    }
}

/* Loading and processing states */
.processing {
    opacity: 0.6;
    pointer-events: none;
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

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

/* === CLIENT PORTAL STYLES === */
.client-portal {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

.client-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Client Header */
.client-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.client-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-logo h3 {
    margin: 0;
    color: #667eea;
    font-weight: 700;
}

.client-label {
    font-size: 0.8rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.client-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-details {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: #1f2937;
}

.user-company {
    font-size: 0.875rem;
    color: #6b7280;
}

.logout-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    margin-left: 1rem;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

/* Client Main Content */
.client-main {
    flex: 1;
    padding: 2rem 0;
    overflow-y: auto;
}

.welcome-section {
    margin-bottom: 2rem;
}

.welcome-section h1 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
}

.welcome-section p {
    margin: 0;
    color: #6b7280;
    font-size: 1.1rem;
}

/* Client Stats */
.client-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.client-stats .stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-stats .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.client-stats .stat-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.client-stats .stat-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Client Tabs */
.client-tabs {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-nav {
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    overflow-x: auto;
}

.tab-nav button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-weight: 500;
}

.tab-nav button:hover {
    background: #f9fafb;
    color: #374151;
}

.tab-nav button.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8faff;
}

.tab-nav button i {
    font-size: 0.875rem;
}

.tab-content {
    padding: 2rem;
}

/* Client Dashboard */
.client-dashboard h2 {
    margin: 0 0 1.5rem 0;
    color: #1f2937;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.dashboard-card h3 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-card h3 i {
    color: #667eea;
}

.dashboard-card p {
    margin: 0 0 1rem 0;
    color: #6b7280;
    line-height: 1.5;
}

/* Coming Soon State */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
}

.coming-soon i {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.coming-soon h3 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-weight: 600;
}

.coming-soon p {
    margin: 0 0 2rem 0;
    color: #6b7280;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .client-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .client-user-info {
        order: -1;
        justify-content: space-between;
        width: 100%;
    }
    
    .client-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-nav button {
        flex: 1;
        min-width: auto;
    }
}

/* === END CLIENT PORTAL STYLES === */

/* ========================
   MODERN CLIENT MANAGEMENT STYLES
   ======================== */

/* Client Management Layout */
.clients-management {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Modern Header with Search and Filters */
.clients-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 2rem;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Modern Stats Grid */
.clients-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: #ffffff;
}

.clients-stats-grid .stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clients-stats-grid .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.clients-stats-grid .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.clients-stats-grid .stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.clients-stats-grid .stat-content h3 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clients-stats-grid .stat-content p {
    font-weight: 600;
    color: #475569;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.clients-stats-grid .stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modern Client Cards Grid */
.clients-table-container {
    padding: 0 2rem 2rem 2rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.client-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.client-card:hover::before {
    transform: scaleX(1);
}

/* Client Card Header */
.client-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.client-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}

.client-details h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.client-industry {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.client-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.client-id, .join-date {
    font-size: 0.8rem;
    color: #64748b;
}

.client-id {
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: 600;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.status-badge.suspended {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Client Card Stats */
.client-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.client-stat {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.client-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.client-stat-value i {
    color: #667eea;
    font-size: 1rem;
}

.client-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* Contact Info */
.contact-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.contact-info h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.contact-item i {
    width: 16px;
    color: #667eea;
    flex-shrink: 0;
}

.contact-item strong {
    color: #1e293b;
    font-weight: 600;
}

.contact-item small {
    color: #64748b;
}

/* Modern Action Buttons */
.client-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
}

.primary-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.25);
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.action-btn.success {
    background: #10b981;
    color: white;
    border-color: transparent;
}

.action-btn.success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.25);
}

.action-btn.info {
    background: #0ea5e9;
    color: white;
    border-color: transparent;
}

.action-btn.info:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.25);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-menu a:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.dropdown-menu a i {
    width: 16px;
    color: #64748b;
}

.dropdown-menu .text-warning {
    color: #d97706 !important;
}

.dropdown-menu .text-danger {
    color: #dc2626 !important;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    margin-top: 2rem;
}

.empty-state i {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-weight: 600;
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0 0 2rem 0;
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Loading State */
.loading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skeleton-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    animation: pulse 2s infinite;
}

.skeleton-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skeleton-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #e2e8f0;
}

.skeleton-content {
    flex: 1;
}

.skeleton-line {
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-line.title {
    height: 20px;
    width: 60%;
}

.skeleton-line.subtitle {
    height: 14px;
    width: 40%;
}

.skeleton-line.meta {
    height: 12px;
    width: 80%;
}

.skeleton-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-stat {
    height: 60px;
    background: #f1f5f9;
    border-radius: 12px;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Modern Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 16px 16px;
}

.pagination-info {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #64748b;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 768px) {
    .clients-header {
        padding: 1.5rem;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
        min-width: auto;
    }
    
    .filter-controls {
        justify-content: space-between;
    }
    
    .clients-stats-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .client-card {
        padding: 1rem;
    }
    
    .client-stats-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .client-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .primary-actions {
        justify-content: center;
        width: 100%;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .pagination-controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .clients-stats-grid .stat-card {
        padding: 1.5rem;
    }
    
    .client-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .status-badge {
        position: static;
        margin-bottom: 1rem;
    }
    
    .client-meta {
        align-items: center;
    }
}

/* ========================
   END MODERN CLIENT MANAGEMENT STYLES
   ======================== */
