:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #64748b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --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);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navbar */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-box {
    background: white;
    padding: 0.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 0;
}

.search-input-group {
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    border-right: 1px solid var(--border-color);
    flex: 1 1 200px;
}

.search-input-group:first-of-type {
    flex: 2 1 300px;
}

.search-box button {
    flex: 0 0 auto;
    margin: 0.25rem;
}

.search-input-group:last-of-type {
    border-right: none;
}

.search-input-group i {
    color: var(--text-muted);
    font-size: 1rem;
    margin-right: 0.5rem;
}

.search-box input, .search-box select {
    width: 100%;
    padding: 0.8rem 0.5rem;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    outline: none;
    color: var(--text-main);
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-box input:focus {
    border-color: var(--primary);
}

/* Company Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 0.8rem;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    overflow: hidden;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body h3 {
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-info {
    background: #e0e7ff;
    color: #4338ca;
}

/* Detail Page */
.company-detail {
    padding: 4rem 0;
}

.salary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.salary-table th, .salary-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.salary-table th {
    background: #f8fafc;
    font-weight: 700;
}

.salary-range {
    font-weight: 700;
    color: var(--success);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .search-box {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 1.5rem;
        gap: 0.5rem;
    }
    .search-input-group {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0.75rem 0.5rem;
        flex: none !important;
    }
    .search-input-group:last-of-type {
        border-bottom: none;
    }
    .search-box button {
        width: 100%;
        margin: 0.5rem 0 0 !important;
        padding: 1rem !important;
        border-radius: 1rem !important;
    }
}

/* Pagination Styling */
ul.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

ul.pagination li {
    list-style: none;
}

ul.pagination a, ul.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

ul.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

ul.pagination li.active a, ul.pagination li.active span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

ul.pagination li.disabled span {
    color: #cbd5e1;
    cursor: not-allowed;
    background: #f8fafc;
}

ul.pagination li:first-child a, ul.pagination li:last-child a {
    font-weight: 800;
    font-size: 1.1rem;
}
