/* GRA Applicant Frontend - professional UI styles */

body.app-frontend {
    background: #f4f7fb;
}

body.app-frontend .content-body {
    padding: 1.5rem 0 2rem;
}

body.app-frontend .card,
.app-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.5rem;
}

body.app-frontend .card .card-header,
.app-card .card-header {
    background: #fff;
    border-bottom: 1px solid #e8edf3;
    padding: 1.25rem 1.5rem;
}

body.app-frontend .card .card-body,
.app-card .card-body {
    padding: 1.5rem;
}

body.app-frontend .card .card-footer,
.app-card .card-footer {
    background: #fafbfd;
    border-top: 1px solid #e8edf3;
    padding: 1rem 1.5rem;
}

.app-page-title {
    color: #1a202c;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0;
}

.app-page-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 0;
    margin-top: 0.35rem;
}

.app-page-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.app-page-header .welcome-text h4 {
    color: #1a202c;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
}

.app-page-header .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.app-form-label,
body.app-frontend label,
body.app-frontend .text-label {
    color: #4a5568;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

body.app-frontend .form-control,
body.app-frontend select.form-control,
body.app-frontend textarea.form-control {
    border: 1px solid #d7dde8;
    border-radius: 8px;
    color: #2d3748;
    font-size: 0.92rem;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
}

body.app-frontend .form-control:focus,
body.app-frontend select.form-control:focus,
body.app-frontend textarea.form-control:focus {
    border-color: #5b7cfa;
    box-shadow: 0 0 0 0.15rem rgba(91, 124, 250, 0.15);
}

body.app-frontend .form-group {
    margin-bottom: 1rem;
}

body.app-frontend .btn {
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 42px;
    padding: 0.5rem 1.1rem;
}

body.app-frontend .btn-block {
    width: 100%;
}

.app-form-actions,
.app-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.app-form-actions-start {
    justify-content: flex-start;
}

.app-auth-page {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.app-auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    margin: 0 auto;
    max-width: 480px;
    padding: 2rem 1.75rem;
    width: 100%;
}

.app-auth-logo {
    border-radius: 12px;
    display: block;
    height: auto;
    margin: 0 auto 1rem;
    width: 90px;
}

.app-auth-title {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-align: center;
}

.app-form-card .app-number-banner {
    background: #f0f5ff;
    border: 1px solid #d6e4ff;
    border-radius: 10px;
    color: #2b4acb;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 1.5rem 1rem;
    padding: 0.85rem 1rem;
    text-align: center;
}

.app-form-card section {
    background: #fafbfd;
    border: 1px solid #edf1f7;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
}

.app-form-card section h2 {
    border-bottom: 2px solid #e8edf3;
    color: #1a202c;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    text-transform: uppercase;
}

.app-form-card .text-danger {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.app-portal-option {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-portal-option:hover {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.app-portal-icon {
    color: #5b7cfa;
    font-size: 3rem;
    line-height: 1;
}

.app-portal-icon.success {
    color: #38a169;
}

.app-exam-item {
    align-items: center;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding: 1.1rem 1.25rem;
}

.app-exam-item.completed {
    background: #f8fafc;
}

.app-exam-meta {
    color: #718096;
    font-size: 0.85rem;
}

.app-exam-timer {
    border-radius: 999px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
}

.app-exam-timer.safe {
    background: #38a169;
}

.app-exam-timer.warning {
    background: #d69e2e;
}

.app-exam-timer.danger {
    background: #e53e3e;
}

.app-answer-option {
    align-items: center;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    cursor: pointer;
    display: flex;
    margin-bottom: 0.65rem !important;
    padding: 0.85rem 1rem !important;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.app-answer-option:hover {
    background: #f7faff;
    border-color: #c3d4ff !important;
}

.app-answer-option input {
    margin-right: 0.75rem !important;
}

.app-view-header {
    text-align: center;
}

.app-view-photo {
    border: 2px solid #e8edf3;
    border-radius: 10px;
    display: block;
    height: 170px;
    margin-left: auto;
    object-fit: cover;
    width: 130px;
}

body.app-frontend .table {
    margin-bottom: 0;
}

body.app-frontend .table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e8edf3 !important;
    color: #4a5568;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
}

body.app-frontend .table tbody td {
    text-align: center;
    vertical-align: middle;
}

body.app-frontend .table tbody td.text-left-cell {
    text-align: left !important;
}

.app-info-panel {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 12px;
    color: #2c5282;
    margin: 1.5rem;
    padding: 1.25rem;
}

.app-info-panel h2,
.app-info-panel p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

body.app-frontend .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

body.app-frontend .modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
}

body.app-frontend .modal-footer {
    background: #fafbfd;
    border-top: 1px solid #e8edf3;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

body.app-frontend .alert {
    border: none;
    border-radius: 10px;
}

body.app-frontend .badge {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
}

.app-progress {
    background: #edf2f7;
    border-radius: 999px;
    height: 8px !important;
    overflow: hidden;
}

.app-progress .progress-bar {
    background: linear-gradient(90deg, #5b7cfa, #7c9bff);
}

.gap-2 {
    gap: 0.5rem;
}

.d-flex.gap-2,
.d-flex.flex-wrap {
    display: flex;
}

/* Landing page */
.landing-nav-actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-nav-actions li {
    display: inline-flex;
    align-items: center;
}

.landing-nav-actions .btn {
    border-radius: 999px;
    font-weight: 600;
    min-width: 110px;
    padding: 0.55rem 1.25rem;
}

.landing-apply-btn,
.hire-us-button {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
}

.landing-choose-item {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1.1rem 1.25rem;
}

@media (max-width: 991px) {
    body.app-frontend .content-body {
        padding: 1rem 0 1.5rem;
    }

    .app-exam-item {
        justify-content: center;
        text-align: center;
    }

    .app-page-header {
        gap: 0.75rem;
    }
}
