/* === RECRUITER DASHBOARD RELOADED === */

.tgc-dashboard-container {
    max-width: 1200px;
    margin: 2.5rem auto;
    font-family: 'Inter', sans-serif;
    padding: 0 0.9375rem;
}

.dashboard-header {
    margin-bottom: 1.875rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
}

.company-sub {
    color: #666;
    font-size: 1.25rem;
    margin-top: 0.3125rem;
}

/* TABS */
.tgc-dashboard-tabs {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 1.875rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0;
}

.tab-btn {
    background: #e6f7ff;
    /* Light Blue Default */
    color: #0073aa;
    border: none;
    padding: 0.9375rem 1.875rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #d4edda;
    /* Light Green on Hover */
    color: #155724;
}

.tab-btn.active {
    background: #0073aa;
    /* Active Selection */
    color: #fff;
}

.tab-btn.active:hover {
    background: #005a87;
}

/* CONTENT BOXES */
.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.white-box,
.info-box,
.stat-box {
    background: #fff;
    padding: 1.875rem;
    border-radius: 0 0.5rem 0.5rem 0.5rem;
    /* Square top-left aligns with tab */
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    margin-bottom: 1.25rem;
}

.info-box {
    background: #fdfdfd;
    border-left: 5px solid #0073aa;
}

.info-box h3 {
    margin-top: 0;
    color: #0073aa;
}

/* FORMS */
.form-box h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.9375rem;
    margin-bottom: 1.5625rem;
}

.form-section {
    margin-bottom: 1.875rem;
    background: #fafafa;
    padding: 1.25rem;
    border-radius: 0.375rem;
}

.form-section h3 {
    margin-top: 0;
    font-size: 1.125rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.form-row {
    margin-bottom: 1.25rem;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    font-size: 0.9375rem;
    background: #fff;
    box-sizing: border-box;
    /* Fixes blowout */
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: #0073aa;
    outline: none;
}

.split-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.875rem;
}

/* Input Group for URL */
.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    background: #fff;
    overflow: hidden;
}

.input-group:focus-within {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.input-group-addon {
    background: #f1f1f1;
    color: #666;
    padding: 0.75rem 0.9375rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-right: 1px solid #ccc;
    white-space: nowrap;
}

.input-group input {
    border: none !important;
    border-radius: 0 !important;
    padding: 0.75rem;
    flex: 1;
}

.input-group input:focus {
    box-shadow: none !important;
    border: none !important;
}

.req {
    color: red;
}

.btn-submit {
    background: #28a745;
    color: white;
    padding: 0.9375rem 2.5rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 1.125rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #218838;
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.stat-box {
    text-align: center;
}

.stat-box .count {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #0073aa;
}

.stat-box .label {
    text-transform: uppercase;
    color: #777;
    font-size: 0.875rem;
}

/* DATA TABLE */
.tgc-data-table {
    width: 100%;
    border-collapse: collapse;
}

.tgc-data-table th {
    text-align: left;
    padding: 0.9375rem;
    background: #f1f1f1;
    color: #555;
}

.tgc-data-table td {
    padding: 0.9375rem;
    border-bottom: 1px solid #eee;
}

.status-badge {
    padding: 0.3125rem 0.625rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.closed {
    background: #eee;
    color: #777;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === PUBLIC JOB BOARD === */

.jobs-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5625rem;
    margin-top: 1.25rem;
}

.job-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 0.5rem;
    padding: 1.5625rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #d1d1d1;
}

.job-card h3 {
    margin: 0 0 0.625rem 0;
    font-size: 1.25rem;
    color: #0073aa;
    line-height: 1.3;
}

.job-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.9375rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9375rem;
}

.job-meta .location,
.job-meta .rate {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
}

.job-card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.btn-view-job {
    display: block;
    width: 100%;
    text-align: center;
    background: #28a745;
    /* Green */
    color: #fff;
    text-decoration: none;
    padding: 0.625rem;
    /* Reduced padding */
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    /* Reduced font size */
    box-sizing: border-box;
    /* Prevent blowout */
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-view-profile {
    display: block;
    width: 100%;
    text-align: center;
    background: #0073aa;
    /* Blue */
    color: #fff;
    text-decoration: none;
    padding: 0.625rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    box-sizing: border-box;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-view-profile:hover {
    background: #e6f7ff;
    /* Light Blue */
    color: #0073aa;
    text-decoration: none;
}

/* SINGLE JOB STYLES */
.tgc-btn-apply {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 0.9375rem 0;
    width: 100%;
    font-size: 1.125rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: bold;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    z-index: 10;
}

.tgc-btn-apply:hover {
    background: #e6f7ff !important;
    color: #0073aa !important;
}

.tgc-btn-login {
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.25rem;
    display: block;
    transition: 0.3s;
    position: relative;
    z-index: 10;
}

.tgc-btn-login:hover {
    background: #005177;
    color: #fff;
}

.tgc-alert-premium {
    background: #d4edda;
    color: #155724;
    padding: 0.9375rem;
    border-radius: 0.25rem;
    text-align: center;
    border: 1px solid #c3e6cb;
}

.btn-view-job:hover {
    background: #218838;
    color: #fff;
    text-decoration: none;
}

.no-jobs-found {
    text-align: center;
    padding: 3.125rem;
    background: #f9f9f9;
    border-radius: 0.5rem;
    color: #666;
}

.btn-post-first {
    display: inline-block;
    margin-top: 0.9375rem;
    background: #0073aa;
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.25rem;
    text-decoration: none;
}

/* === FILTERS & SECTIONS === */

.section-title {
    font-size: 1.8rem;
    color: #333;
    border-left: 0.3125rem solid #0073aa;
    padding-left: 0.9375rem;
    margin-bottom: 1.5625rem;
}

.filter-pill {
    background: #f0f2f5;
    color: #555;
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-weight: 500;
}

.filter-pill:hover {
    background: #0073aa;
    color: #fff;
    transform: translateY(-2px);
}

.filter-pill.active {
    background: #0073aa;
    color: #fff;
}