/* INDOGO TaxOps360 - Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* ============ LOGIN PAGE ============ */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #004080 0%, #0052a3 50%, #0066cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 60px;
}

.logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.logo-icon {
    font-size: 70px;
}

.main-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 24px;
    color: white;
    opacity: 0.95;
    margin-bottom: 10px;
}

.company {
    font-size: 14px;
    color: white;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.login-container {
    background: white;
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: 40px;
}

.login-header {
    background: linear-gradient(135deg, #004080 0%, #0066cc 100%);
    padding: 40px;
    text-align: center;
    color: white;
}

.login-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.9;
}

.login-body {
    padding: 50px;
}

.section-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.role-card {
    background: white;
    border: 3px solid #ddd;
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.role-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.role-card.selected {
    border-color: #2563eb;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
}

.role-card[data-role="staff"].selected {
    border-color: #2563eb;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
}

.role-card[data-role="manager"].selected {
    border-color: #9333ea;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.3);
}

.role-card[data-role="client"].selected {
    border-color: #16a34a;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.3);
}

.role-icon {
    font-size: 60px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.role-card:hover .role-icon {
    transform: scale(1.1);
}

.role-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.role-subtitle {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.role-features {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.role-features li {
    font-size: 12px;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check {
    color: #16a34a;
    font-size: 14px;
}

.selected-badge {
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.role-card[data-role="manager"] .selected-badge {
    background: #9333ea;
}

.role-card[data-role="client"] .selected-badge {
    background: #16a34a;
}

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

.login-form {
    background: #f9fafb;
    padding: 40px;
    border-radius: 20px;
    margin-top: 30px;
}

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

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.login-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #004080 0%, #0066cc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login-button:hover {
    background: linear-gradient(135deg, #003366 0%, #0052a3 100%);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 64, 128, 0.3);
}

.info-box {
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    background: #dbeafe;
}

.info-box.manager {
    border-left-color: #9333ea;
    background: #f3e8ff;
}

.info-box.client {
    border-left-color: #16a34a;
    background: #dcfce7;
}

.info-box h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.info-box p {
    font-size: 12px;
    color: #333;
}

.select-prompt {
    text-align: center;
    padding: 60px;
    background: #f9fafb;
    border-radius: 20px;
}

.select-prompt p {
    font-size: 18px;
    color: #666;
}

.credentials-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    color: white;
    margin-bottom: 40px;
}

.credentials-header {
    text-align: center;
    margin-bottom: 30px;
}

.credentials-header h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.credentials-header p {
    font-size: 14px;
    opacity: 0.9;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.credential-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.credential-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.credential-role {
    font-weight: 700;
    margin-bottom: 8px;
}

.credential-email {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.credential-pass {
    font-size: 12px;
    opacity: 0.75;
}

.footer {
    text-align: center;
    color: white;
    font-size: 14px;
    opacity: 0.8;
}

.footer-sub {
    font-size: 12px;
    margin-top: 5px;
}

/* ============ DASHBOARD COMMON ============ */
.dashboard {
    min-height: 100vh;
    background: #f5f7fa;
}

.dashboard-header {
    background: linear-gradient(135deg, #004080 0%, #0066cc 100%);
    color: white;
    padding: 20px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-logo-icon {
    font-size: 40px;
}

.dashboard-title {
    font-size: 24px;
    font-weight: 700;
}

.dashboard-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    font-size: 30px;
}

.user-details h3 {
    font-size: 14px;
    font-weight: 600;
}

.user-details p {
    font-size: 12px;
    opacity: 0.8;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dashboard-body {
    display: flex;
    height: calc(100vh - 80px);
}

.sidebar {
    width: 280px;
    background: white;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    padding: 20px 0;
}

.menu-group {
    margin-bottom: 10px;
}

.menu-group-header {
    padding: 15px 25px;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.menu-group-header:hover {
    background: #f9fafb;
    color: #004080;
}

.menu-group-icon {
    margin-right: 8px;
}

.menu-items {
    display: none;
}

.menu-items.expanded {
    display: block;
}

.menu-item {
    padding: 12px 40px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item:hover {
    background: #f0f4f8;
    color: #004080;
}

.menu-item.active {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #004080;
    font-weight: 600;
    border-left: 4px solid #004080;
}

.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.content-header {
    margin-bottom: 30px;
}

.content-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.content-description {
    font-size: 14px;
    color: #666;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #2563eb;
}

.stat-card.success {
    border-left-color: #16a34a;
}

.stat-card.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.stat-card.warning .stat-value {
    color: #f59e0b;
}

.stat-card.danger {
    border-left-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.stat-card.danger .stat-value {
    color: #dc2626;
}

.stat-card.info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.stat-card.info .stat-value {
    color: #3b82f6;
}

.stat-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

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

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

.table-container {
    overflow-x: auto;
}

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

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f9fafb;
    font-weight: 600;
    color: #333;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover {
    background: #f9fafb;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success {
    background: #dcfce7;
    color: #16a34a;
}

.badge-warning {
    background: #fef3c7;
    color: #f59e0b;
}

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

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

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    transition: width 0.3s ease;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-success {
    background: #16a34a;
    color: white;
}

.btn-success:hover {
    background: #15803d;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
}

.tab {
    padding: 15px 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab:hover {
    color: #004080;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.modal-close {
    float: right;
    font-size: 30px;
    cursor: pointer;
    color: #666;
}

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

/* Responsive */
@media (max-width: 768px) {
    .role-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ ALERT BOXES (Early Warning System) ============ */
.alert {
    border-radius: 8px;
    border: 2px solid;
    background: white;
    transition: all 0.2s ease;
}

.alert:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-danger {
    border-color: #dc2626;
    background: #fee2e2;
}

.alert-warning {
    border-color: #f59e0b;
    background: #fef3c7;
}

.alert-info {
    border-color: #3b82f6;
    background: #dbeafe;
}

.alert-success {
    border-color: #10b981;
    background: #d1fae5;
}