/* Job Portal Modern Styles - Complete Reset & Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #334155;
    overflow-x: hidden;
}

:root {
    /* Primary Colors */
    --primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --primary-dark: #1e3a8a;
    --secondary: #10b981;
    --accent: #f59e0b;
    
    /* Neutrals */
    --white: #ffffff;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
    --dark: #0f172a;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar */
.navbar {
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    z-index: 1030;
}

.bg-gradient-primary {
    background: var(--primary) !important;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.75rem 1.5rem !important;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--white) !important;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    width: calc(100% - 3rem);
    height: 2px;
    background: var(--white);
    border-radius: 1px;
}

/* Hero & Search */
.job-search-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.job-search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff15"><polygon points="0,100 1000,0 1000,100"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.search-card {
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255,255,255,0.4);
}

.input-group-text {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-right: 0 !important;
    color: rgba(255,255,255,0.9);
}

.form-control:focus {
    border-color: var(--white) !important;
    box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.25) !important;
}

/* Job Cards */
.job-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-dark);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-12px);
}

.badge {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.job-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Filters */
.filter-card {
    border: 1px solid var(--gray-200);
}

.form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Stats */
.stats-section {
    background: var(--primary);
}

.stats-section .h2 {
    font-size: 3rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--dark);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary) !important;
}

/* Chatbot - Enhanced */
/* Auth Page Additional Styles */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
}

.auth-container {
    position: relative;
}

.auth-image-section {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" fill="none"><defs><pattern id="pattern" x="0" y="0" width="200" height="200" patternUnits="userSpaceOnUse"><circle cx="100" cy="100" r="60" fill="%23ffffff10"/></pattern></defs><rect width="1200" height="800" fill="url(%23pattern)"/></svg>') no-repeat center/cover;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-card {
    animation: slideInRight 0.8s ease;
    max-width: 500px;
    margin: 0 auto;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.chatbox {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    max-height: 500px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    z-index: 1050;
    transition: var(--transition);
    overflow: hidden;
}

.chatbox:hover {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.chatbox header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbox header i {
    font-size: 1.25rem;
}

#messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--gray-100);
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    max-width: 85%;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    background: var(--primary);
    color: var(--white);
    margin-left: auto;
    text-align: right;
}

.bot-message {
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.chatbox input {
    border: none;
    outline: none;
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
}

.chatbox button {
    background: var(--secondary);
    border: none;
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 0 15px 15px 0;
    font-weight: 600;
    transition: var(--transition);
}

.chatbox button:hover {
    background: #059669;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .job-search-section {
        text-align: center;
        padding: 4rem 1rem !important;
    }
    
    .chatbox {
        width: calc(100vw - 40px);
        max-width: 400px;
    }
    
    .job-card {
        margin-bottom: 1.5rem;
    }
}

/* Utilities */
.text-primary { color: #3b82f6 !important; }
.text-success { color: #10b981 !important; }
.transition-all { transition: var(--transition); }
.fs-6 { font-size: 1rem; }
.fw-semibold { font-weight: 600; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-500);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-700);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
