/**
 * PrimeInternship.com - Complete Stylesheet
 * Professional Industry Immersion & Career Pathway Platform
 * Color Scheme: Navy Blue (#1e3a8a), Green (#22c55e), White (#ffffff)
 * FIXED: Mobile menu functionality & Dashboard styling
 */

/* ==================== CSS VARIABLES ==================== */
:root {
    --primary-navy: #1e3a8a;
    --primary-blue: #2563eb;
    --accent-green: #22c55e;
    --accent-green-light: #4ade80;
    --accent-green-dark: #16a34a;
    --white: #ffffff;
    --light-gray: #f7fafc;
    --gray: #e2e8f0;
    --dark-gray: #4a5568;
    --text-dark: #2d3748;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-green);
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-green);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1001;
}

.logo {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
}

.nav-link {
    color: var(--primary-navy);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
    display: block;
}

.nav-link:hover {
    background: var(--light-gray);
    color: var(--accent-green);
}

.nav-link.active {
    display: flex;
    background: var(--primary-navy);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: 2px solid var(--primary-navy);
    font-size: 1.5rem;
    color: var(--primary-navy);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--primary-navy);
    color: var(--white);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--accent-green);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--accent-green-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-white {
    background: var(--white);
    color: var(--primary-navy);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background: var(--light-gray);
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: white;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
}

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

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    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 width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

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

/* ==================== SECTIONS ==================== */
.section {
    padding: 4rem 2rem;
}

.section-gray {
    background: var(--light-gray);
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 2px;
}

/* ==================== CARDS ==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-green);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.card h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.card p {
    color: var(--dark-gray);
    line-height: 1.8;
}

/* ==================== DASHBOARD LAYOUT ==================== */
.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 77px);
    gap: 0;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    padding: 2rem 0;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

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

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(4px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.sidebar-link::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.5;
}

.sidebar-link.active::before {
    opacity: 1;
    animation: pulse 2s infinite;
}

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

/* ==================== DASHBOARD CONTENT ==================== */
.dashboard-content {
    padding: 2rem;
    background-color: var(--light-gray);
    overflow-y: auto;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.dashboard-header p {
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* ==================== PROFILE INFO ==================== */
.profile-info {
    display: grid;
    gap: 1.5rem;
}

.profile-info p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
}

.profile-info strong {
    color: var(--text-dark);
    font-weight: 600;
    min-width: 130px;
}

.profile-info span {
    color: var(--dark-gray);
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

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

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left-color: var(--success);
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left-color: var(--danger);
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left-color: var(--primary-blue);
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left-color: var(--warning);
}

/* ==================== FORMS ==================== */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-file {
    padding: 0.5rem;
}

/* ==================== TABLES ==================== */
.table-container {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray);
    margin-bottom: 2rem;
}

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

thead {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: white;
}

th {
    padding: 1.125rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid var(--gray);
    transition: all 0.2s ease;
}

tbody tr:hover {
    background-color: #f8fafc;
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 1.125rem 1.25rem;
    color: var(--text-dark);
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-approved {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ==================== JOB CARDS ==================== */
.job-card {
    background-color: white;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray);
    transition: all 0.3s ease;
}

.job-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--accent-green);
}

.job-card h3 {
    color: var(--primary-navy);
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.job-card .company-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.job-card .job-description {
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.job-card .job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.job-card .detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--dark-gray);
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

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

.footer-section h4 {
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== WHATSAPP FLOAT BUTTON ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }

/* ==================== TABLET RESPONSIVE (768px - 1024px) ==================== */
@media (max-width: 1024px) {
    .dashboard {
        grid-template-columns: 240px 1fr;
    }
    
    .navbar {
        padding: 0.75rem 1.5rem;
    }

    .logo {
        height: 40px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

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

    .hero .subtitle {
        font-size: 1.3rem;
    }
    
    .dashboard-content {
        padding: 1.5rem;
    }
}

/* ==================== MOBILE RESPONSIVE (max-width: 768px) ==================== */
@media (max-width: 768px) {
    /* Header & Navigation - FIXED */
    .header {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

     .navbar {
        padding: 0.75rem 1rem;
        min-height: 60px;
        width: 100vw;
        position: relative;
        
    }
    .logo {
        height: 36px;
        max-width: 160px;
    }

    /* Mobile Menu - CRITICAL FIX */
    .nav-menu {
        display: none ;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        padding: 1rem;
        gap: 0.5rem;
        border-top: 1px solid var(--gray);
        z-index: 1000;
    }

    .active {
        display: flex !important;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 6px;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Dashboard - FIXED */
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: fixed;
        left: -100%;
        top: 77px;
        height: calc(100vh - 77px);
        width: 280px;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .sidebar.active {
        left: 0;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 1.25rem;
    }

    .hero::before {
        opacity: 0.15;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    /* Sections */
    .section {
        padding: 2.5rem 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    /* Cards */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.15rem; }

    /* Dashboard Content */
    .dashboard-content {
        padding: 1.25rem;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    /* Tables */
    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }

    /* Job Cards */
    .job-card {
        padding: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 1.25rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        text-align: left;
    }

    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1.5rem;
    }

    /* WhatsApp Button */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }

    /* Forms */
    .form-container {
        padding: 1.5rem