/* --- MODERN UI STYLESHEET FOR NIN VERIFIER --- */
/* --- Author: Your AI Assistant --- */
/* --- Version: 2.0 --- */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Keyframe Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Root Variables & Global Styles --- */
:root {
    --primary-color: #008000; /* Main Green */
    --primary-gradient: linear-gradient(45deg, #00b300, #006400);
    --primary-color-dark: #006400;
    --secondary-color: #f8f9fa; /* Light background */
    --text-color: #343a40; /* Darker grey for text */
    --muted-color: #6c757d; /* Lighter grey for subtext */
    --border-color: #e9ecef; /* Softer border color */
    --error-color: #dc3545;
    --success-color: #28a745;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --border-radius: 8px;
    --font-family: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--secondary-color);
    color: var(--text-color);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Login & Register Page --- */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--primary-gradient);
}
.container {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 420px;
    margin: 1rem;
    animation: slideUp 0.5s ease-out;
}
.container h2 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}
.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.15);
}
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--primary-gradient);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 100, 0, 0.2);
}
.form-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
.form-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.form-switch a:hover {
    text-decoration: underline;
}

/* --- Notification Messages --- */
.message {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    border: 1px solid transparent;
    animation: fadeIn 0.3s ease;
}
.message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border-color: rgba(220, 53, 69, 0.2);
}
.message.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-color: rgba(40, 167, 69, 0.2);
}


/* --- User Dashboard Layout --- */
body.dashboard-body {
    background-color: var(--secondary-color);
}
.dashboard-main {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    animation: fadeIn 0.5s ease;
}
.dashboard-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    color: var(--muted-color);
    font-size: 0.9rem;
}

