/* App UI bundle: mobile + auth + account + dashboard + steps */

/* --- assets/css/mobile-optimized.css --- */
/* CSS untuk optimasi mobile */

/* Fix logo size globally */
.header .logo img,
.login-container .logo img,
.logo img {
    max-width: 80px;
    height: auto;
}

.header .logo img {
    max-width: 40px; /* Smaller in header */
}

/* Penyesuaian untuk layar kecil */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .dashboard-card, .upload-card, .form-container {
        padding: 15px 10px;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    .table-responsive {
        margin-bottom: 0;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .header h5 {
        font-size: 1rem;
    }
    
    .header .logo img {
        width: 30px;
    }
    
    /* Sembunyikan beberapa kolom tabel pada mobile */
    .mobile-hide {
        display: none;
    }
    
    /* Buat tabel lebih mudah dibaca di mobile */
    .table-mobile-friendly th,
    .table-mobile-friendly td {
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
    }
    
    /* Perkecil pagination */
    .pagination .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Penyesuaian untuk card */
    .card-body {
        padding: 0.75rem;
    }
    
    /* Penyesuaian untuk form */
    .form-label {
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }
    
    .form-control, .form-select {
        padding: 0.375rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Penyesuaian untuk alert */
    .alert {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Penyesuaian untuk modal */
    .modal-body {
        padding: 0.75rem;
    }
    
    .modal-footer {
        padding: 0.5rem;
    }
    
    /* Penyesuaian untuk badge */
    .badge {
        font-size: 0.7rem;
    }
    
    /* Penyesuaian untuk dropdown */
    .dropdown-menu {
        font-size: 0.9rem;
    }
    
    .dropdown-item {
        padding: 0.25rem 0.75rem;
    }
}

/* Perbaikan untuk tampilan form di mobile */
@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }
    
    .form-label {
        margin-bottom: 0.25rem;
    }
    
    .form-control, .form-select {
        padding: 0.375rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Buat tombol lebih besar untuk touch */
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Penyesuaian untuk card */
    .card {
        margin-bottom: 15px;
    }
    
    /* Penyesuaian untuk tab */
    .nav-tabs .nav-link, .nav-pills .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Bottom Navigation untuk Mobile */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px 0;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 60px;
    }
    
    .mobile-bottom-nav .nav-item {
        text-align: center;
    }
    
    .mobile-bottom-nav .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    
    .mobile-bottom-nav .nav-icon {
        font-size: 1.5rem;
        margin-bottom: 2px;
    }
    
    .mobile-bottom-nav .nav-text {
        font-size: 0.7rem;
    }
}

/* Optimasi untuk tabel */
.table-mobile-friendly {
    width: 100%;
}

@media (max-width: 768px) {
    .table-mobile-friendly thead {
        display: none;
    }
    
    .table-mobile-friendly, 
    .table-mobile-friendly tbody, 
    .table-mobile-friendly tr, 
    .table-mobile-friendly td {
        display: block;
        width: 100%;
    }
    
    .table-mobile-friendly tr {
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 5px;
    }
    
    .table-mobile-friendly td {
        position: relative;
        padding-left: 50%;
        text-align: right;
        border-bottom: 1px solid #dee2e6;
    }
    
    .table-mobile-friendly td:before {
        content: attr(data-label);
        position: absolute;
        left: 0.75rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
    
    .table-mobile-friendly td:last-child {
        border-bottom: 0;
    }
    
    .table-mobile-friendly .btn-group {
        display: flex;
        justify-content: flex-end;
    }
}


/* --- assets/css/auth-polish.css --- */
/* Shared polish for auth pages (admin/group/interviewer/applicant) */
.auth-shell {
    max-width: 470px;
    width: 100%;
}

.auth-card {
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.85rem;
}

.auth-subtitle {
    margin-bottom: 1.2rem;
}

.auth-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.auth-note {
    font-size: 0.82rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
}

.auth-eye-btn {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 0;
    margin-right: 0.55rem;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-eye-btn:hover {
    color: #1e293b;
}

.auth-eye-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 6px;
}

.auth-strength {
    min-height: 1.2rem;
}

@media (max-width: 576px) {
    .auth-shell {
        padding: 0.75rem;
    }

    .login-card.auth-card {
        padding: 2.2rem 1.15rem;
        border-radius: 22px;
    }

    .auth-kicker {
        margin-bottom: 0.65rem;
    }
}


/* --- assets/css/account-settings.css --- */
.account-security-page {
    min-height: 100vh;
    background: linear-gradient(140deg, #edf4ff 0%, #f8fafc 45%, #f5f3ff 100%);
    position: relative;
    overflow-x: hidden;
}

.account-bg-shape {
    position: fixed;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.38;
    pointer-events: none;
    z-index: 0;
}

.account-bg-shape.shape-1 {
    top: -120px;
    left: -120px;
    background: #93c5fd;
}

.account-bg-shape.shape-2 {
    right: -140px;
    bottom: -140px;
    background: #c4b5fd;
}

.account-shell {
    position: relative;
    z-index: 1;
    max-width: 980px;
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.account-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: 0 14px 28px -24px rgba(15, 23, 42, 0.28);
}

.account-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 1rem;
}

.account-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.account-meta-list li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
}

.account-meta-list span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 0.15rem;
}

