/* ═══════════════════════════════════════════════════════════════════
   EMPLOYEE PORTAL - COMPLETE ENHANCED STYLESHEET
   Beautiful, modern design for login and dashboard
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════════════════
   GLOBAL STYLES
   ═══════════════════════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --light-gray: #f9fafb;
    --medium-gray: #e5e7eb;
    --dark-gray: #6b7280;
    --text-color: #1f2937;
    --border-radius: 16px;
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   SCREEN MANAGEMENT
   ═══════════════════════════════════════════════════════════════════ */

.screen {
    display: none !important;
}

.screen.active {
    display: block !important;
}

#login-screen {
    display: none !important;
}

#login-screen.active {
    display: flex !important;
}

#dashboard-screen {
    display: none !important;
}

#dashboard-screen.active {
    display: block !important;
}

/* ═══════════════════════════════════════════════════════════════════
   LOGIN SCREEN (Keep existing beautiful login styles)
   ═══════════════════════════════════════════════════════════════════ */

#login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 0;
    max-width: 480px;
    width: 100%;
    animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

.portal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 40px 30px;
    text-align: center;
    position: relative;
}

.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    transition: var(--transition);
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-4px);
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.portal-header h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
}

.login-card {
    padding: 40px;
}

.login-card h2 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.login-instructions {
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 30px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    font-size: 15px;
    transition: var(--transition);
    background: var(--light-gray);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--dark-gray);
}

.error-message {
    background: #fee2e2;
    color: var(--danger-color);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid var(--danger-color);
    font-weight: 500;
}

.btn-login {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-help {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--medium-gray);
}

.login-help h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.login-help ul {
    list-style: none;
}

.login-help li {
    padding: 8px 0;
    font-size: 14px;
}

.login-footer {
    padding: 20px 40px;
    background: var(--light-gray);
    text-align: center;
    font-size: 13px;
    color: var(--dark-gray);
}

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD SCREEN - BEAUTIFUL NEW DESIGN
   ═══════════════════════════════════════════════════════════════════ */

#dashboard-screen {
    display: none !important;
    background: #f0f2f5;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 10;
}

#dashboard-screen.active {
    display: block !important;
    animation: fadeIn 0.4s ease;
}

/* Hide body gradient when dashboard is active */
body:has(#dashboard-screen.active) {
    background: #f0f2f5;
}

body:has(#dashboard-screen.active)::before {
    display: none;
}

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

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-small {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-left h1 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2px;
}

.header-left p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-logout:hover {
    background: white;
    color: var(--primary-color);
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Case Overview Section */
.case-overview {
    margin-bottom: 30px;
}

.case-overview h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

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

.info-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.info-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.info-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: white;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--dark-gray);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--light-gray);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tab-pane.active {
    display: block;
}

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

/* Content Cards */
.content-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.content-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--light-gray);
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.detail-item {
    padding: 16px;
    background: var(--light-gray);
    border-radius: 12px;
    transition: var(--transition);
}

.detail-item:hover {
    background: #e5e7eb;
    transform: translateX(4px);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 6px;
}

.detail-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

/* Timeline */
#timeline-container {
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 30px;
    border-left: 3px solid var(--medium-gray);
}

.timeline-item:last-child {
    border-left-color: transparent;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--medium-gray);
}

.timeline-content {
    background: var(--light-gray);
    padding: 16px;
    border-radius: 12px;
}

.timeline-date {
    font-size: 12px;
    color: var(--dark-gray);
    font-weight: 600;
}

.timeline-text {
    margin-top: 8px;
    font-size: 15px;
    color: var(--text-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--dark-gray);
    font-size: 15px;
}

/* Upload Section */
.upload-section {
    background: var(--light-gray);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.upload-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.upload-section input[type="file"],
.upload-section input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    margin-bottom: 12px;
}

.btn-upload,
.btn-send {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-upload:hover,
.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Officer Info */
.officer-info {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.officer-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.officer-info p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

/* Contact Help */
.contact-help {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
}

.contact-help h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-help ul {
    list-style: none;
}

.contact-help li {
    padding: 10px 0;
    font-size: 15px;
}

.contact-help a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-help a:hover {
    text-decoration: underline;
}

/* Contact Form */
#contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    transition: var(--transition);
}

#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .dashboard-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-left {
        width: 100%;
    }
    
    .btn-logout {
        width: 100%;
        justify-content: center;
    }
    
    .case-info-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-container {
        padding: 20px 16px;
    }
    
    .content-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .case-overview h2 {
        font-size: 20px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .content-card h3 {
        font-size: 18px;
    }
}
