@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0056b3;     /* SKUAST Blue */
    --primary-dark: #004494;
    --secondary: #00a8cc;   /* Bright Blue/Cyan */
    --accent: #28a745;      /* Success Green */
    --danger: #dc3545;
    --warning: #ffc107;
    --dark: #2c3e50;
    --text-muted: #6c757d;
    --light: #f8f9fa;
    --white: #ffffff;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    margin: 0;
    color: var(--dark);
    min-height: 100vh;
    line-height: 1.6;
}

/* --- Header & Navigation --- */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logos img {
    height: 50px;
    transition: var(--transition);
}

.logos img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .btn-login {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
}

.nav-links .btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.3);
    color: white;
}

/* --- Layout Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- Hero Section (Index) --- */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    background-image: radial-gradient(circle at top right, rgba(0, 168, 204, 0.05), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(0, 86, 179, 0.05), transparent 40%);
}

.hero-section h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-section .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.badge-info {
    display: inline-block;
    background: #e3f2fd;
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* --- Job Cards --- */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.job-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card h3 {
    color: var(--dark);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.job-card .salary {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.job-details {
    margin-bottom: 20px;
    flex-grow: 1;
}

.job-details p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    gap: 10px;
}

.job-details strong {
    min-width: 60px;
    color: var(--primary);
}

/* --- Authentication Forms --- */
.auth-box {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    max-width: 420px;
    width: 100%;
    margin: 60px auto;
    text-align: center;
}

.auth-box h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.auth-box input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: var(--transition);
    background: #fdfdfd;
}

.auth-box input:focus {
    border-color: var(--primary);
    background: #fff;
    outline: none;
}

.btn-block {
    width: 100%;
    background: var(--primary-dark);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-block:hover {
    background: var(--primary);
}

/* --- Forms & Applications --- */
.form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    box-sizing: border-box;
    background: #fdfdfd;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
    outline: none;
}

/* --- Tables (Dashboard & Education) --- */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Education Table Specifics */
.edu-table th { padding: 10px; font-size: 0.85rem; }
.edu-table td { padding: 5px; }
.edu-table input { padding: 8px; font-size: 0.9rem; }

/* Dashboard Badge */
.status-badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- NEW UPLOAD WIDGET STYLES --- */
.upload-widget {
    border: 2px dashed #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    background: #fafafa;
    transition: var(--transition);
    position: relative;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-widget:hover {
    border-color: var(--primary);
    background: #f0f8ff;
}

.upload-widget input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-ui {
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none; /* Let clicks pass to file input */
}

.upload-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(0, 86, 179, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.fname {
    font-weight: 500;
    color: #444;
    word-break: break-all;
}

.progress-container {
    height: 6px;
    width: 100%;
    background: #e9ecef;
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s;
}

.status-text {
    font-size: 0.8rem;
    margin-top: 8px;
    font-weight: 600;
    text-align: left;
}

.status-text.success { color: var(--accent); }
.status-text.error { color: var(--danger); }

/* --- Buttons --- */
.btn-apply {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-apply:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.2);
}

.btn-apply:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Layout Utilities --- */
.row { display: flex; gap: 20px; }
.col { flex: 1; }

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .logos img { height: 40px; }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .row { flex-direction: column; gap: 0; }
    
    .job-grid { grid-template-columns: 1fr; }
    
    .form-wrapper { padding: 25px; }
    
    .edu-table { display: block; overflow-x: auto; }
}