/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif !important;
}

/* Background Override - Grey/Charcoal Theme */
.app-container .bg-plum-plate,
.app-container .bg-premium-dark {
    background-image: linear-gradient(135deg, #2c3e50 0%, #000000 100%) !important;
    background-color: #2c3e50 !important;
    /* Fallback */
}

/* Login Box / Modal Styling */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    /* Slight transparency for glassmorphism feel, or solid white */
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.modal-header,
.modal-footer {
    border: none !important;
    background: transparent !important;
}

.modal-body {
    padding: 2rem !important;
}

/* Typography */
.modal-title h4 {
    color: #333;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-title div {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.modal-title span {
    display: block;
    margin-top: 5px;
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

/* Input Fields */
.form-control {
    border-radius: 8px !important;
    border: 2px solid #e0e0e0 !important;
    padding: 12px 15px !important;
    height: auto !important;
    font-size: 1rem !important;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-control:focus {
    border-color: #2c3e50 !important;
    /* Charcoal accent */
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.2) !important;
    background-color: #fff;
}

/* Buttons */
.btn-primary {
    background-color: #2c3e50 !important;
    background-image: linear-gradient(to right, #2c3e50 0%, #4ca1af 100%) !important;
    /* Charcoal to muted teal gradient for "Awesome" look */
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Forgot Password Button Override */
a.btn.btn-primary.btn-lg[href="forg.php"] {
    background: transparent !important;
    background-image: none !important;
    color: #666 !important;
    box-shadow: none !important;
    border: 2px solid transparent !important;
}

a.btn.btn-primary.btn-lg[href="forg.php"]:hover {
    color: #2c3e50 !important;
    background-color: rgba(44, 62, 80, 0.05) !important;
    transform: none;
}

/* Links */
a.text-primary {
    color: #4ca1af !important;
    font-weight: 600;
    text-decoration: none;
}

a.text-primary:hover {
    color: #2c3e50 !important;
    text-decoration: underline;
}

/* Footer Copyright */
.text-white.opacity-8 {
    opacity: 0.7 !important;
    font-size: 0.9rem;
    margin-top: 2rem !important;
}

.app-logo-inverse {
    /* If the logo was visible, this would help, but it's commented out in HTML */
    margin-bottom: 2rem;
}

/* =========================================
   Dashboard Specific Styles (Header/Sidebar)
   ========================================= */

/* Header Background - Dark Charcoal */
.app-header {
    background-image: linear-gradient(to right, #2c3e50 0%, #34495e 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-header .app-header__logo .logo-src {
    /* Adjust logo brightness if needed, or leave as is */
    filter: brightness(1.2);
}

.app-header .header-dots h2 {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.app-header .widget-heading {
    color: #e0e0e0 !important;
    font-weight: 500;
}

.app-header .fa-sign-out,
.app-header .fa-sign-out a {
    color: #bdc3c7 !important;
}

/* Sidebar Background - Dark Charcoal/Black */
.app-sidebar {
    background-color: #2c3e50 !important;
    background-image: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%) !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.app-sidebar .app-sidebar__heading {
    color: #95a5a6 !important;
    font-weight: 600;
    letter-spacing: 1px;
}

.app-sidebar .metismenu li a {
    color: #ecf0f1 !important;
    transition: all 0.2s ease;
}

.app-sidebar .metismenu li a:hover,
.app-sidebar .metismenu li.mm-active>a {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.app-sidebar .metismenu-icon {
    color: #4ca1af !important;
    /* Muted teal accent */
}

/* Dashboard Content Area Cards */
.main-card.card,
.card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.2s ease;
}

.main-card.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.card-title {
    color: #2c3e50 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Main Content Background - Light Grey to contrast with Dark Sidebar */
.app-main__outer {
    background-color: #f4f6f9 !important;
}

/* =========================================
   Instruction Page Specific Styles
   ========================================= */

.instruction-section {
    position: relative;
    padding-left: 20px;
    margin-bottom: 30px;
}

.instruction-section h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.instruction-section h5 i {
    margin-right: 10px;
    color: #4ca1af;
}

.instruction-list {
    list-style: none;
    padding: 0;
}

.instruction-list li {
    position: relative;
    padding: 10px 15px 10px 35px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.instruction-list li:hover {
    border-color: #4ca1af;
    background-color: #fcfcfc;
}

.instruction-list li::before {
    content: "\2714";
    /* Checkmark */
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #2ecc71;
    font-size: 14px;
}

.step-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #2c3e50;
}

.step-card.part-1 {
    border-left-color: #3498db;
}

.step-card.part-2 {
    border-left-color: #9b59b6;
}

.step-card.part-3 {
    border-left-color: #e67e22;
}

.highlight-box {
    background-color: #e8f4f8;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #3498db;
    margin-bottom: 20px;
    color: #2c3e50;
}

.warning-box {
    background-color: #fff3cd;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #ffc107;
    margin-bottom: 20px;
    color: #856404;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.document-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.document-item i {
    margin-right: 10px;
    color: #e74c3c;
    /* PDF red colorish */
}

/* =========================================
   Table Styles (View Applications)
   ========================================= */

.custom-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background: #fff;
    padding: 10px;
    border: 1px solid #dee2e6;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.custom-table thead th {
    background-color: #2c3e50;
    color: #ffffff;
    font-weight: 600;
    padding: 15px;
    border: 1px solid #2c3e50;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.custom-table tbody tr {
    background-color: #ffffff;
}

.custom-table tbody tr:nth-of-type(even) {
    background-color: #f2f2f2;
}

.custom-table tbody tr:hover {
    background-color: #e2e6ea;
    cursor: default;
}

.custom-table tbody td {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    color: #333;
    vertical-align: middle;
    font-size: 1rem;
    text-align: center;
}

.table-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    /* More standard button look */
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-view-details {
    background-color: #3498db;
    /* Solid blue */
    color: #fff;
    border-color: #2980b9;
}

.btn-view-details:hover {
    background-color: #2980b9;
    color: #fff;
    text-decoration: none;
}

.btn-view-uploads {
    background-color: #2ecc71;
    /* Solid green */
    color: #fff;
    border-color: #27ae60;
    margin-left: 5px;
}

.btn-view-uploads:hover {
    background-color: #27ae60;
    color: #fff;
    text-decoration: none;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    min-width: 100px;
}

.status-pending {
    background-color: #ffca28;
    /* Material Amber */
    color: #000;
    border: 1px solid #ffc107;
}

.status-approved {
    background-color: #66bb6a;
    /* Material Green */
    color: #fff;
    border: 1px solid #4caf50;
}

.status-rejected {
    background-color: #ef5350;
    /* Material Red */
    color: #fff;
    border: 1px solid #f44336;
}

/* =========================================
   Profile Details View Styles
   ========================================= */

.profile-section {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    border: 1px solid #eee;
}

.profile-section-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-row {
    margin-bottom: 15px;
}

.detail-label {
    font-weight: 700 !important;
    /* Bold */
    color: #2c3e50;
    /* Darker charcoal instead of gray */
    font-size: 0.9rem;
    /* Slightly larger */
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #eef2f5;
}

.print-btn {
    background-color: #34495e;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.print-btn:hover {
    background-color: #2c3e50;
    color: #fff;
}

/* Print Styles */
@media print {

    .app-sidebar,
    .app-header,
    .print-btn,
    .app-footer,
    .footer {
        display: none !important;
    }

    .app-main__outer {
        padding: 0 !important;
        background: #fff !important;
    }

    .app-main__inner {
        padding: 0 !important;
    }

    .profile-section {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        margin-bottom: 20px !important;
        break-inside: avoid;
    }

    .detail-value {
        background: transparent !important;
        border: none !important;
        padding-left: 0 !important;
        font-weight: bold !important;
    }
}