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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #374151;
}

.header {
    background: rgba(30, 58, 138, 0.95);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
}

.logo-icon {
    background: #ffffff;
    color: #1e40af;
    padding: 8px 12px;
    border-radius: 0;
    margin-right: 8px;
    font-weight: 900;
    font-size: 18px;
    transform: rotate(45deg);
    display: inline-block;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: rotate(45deg) scale(1.05);
}

.logo-text {
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.jobs {
    background: #f59e0b;
    color: white;
    font-weight: 600;
}

.nav-link.jobs:hover {
    background: #d97706;
}

.nav-link.login {
    color: white;
}

.nav-link.register {
    background: #22c55e;
    color: white;
    font-weight: 600;
}

.nav-link.register:hover {
    background: #16a34a;
}

.nav-link.job-alert {
    background: #8b5cf6;
    color: white;
    font-weight: 600;
}

.nav-link.job-alert:hover {
    background: #7c3aed;
}

.jobs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.jobs-header {
    text-align: center;
    margin-bottom: 40px;
}

.jobs-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1e40af;
}

.search-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1100px;
    margin: 0 auto 32px auto;
    width: 100%;
}

.search-inputs {
    display: grid;
    grid-template-columns: 3fr 3fr 1.3fr;
    gap: 24px;
    align-items: center;
}

.search-input {
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #374151;
    outline: none;
    transition: all 0.3s ease;
    background: #fafafa;
    font-weight: 500;
    min-height: 52px;
    line-height: 1.2;
    vertical-align: middle;
}

.search-input:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.location-wrapper {
    display: flex;
    gap: 16px;
    align-items: center;
}

.location-wrapper .search-input {
    flex: 1;
}

.distance-select {
    padding: 16px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #374151;
    background: #fafafa;
    min-width: 160px;
    width: 160px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 52px;
    line-height: 1.2;
    vertical-align: middle;
}

.distance-select:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 52px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
    text-transform: none;
    letter-spacing: 0.25px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
}

.jobs-content {
    position: relative;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #1e40af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.job-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.job-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 8px;
    line-height: 1.3;
}

.job-company {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 12px;
    font-weight: 500;
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.job-detail {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
}

.job-detail-icon {
    margin-right: 6px;
}

.job-salary {
    font-size: 18px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 12px;
}

.job-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.job-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.job-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    flex: 1;
}

.btn-primary {
    background: #1e40af;
    color: white;
}

.btn-primary:hover {
    background: #1e3a8a;
}

.btn-secondary {
    background: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-secondary:hover {
    background: #1e40af;
    color: white;
}

.no-jobs {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-jobs h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #374151;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .jobs-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-input,
    .filter-select {
        width: 100%;
        max-width: 300px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-actions {
        flex-direction: column;
    }
}