/* User Dashboard Navigation */
.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.nav-links a {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.nav-user-info { display: flex; align-items: center; gap: 1.5rem; }
.nav-user-info .username { font-weight: 500; }
.wallet-balance {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--primary-color-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}
.btn-logout {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-logout:hover {
    background-color: var(--error-color);
    color: #fff;
}

/* --- General Content Styles (Headers, Cards) --- */
.page-header {
    margin-bottom: 2rem;
    animation: slideUp 0.5s ease-out;
}
.page-header h1 {
    margin: 0;
    font-weight: 600;
    font-size: 2rem;
}
.page-header p {
    margin: 5px 0 0;
    color: var(--muted-color);
    font-size: 1rem;
}
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.card {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideUp 0.5s ease-out;
}
.dashboard-cards .card:nth-child(2) { animation-delay: 0.1s; }
.dashboard-cards .card:nth-child(3) { animation-delay: 0.2s; }
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.card h3 { margin-top: 0; font-weight: 600; }
.card p { color: var(--muted-color); }
.card .btn { margin-top: 1rem; width: auto; padding: 10px 20px; font-weight: 500; }
.card .btn-disabled { background-color: #e9ecef; color: var(--muted-color); cursor: not-allowed; }
.card .btn-disabled:hover { transform: none; box-shadow: none; }

/* --- Verification & Wallet Page Specifics --- */
.verification-container, .results-container {
    animation: slideUp 0.5s ease-out;
}
.tabs { border-bottom: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.tab-link {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 14px 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted-color);
    border-bottom: 3px solid transparent;
}
.tab-link:hover { color: var(--text-color); }
.tab-link.active { color: var(--primary-color); font-weight: 600; border-bottom-color: var(--primary-color); }
.verification-results { border-top: 4px solid var(--success-color); }
.result-header { display: flex; align-items: center; gap: 1.5rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.result-photo { width: 100px; height: 100px; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow-sm); object-fit: cover; }
.result-name { font-size: 1.8rem; font-weight: 600; }
.result-list { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem 1.5rem; }
.result-list dt { font-weight: 500; color: var(--muted-color); }
.result-list dd { margin: 0; font-weight: 500; }
.result-actions { text-align: center; margin-top: 2rem; }
.result-actions .btn { width: auto; }
.current-balance-card { background: var(--primary-gradient); color: #fff; text-align: center; padding: 2.5rem; border-radius: var(--border-radius); margin-bottom: 2rem; animation: slideUp 0.5s ease-out; }
.current-balance-card h2 { color: rgba(255,255,255,0.8); font-weight: 500; margin: 0; }
.balance-amount { font-size: 3.5rem; font-weight: 700; line-height: 1; margin-top: 0.5rem; }
.funding-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.bank-details { list-style: none; padding: 0; margin: 1.5rem 0; background-color: var(--secondary-color); border: 1px solid var(--border-color); border-radius: var(--border-radius); }
.bank-details li { padding: 12px 15px; border-bottom: 1px solid var(--border-color); }
.bank-details li:last-child { border-bottom: none; }
.bank-details a { color: var(--primary-color); font-weight: 600; }

/* --- Admin Panel --- */
body.admin-body { display: flex; background-color: #f4f7fa; }
.admin-sidebar {
    width: 260px;
    background: #111827; /* Darker admin sidebar */
    color: #9ca3af;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}
.sidebar-header { padding: 1.5rem; text-align: center; }
.sidebar-header h3 { margin: 0; color: #fff; font-weight: 600; }
.sidebar-nav { list-style: none; padding: 1rem 0; margin: 0; flex-grow: 1; display: flex; flex-direction: column; }
.sidebar-nav .nav-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    color: #d1d5db;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
}
.sidebar-nav .nav-item a:hover {
    background-color: #1f2937;
    color: #fff;
}
.sidebar-nav .nav-item a.active { /* Add 'active' class via PHP for current page */
    background-color: #1f2937;
    color: #fff;
    border-left-color: var(--primary-color);
}
.sidebar-nav .nav-item.logout { margin-top: auto; }
.sidebar-nav .nav-item.logout a:hover { background-color: #991b1b; }
.admin-main-content { margin-left: 260px; width: calc(100% - 260px); }
.admin-header { background-color: #fff; padding: 1rem 2rem; box-shadow: var(--shadow-sm); text-align: right; font-size: 1rem; font-weight: 500; }
.admin-page-content { padding: 2.5rem; }
.card.admin-card .stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); margin-top: 1rem; }


/* --- Mobile & Responsive Styles --- */
@media (max-width: 992px) {
    .nav-links, .nav-user-info { display: none; }
    .nav-mobile-toggle { display: block; cursor: pointer; font-size: 1.5rem; }
    /* Mobile nav logic needs JS to toggle an 'active' class on a container */
}
@media (max-width: 768px) {
    .funding-options { grid-template-columns: 1fr; }
    .admin-sidebar { position: relative; width: 100%; height: auto; }
    .admin-main-content { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
    .container { padding: 1.5rem; }
    .dashboard-nav { padding: 1rem; }
    .dashboard-main, .admin-page-content { padding: 1.5rem; }
    .result-list { grid-template-columns: 1fr; }
}

/* ============================================== */
/* ========= ADMIN TABLE & FORMS STYLES ========= */
/* ============================================== */

.table-container {
    overflow-x: auto; /* Allows horizontal scrolling on small screens */
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table thead tr {
    background-color: var(--secondary-color);
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 600;
    color: var(--muted-color);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.admin-table tbody tr:hover {
    background-color: #f8f9fa;
}

.admin-table .actions-column {
    width: 300px;
}

.action-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-form input[type="number"] {
    width: 100px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.btn-action {
    padding: 8px 12px;
    border: none;
    border-radius: var(--border-radius);
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-action.credit {
    background-color: var(--success-color);
}
.btn-action.credit:hover {
    background-color: #218838;
}

.btn-action.debit {
    background-color: var(--error-color);
}
.btn-action.debit:hover {
    background-color: #c82333;
}
/* ============================================== */
/* ========= ADMIN SETTINGS PAGE STYLES ========= */
/* ============================================== */

.settings-form h3 {
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}
.settings-form h3:first-of-type {
    margin-top: 0;
}

.form-description {
    font-size: 0.9rem;
    color: var(--muted-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.form-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 2.5rem 0;
}

.settings-form .btn {
    margin-top: 2rem;
    width: auto;
    padding: 12px 30px;
}