/* General page */
body {
    background-color: #f4f7fb;
    color: #1e293b;
    font-family: Arial, sans-serif;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #172554, #2563eb) !important;
    padding: 16px 0;
}

.navbar-brand {
    color: #ffffff !important;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Main heading */
h1 {
    color: #172554;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h5 {
    color: #1e293b;
    font-weight: 600;
}

/* Cards */
.card {
    border: 1px solid #e8edf5;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

/* Statistics */
.card .card-body {
    padding: 22px;
}

.card .card-title {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.card h3 {
    color: #172554;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 8px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 14px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

/* Inputs */
.form-control,
.form-select {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 10px 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Applications table */
.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 15px 12px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.table tbody td {
    color: #334155;
    padding: 15px 12px;
    border-bottom: 1px solid #eef2f7;
}

.table tbody tr:hover td {
    background-color: #f8fbff;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Status badges */
.badge {
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Edit and Notes forms */
#editFormContainer,
#addFormContainer {
    margin-bottom: 24px;
}

/* Notes modal */
.modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.modal-header,
.modal-footer {
    border-color: #eef2f7;
}

/* Responsive mobile layout */
@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
    }

    .card .card-body {
        padding: 16px;
    }

    .card h3 {
        font-size: 1.6rem;
    }

    .table thead th,
    .table tbody td {
        padding: 12px 10px;
    }
}
/* Align table action buttons */
.table th:last-child,
.table td:last-child {
    text-align: center;
    vertical-align: middle;
}

.table td:last-child {
    min-width: 200px;
    white-space: nowrap;
}

.table td:last-child .btn {
    margin: 3px;
}
/* Professional, minimal statistics cards */
.card .card-body {
    padding: 22px 24px;
}

.card .card-title {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-bottom: 10px;
}

.card h3 {
    color: #172554;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.row.g-3 .card {
    border: 1px solid #e5eaf1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
    transition: box-shadow 0.2s ease;
}

.row.g-3 .card:hover {
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
    transform: none;
}
/* Clean, professional applications table */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 16px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.table tbody td {
    color: #334155;
    font-size: 0.9rem;
    padding: 16px 14px;
    border-bottom: 1px solid #edf1f5;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover td {
    background-color: #fafcff;
}

/* Keep action buttons consistent */
.table td:last-child .btn {
    margin: 2px;
    font-size: 0.8rem;
    padding: 6px 10px;
}
/* Horizontal scrolling for the jobs table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive .table {
    min-width: 900px;
}

/* Mobile job cards */
.mobile-job-card {
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    background: #ffffff;
}

.mobile-job-card h5 {
    color: #172554;
    font-weight: 700;
    font-size: 1.05rem;
}

.mobile-job-card .card-body {
    padding: 18px;
}

.mobile-job-card .text-muted {
    font-size: 0.85rem;
}

/* Desktop: show table, hide mobile cards */
@media (min-width: 768px) {
    .table-responsive {
        display: block;
    }

    #mobileJobCards {
        display: none !important;
    }
}

/* Mobile: show cards, hide table */
@media (max-width: 767.98px) {
    .table-responsive {
        display: none;
    }

    #mobileJobCards {
        display: block;
    }
}