/* * iBihar Job Portal - Dark Theme CSS 
 * Matches the main website's glassmorphism and cloud UI
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Fallback variables in case global ones don't load */
    --accent: #3b82f6; 
    --accent-hover: #2563eb;
    --dark-bg: #111827;
    --dark-card: rgba(31, 41, 55, 0.8);
    --dark-border: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    
    --danger-bg: rgba(239, 68, 68, 0.1);
    --danger-text: #fca5a5;
    --danger-border: #b91c1c;
    
    --success-bg: rgba(34, 197, 94, 0.1);
    --success-text: #86efac;
    --success-border: #15803d;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Container & Typography */
.job-portal-container {
    max-width: 850px;
    margin: 60px auto;
    padding: 0 20px;
}

.job-portal-container header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Alert Messages (Dark Mode Friendly) */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}
.alert-error { 
    background-color: var(--danger-bg); 
    color: var(--danger-text); 
    border: 1px solid var(--danger-border); 
}
.alert-success { 
    background-color: var(--success-bg); 
    color: var(--success-text); 
    border: 1px solid var(--success-border); 
}
.alert a { color: #fff; text-decoration: underline; font-weight: 600; }

/* Premium Glassmorphism Card Design */
.form-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-section {
    padding: 2.5rem;
    border-bottom: 1px solid var(--dark-border);
}

.form-section:last-child {
    border-bottom: none;
    background: rgba(17, 24, 39, 0.4);
    padding: 2rem 2.5rem;
    text-align: right;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}
.section-title svg {
    color: var(--accent);
}

/* Form Grid & Inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.full-width { grid-column: span 2; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Matching your exact search-form input styling */
.form-control {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    font-size: 1rem;
    background-color: #374151;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control::placeholder { color: #9ca3af; opacity: 0.7; }

.form-control:hover { border-color: #6b7280; }

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background-color: #4b5563;
}

/* File inputs and Textareas */
textarea.form-control {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

/* Checkboxes and Selects */
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 40px;
}
select.form-control option {
    background-color: var(--dark-bg);
    color: var(--text-primary);
}

/* Input Group (for icons inside inputs) */
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon-wrapper svg {
    position: absolute;
    left: 15px;
    color: #9ca3af;
    width: 20px;
    height: 20px;
    z-index: 1;
}
.input-icon-wrapper .form-control {
    padding-left: 45px;
}

/* Submit Button - Matching your cta buttons */
.btn-submit {
    background: linear-gradient(to right, var(--accent), var(--accent-hover));
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-submit:active { 
    transform: translateY(0); 
}

/* Webkit Calendar Picker override for dark mode */
::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}
::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .form-section { padding: 1.5rem; }
    .job-portal-container { margin: 30px auto; }
}