/* 
========================================================================
   Placement Cell Portal - Premium Design System (Vanilla CSS)
   Aesthetic: Glassmorphism / Cyber-Midnight Dark Theme
========================================================================
*/

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

:root {
    --bg-dark: #080b11;
    --bg-card: rgba(17, 24, 39, 0.6);
    --bg-card-hover: rgba(31, 41, 55, 0.8);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-glow: rgba(99, 102, 241, 0.3);
    
    /* Brand Colors */
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #06b6d4; /* Cyan */
    --secondary-glow: rgba(6, 182, 212, 0.4);
    --accent: #d946ef; /* Fuchsia */
    
    /* Semantic Colors */
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    --info: #3b82f6;
    
    /* Text */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Layout Details */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================================================
   1. Base Reset & Layout
   ======================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Cyber Glow Background Orbs */
body::before, body::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(150px);
    opacity: 0.15;
    pointer-events: none;
}
body::before {
    background: var(--primary);
    top: 10%;
    left: 5%;
}
body::after {
    background: var(--secondary);
    bottom: 15%;
    right: 5%;
}

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

/* ========================================================================
   2. Typography
   ======================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--primary) 70%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================================================
   3. Glass Components & Cards
   ======================================================================== */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--border-color-glow);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
    background: var(--bg-card-hover);
}

.glass-card-glow {
    position: relative;
}
.glass-card-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(6, 182, 212, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ========================================================================
   4. Buttons & Interactive Elements
   ======================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--secondary), #0891b2);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--secondary-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

/* ========================================================================
   5. Navigation Bar
   ======================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(8, 11, 17, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    gap: 10px;
    letter-spacing: -0.03em;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-badge-role {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
}

.role-student { background: rgba(6, 182, 212, 0.2); color: var(--secondary); }
.role-company { background: rgba(99, 102, 241, 0.2); color: var(--primary); }
.role-coordinator { background: rgba(217, 70, 239, 0.2); color: var(--accent); }

/* ========================================================================
   6. Main Content & Layout
   ======================================================================== */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Dashboards Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Stat Cards */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-top: 10px;
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================================================
   7. Form Styling
   ======================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================
   8. Pipeline Tracker (Custom Feature)
   ======================================================================== */
.pipeline-container {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.pipeline-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 20px 0;
}

/* The connector line */
.pipeline-steps::before {
    content: '';
    position: absolute;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    top: 25px;
    left: 0;
    z-index: 1;
}

.pipeline-progress {
    position: absolute;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    top: 25px;
    left: 0;
    z-index: 2;
    transition: var(--transition);
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 120px;
    text-align: center;
}

.step-bubble {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #111827;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: default;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.step-label {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

/* Active and Complete statuses */
.pipeline-step.completed .step-bubble {
    background: var(--success-glow);
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}
.pipeline-step.completed .step-label {
    color: var(--success);
}

.pipeline-step.active .step-bubble {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    transform: scale(1.1);
}
.pipeline-step.active .step-label {
    color: #ffffff;
}

.pipeline-step.rejected .step-bubble {
    background: var(--danger-glow);
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}
.pipeline-step.rejected .step-label {
    color: var(--danger);
}

/* ========================================================================
   9. Tables & Listings
   ======================================================================== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

th {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.01);
    color: #ffffff;
}

/* Status Badges */
.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-applied { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-shortlisted { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-interview { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.badge-offered { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-rejected { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* ========================================================================
   10. Alerts & Toasts
   ======================================================================== */
.alert-messages {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    border-left: 4px solid transparent;
}

@keyframes slideIn {
    from { transform: translateX(120%); }
    to { transform: translateX(0); }
}

.alert-success {
    background: rgba(16, 185, 129, 0.95);
    border-color: #10b981;
    color: #ffffff;
}

.alert-error {
    background: rgba(239, 68, 68, 0.95);
    border-color: #ef4444;
    color: #ffffff;
}

.alert-info {
    background: rgba(59, 130, 246, 0.95);
    border-color: #3b82f6;
    color: #ffffff;
}

/* ========================================================================
   11. Interactive Job Feed Cards
   ======================================================================== */
.job-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.job-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.job-company-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-title {
    font-size: 1.25rem;
    margin: 5px 0;
}

.job-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.job-meta-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto;
}

/* ========================================================================
   12. Authentication Layout
   ======================================================================== */
.auth-container {
    max-width: 460px;
    margin: 80px auto;
    padding: 0 20px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    padding: 4px;
    border: 1px solid var(--border-color);
}

.auth-tab {
    padding: 10px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.auth-tab.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* Landing Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

/* Mini CSS charts / Progress bars */
.progress-bar-wrapper {
    background: rgba(255, 255, 255, 0.05);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 4px;
}