.account-meta-list strong {
    color: #1e293b;
    font-size: 0.93rem;
}

.password-group .btn {
    border-left: 0;
    background: #fff;
}

.password-group .form-control:focus + .btn {
    border-color: #86b7fe;
}

@media (max-width: 767.98px) {
    .account-header {
        flex-direction: column;
        align-items: stretch;
    }
}


/* --- assets/css/applicant-dashboard-polish.css --- */
.applicant-dashboard-page {
    background: linear-gradient(140deg, #f8fbff 0%, #f8fafc 42%, #f5f3ff 100%);
}

.applicant-dashboard-shell {
    max-width: 1060px;
}

.applicant-dashboard-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.15rem;
    box-shadow: 0 18px 30px -24px rgba(15, 23, 42, 0.3);
    margin-bottom: 1rem;
}

.dashboard-header .welcome-section {
    display: grid;
    gap: 0.5rem;
}

.applicant-chip {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.applicant-overview-card {
    border-top: 4px solid #4f46e5;
}

.applicant-overview-card .status-item {
    min-height: 120px;
}

.applicant-overview-card .progress {
    height: 12px;
}

.applicant-overview-card .progress-bar {
    font-size: 0.72rem;
}

@media (max-width: 767.98px) {
    .applicant-dashboard-header {
        border-radius: 14px;
        padding: 0.95rem;
    }

    .dashboard-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .dashboard-header-actions .btn {
        flex: 1;
    }

    .applicant-overview-card .status-item {
        min-height: unset;
    }
}


/* --- assets/css/applicant-steps-polish.css --- */
.applicant-step-page {
    background: linear-gradient(145deg, #f8fbff 0%, #f8fafc 45%, #f5f3ff 100%);
    min-height: 100vh;
}

.applicant-step-page .container {
    max-width: 1080px;
}

.applicant-step-page .wizard-container {
    border-top: 4px solid #4f46e5;
}

.applicant-step-page .step-indicator {
    justify-content: center;
    gap: 0.8rem;
}

.applicant-step-page .step-circle {
    box-shadow: 0 8px 18px -14px rgba(15, 23, 42, 0.45);
}

.applicant-step-page .step-circle.active {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.applicant-step-page .btn-primary,
.applicant-step-page .btn-success {
    border: none;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.applicant-step-page .btn-primary:hover,
.applicant-step-page .btn-success:hover {
    filter: brightness(1.06);
}

.applicant-step-page .review-section,
.applicant-step-page .doc-upload-item {
    background: #ffffff;
}

.applicant-step-page .photo-upload-area {
    width: 100%;
    height: 300px;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    position: relative;
}

.applicant-step-page .photo-upload-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.applicant-step-page .photo-placeholder {
    text-align: center;
    color: #adb5bd;
}

@media (max-width: 767.98px) {
    .applicant-step-page .wizard-container {
        border-radius: 14px;
        padding: 1rem;
    }

    .applicant-step-page .step-indicator {
        gap: 0.45rem;
        margin-bottom: 1.25rem !important;
    }

    .applicant-step-page .step-circle {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }
}
