/* ================================================
  Modern Job Portal Styles
  ================================================
*/
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --admin-sidebar: #1e293b;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background-color: var(--light); color: #334155; overflow-x: hidden; }

/* Navbar */
.navbar { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: var(--transition); }
.nav-link { font-weight: 500; color: var(--dark) !important; position: relative; transition: var(--transition); }
.nav-link:hover { color: var(--primary) !important; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background: var(--gradient); transition: var(--transition); }
.nav-link:hover::after { width: 100%; }

/* Buttons */
.btn-gradient { background: var(--gradient); color: white; border: none; border-radius: 50px; padding: 10px 25px; font-weight: 600; transition: var(--transition); position: relative; z-index: 1; overflow: hidden; }
.btn-gradient::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #ec4899 0%, #4f46e5 100%); z-index: -1; transition: opacity 0.3s ease; opacity: 0; }
.btn-gradient:hover::before { opacity: 1; }
.btn-gradient:hover { color: white; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4); }

/* Category Cards */
.cat-card { background: white; border-radius: 12px; padding: 25px 15px; text-align: center; box-shadow: var(--card-shadow); transition: var(--transition); border-bottom: 3px solid transparent; cursor: pointer; text-decoration: none; display: block; color: inherit; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--hover-shadow); border-bottom: 3px solid var(--primary); color: inherit; }
.cat-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 15px; color: var(--primary); transition: var(--transition); }
.cat-card:hover .cat-icon { background: var(--gradient); color: white; transform: rotateY(360deg); }

/* Job Cards (Compact) */
.job-card { background: white; border-radius: 12px; padding: 18px; box-shadow: var(--card-shadow); transition: var(--transition); border: 1px solid #e2e8f0; position: relative; overflow: hidden; height: 100%; }
.job-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gradient); transform: scaleY(0); transition: var(--transition); }
.job-card:hover { transform: translateY(-4px); box-shadow: var(--hover-shadow); }
.job-card:hover::before { transform: scaleY(1); }
.company-logo { width: 45px; height: 45px; border-radius: 8px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--primary); font-size: 18px; }
.text-truncate-2-lines { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; height: 2.4em; line-height: 1.2em; white-space: normal; }

.badge-un { background: #e0f2fe; color: #0284c7; }
.badge-urgent { background: #ffe4e6; color: #e11d48; }
.badge-success-light { background: #dcfce7; color: #166534; }

/* Employers Ribbon */
.employers-ribbon { background: white; padding: 40px 0; border-top: 1px solid #e2e8f0; }
.logo-track { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 30px; }
.logo-track img { height: 45px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: var(--transition); cursor: pointer; }
.logo-track img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

/* Footer Design */
.footer { background: #0f172a; color: #94a3b8; padding: 80px 0 0; margin-top: 0px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { display: inline-flex; align-items: center; color: #94a3b8; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); transform: translateX(5px); }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); margin-right: 10px; color: #f8fafc; transition: var(--transition); border: 1px solid rgba(255,255,255,0.1); }
.social-icons a:hover { background: var(--gradient); color: white; transform: translateY(-3px); border-color: transparent; }

/* Auth */
.auth-wrapper { min-height: 100vh; display: flex; }
.auth-bg { background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1920&q=80') center/cover; position: relative; flex: 1; display: none; }
@media (min-width: 992px) { .auth-bg { display: block; } }
.auth-bg::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(79, 70, 229, 0.9) 0%, rgba(236, 72, 153, 0.9) 100%); }
.auth-form-container { width: 100%; max-width: 500px; margin: auto; padding: 40px; background: white; }
.password-toggle { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #64748b; z-index: 10; }

/* Admin */
.admin-wrapper { display: flex; min-height: 100vh; background: var(--light); }
.admin-sidebar { width: 260px; background: var(--admin-sidebar); color: #94a3b8; transition: var(--transition); flex-shrink: 0; }
.admin-sidebar .brand { padding: 20px; font-size: 1.25rem; font-weight: bold; color: white; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar .nav-link { color: #94a3b8 !important; padding: 12px 20px; display: flex; align-items: center; gap: 12px; border-left: 3px solid transparent; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: white !important; background: rgba(255,255,255,0.05); border-left-color: var(--primary); }
.admin-main { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-header { height: 70px; background: white; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; padding: 0 20px; justify-content: space-between; }
.admin-content { padding: 30px; flex-grow: 1; overflow-y: auto; }
.stat-card { background: white; border-radius: 12px; padding: 25px; box-shadow: 0 2px 4px rgba(0,0,0,0.04); display: flex; align-items: center; gap: 20px; border: 1px solid #e2e8f0; }
.stat-icon { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.admin-table-card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.04); border: 1px solid #e2e8f0; }
.admin-table th { background: #f8fafc; color: #64748b; font-weight: 600; border-bottom: 2px solid #e2e8f0; }
@media (max-width: 768px) { .admin-sidebar { margin-left: -260px; position: fixed; z-index: 1050; height: 100%; } .admin-sidebar.show { margin-left: 0; } }

/* Sidebar Filters */
.filter-sidebar { background: white; border-radius: 12px; padding: 20px; box-shadow: var(--card-shadow); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* Job Details */
.job-header-card { background: white; border-radius: 16px; padding: 40px; box-shadow: var(--card-shadow); margin-top: -50px; position: relative; z-index: 10; }
.job-content { padding: 30px; background: white; border-radius: 12px; box-shadow: var(--card-shadow); }
.summary-card { background: var(--light); border-radius: 12px; padding: 25px; border: 1px solid #e2e8f0; }
.summary-item i { color: var(--primary); width: 30px; font-size: 1.2rem; }
