/* CareerConnect AI - Professional Platform Styles */

:root {
    --cc-primary: #3b82f6;
    --cc-primary-dark: #2563eb;
    --cc-secondary: #0ea5e9;
    --cc-success: #10b981;
    --cc-warning: #f59e0b;
    --cc-danger: #ef4444;
    --cc-dark: #0f172a;
    --cc-gray-900: #111827;
    --cc-gray-800: #1f2937;
    --cc-gray-700: #374151;
    --cc-gray-600: #4b5563;
    --cc-gray-500: #6b7280;
    --cc-gray-400: #9ca3af;
    --cc-gray-300: #d1d5db;
    --cc-gray-200: #e5e7eb;
    --cc-gray-100: #f3f4f6;
    --cc-gray-50: #f9fafb;
    --cc-white: #ffffff;
    --cc-radius: 8px;
    --cc-radius-lg: 12px;
    --cc-radius-xl: 16px;
    --cc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --cc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --cc-shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
    --cc-shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.1);
    --cc-shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    color: var(--cc-gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--cc-gray-900);
}

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; }

/* Links */
a {
    color: var(--cc-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cc-primary-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: var(--cc-radius);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cc-primary), var(--cc-primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-outline-primary {
    background: transparent;
    color: var(--cc-primary);
    border: 2px solid var(--cc-primary);
}

.btn-outline-primary:hover {
    background: var(--cc-primary);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--cc-success), #059669);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--cc-danger), #dc2626);
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--cc-radius-lg);
    box-shadow: var(--cc-shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--cc-gray-100);
}

.card:hover {
    box-shadow: var(--cc-shadow-lg);
}

.card-header {
    padding: 1.25rem 1.5rem;
    background: transparent;
    border-bottom: 1px solid var(--cc-gray-100);
    font-weight: 600;
    color: var(--cc-gray-900);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--cc-gray-50);
    border-top: 1px solid var(--cc-gray-100);
}

/* Job Card - LinkedIn/Indeed Style */
.job-card {
    border-radius: var(--cc-radius-lg);
    background: white;
    box-shadow: var(--cc-shadow);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cc-shadow-xl);
    border-left-color: var(--cc-primary);
}

.job-card .card-body {
    padding: 1.5rem;
}

.job-card h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--cc-gray-900);
}

.job-card h5 a {
    color: var(--cc-gray-900);
    transition: color 0.2s ease;
}

.job-card h5 a:hover {
    color: var(--cc-primary);
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--cc-gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.job-excerpt {
    color: var(--cc-gray-700);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Company Card */
.company-card {
    background: white;
    border-radius: var(--cc-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--cc-shadow-md);
    border: 1px solid var(--cc-gray-100);
}

.company-logo-sm {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--cc-radius);
    border: 1px solid var(--cc-gray-200);
}

.company-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--cc-radius-lg);
    border: 2px solid var(--cc-gray-200);
}

/* Apply Box */
.apply-box {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-radius: var(--cc-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--cc-shadow-md);
    border: 2px solid var(--cc-gray-100);
    position: sticky;
    top: 100px;
}

.apply-box h6 {
    margin-bottom: 1rem;
    color: var(--cc-gray-900);
}

/* Forms */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--cc-gray-300);
    border-radius: var(--cc-radius);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    width: 100%;
    background: white;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--cc-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--cc-gray-700);
    font-size: 0.95rem;
}

.form-text {
    font-size: 0.875rem;
    color: var(--cc-gray-500);
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: var(--cc-danger);
}

.invalid-feedback {
    color: var(--cc-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
}

.badge-ghost {
    background: rgba(59, 130, 246, 0.1);
    color: var(--cc-primary);
}

.bg-primary { background: var(--cc-primary) !important; color: white; }
.bg-success { background: var(--cc-success) !important; color: white; }
.bg-warning { background: var(--cc-warning) !important; color: white; }
.bg-danger { background: var(--cc-danger) !important; color: white; }
.bg-info { background: var(--cc-secondary) !important; color: white; }
.bg-light { background: var(--cc-gray-100) !important; color: var(--cc-gray-900); }
.bg-dark { background: var(--cc-dark) !important; color: white; }

/* Search Bar */
.search-bar {
    background: white;
    border: 2px solid var(--cc-gray-200);
    border-radius: var(--cc-radius);
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.search-bar:focus {
    outline: none;
    border-color: var(--cc-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    border-radius: var(--cc-radius);
}

/* Sidebar */
.sidebar {
    background: linear-gradient(180deg, #eef2ff, #f8fafc);
    min-height: calc(100vh - 76px);
    border-right: 1px solid var(--cc-gray-200);
}

.sidebar .nav-link {
    padding: 0.875rem 1.25rem;
    color: var(--cc-gray-700);
    border-radius: var(--cc-radius);
    margin: 0.25rem 0;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: white;
    color: var(--cc-primary);
    box-shadow: var(--cc-shadow-sm);
}

.sidebar .nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 76px);
    padding: 2rem;
    background: #f8fafc;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--cc-primary), var(--cc-primary-dark));
    color: white;
    border-radius: var(--cc-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--cc-shadow-lg);
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--cc-radius);
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--cc-success);
    color: #065f46;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--cc-warning);
    color: #92400e;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--cc-danger);
    color: #991b1b;
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--cc-secondary);
    color: #075985;
}

/* Tables */
.table {
    width: 100%;
    background: white;
    border-radius: var(--cc-radius-lg);
    overflow: hidden;
}

.table thead th {
    background: var(--cc-gray-50);
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--cc-gray-700);
    border-bottom: 2px solid var(--cc-gray-200);
    text-align: left;
}

.table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--cc-gray-100);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--cc-gray-50);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Spinner */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary { color: var(--cc-primary) !important; }
.text-success { color: var(--cc-success) !important; }
.text-danger { color: var(--cc-danger) !important; }
.text-warning { color: var(--cc-warning) !important; }
.text-muted { color: var(--cc-gray-500) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }

.flex-grow-1 { flex-grow: 1 !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.fw-bold { font-weight: 700 !important; }
.fw-normal { font-weight: 400 !important; }

.shadow-sm { box-shadow: var(--cc-shadow-sm) !important; }
.shadow { box-shadow: var(--cc-shadow) !important; }
.shadow-lg { box-shadow: var(--cc-shadow-lg) !important; }

/* Responsive */
@media (max-width: 992px) {
    .search-bar {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .main-content {
        padding: 1.25rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .sidebar {
        min-height: auto;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .apply-box {
        position: static;
        margin-top: 1.5rem;
    }
}
