/* --- Global Styles --- */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #28a745;
    --dark: #333;
    --light: #f5f7fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.tagline {
    opacity: 0.9;
    font-size: 1.1rem;
}

.admin-link {
    margin-top: 20px;
}

.btn-admin {
    text-decoration: none;
    color: var(--white);
    background: rgba(255,255,255,0.2);
    padding: 8px 18px;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: 500;
}

.btn-admin:hover {
    background: var(--white);
    color: var(--primary);
}

/* --- Search & Filters --- */
.search-section {
    background: var(--white);
    margin-top: -30px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #eee;
    border-radius: 8px;
    background: white;
}

/* --- Job Cards --- */
.jobs-info {
    margin: 20px 0;
    font-weight: bold;
    color: var(--secondary);
}

.jobs-list {
    display: grid;
    gap: 20px;
}

.job-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: 0.3s;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.job-title {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.job-department, .job-qualification {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 10px;
}

.job-department { background: #e0e7ff; color: var(--primary); }
.job-qualification { background: #f3e8ff; color: var(--secondary); }

/* --- Buttons --- */
.btn-view {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-apply {
    background: var(--success);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    display: inline-block;
    font-weight: bold;
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Admin Specific (Code Generator Area) --- */
.code-box {
    background: #1e1e1e;
    color: #4ec9b0;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    margin: 15px 0;
    border: 1px solid #333;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .header h1 { font-size: 1.5rem; }
    .filters { flex-direction: column; }
    .filter-group { min-width: 100%; }
}
/* --- Buttons Alignment Fix --- */
.admin-link-container {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center; /* Isse saare buttons ek line mein vertical center rahenge */
    gap: 12px;
    flex-wrap: wrap; /* Agar badi screen na ho toh automatic bina mix hue niche line mein shifting hogi */
}

.btn-admin {
    text-decoration: none;
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 6px;
    transition: 0.3s;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px; /* Fixed height jisse koi bada chota na dikhe */
    box-sizing: border-box;
}

.btn-feedback {
    background: #ff9f43 !important;
    color: white !important;
    border: none !important;
}

.btn-admin:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Mobile responsive screen adjustment */
@media (max-width: 600px) {
    .admin-link-container {
        gap: 8px;
    }
    .btn-admin {
        font-size: 0.9rem;
        padding: 8px 12px;
        height: 35px;
    }
}