/* Admin Portal Styles */

.navbar.admin-nav {
    background-color: #FF0000;
    position: relative;
    z-index: 100;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

.admin-header { margin-bottom: 40px; }

.admin-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.admin-subtitle {
    font-size: 18px;
    color: #666;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Sections */
.actions-section,
.table-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group { display: flex; flex-direction: column; }

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #91E100;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

/* QP Flex Notice */
.qp-flex-notice {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    display: none;
}

.qp-flex-notice.show { display: block; }

.qp-flex-notice-title {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
}

.qp-flex-notice-text {
    color: #78350f;
    font-size: 14px;
}

/* Buttons */
.btn-primary {
    background: #91E100;
    color: #000;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-primary:hover {
    background: #7bc200;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    font-family: 'Outfit', sans-serif;
}

.btn-secondary:hover { background: #d0d0d0; }

.btn-export {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-export:hover { background: #45a049; }

/* Table */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.jobs-table {
    width: 100%;
    border-collapse: collapse;
}

.jobs-table th {
    background: #f8f8f8;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.jobs-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.jobs-table tr:hover { background: #f8f8f8; }

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #d4f4dd;
    color: #2e7d32;
}

.status-inactive {
    background: #ffe0e0;
    color: #c62828;
}

.qp-flex-badge {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
    margin-left: 8px;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    padding: 5px;
    position: relative;
}

.btn-icon:hover { transform: scale(1.2); }

.application-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF0000;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Modals */
.modal,
.applications-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active,
.applications-modal.active { display: flex; }

.modal-content,
.applications-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.applications-content { max-width: 900px; }

.modal-header { margin-bottom: 30px; }

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.modal-close {
    float: right;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 0.8;
}

.modal-close:hover { color: #333; }

/* Applications */
.applications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.applications-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.applications-count {
    background: #FF0000;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.application-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.applicant-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.application-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.detail-item { display: flex; flex-direction: column; }

.detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.qp-flex-responses {
    background: #fef3c7;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.qp-flex-title {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 10px;
}

.no-applications {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Alerts */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    transform: translateX(400px);
    transition: transform 0.3s;
}

.alert.show { transform: translateX(0); }

.alert-success { background: #4CAF50; }
.alert-error { background: #f44336; }

/* Responsive */
@media (max-width: 768px) {
    .admin-container { padding: 20px; }
    .admin-title { font-size: 32px; }
    .stats-grid, .form-grid { grid-template-columns: 1fr; }
    .jobs-table { font-size: 14px; }
    .jobs-table th, .jobs-table td { padding: 10px 5px; }
    .table-actions { flex-direction: column; }
    .modal-content, .applications-content {
        padding: 20px;
        width: 95%;
    }
}
