/* ==============================================
   PRIME WALLET BANK — COMPLETE STYLESHEET
   Brand: Royal Blue #0047AB | Gold #FFD700
   index.php — UNCHANGED
   ============================================== */

/* ========== CSS VARIABLES ========== */
:root {
    --primary: #0047AB;
    --primary-dark: #0A1F44;
    --secondary: #0066CC;
    --accent: #FFD700;
    --accent-dark: #B8860B;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --light: #F0F6FF;
    --gray: #647AA3;
    --gray-light: #94A3B8;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 71, 171, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 71, 171, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== SMOOTH PAGE LOAD ========== */
body {
    animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #1E293B;
    background: var(--light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

input, select, textarea {
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    background: rgba(10, 31, 68, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    animation: slideDown 0.4s ease-out;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* ========== BUTTONS ========== */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 71, 171, 0.35);
}

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

.btn-gold {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--primary-dark);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== FORM PAGES — Register / Login ========== */
body.form-page {
    background: linear-gradient(180deg, #0B2B80 0%, #0047AB 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.form-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(0, 71, 171, 0.25);
    border: 1px solid rgba(255, 215, 0, 0.2);
    animation: scaleIn 0.5s ease-out;
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.form-card h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #CBD5E1;
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: #FFFFFF;
    color: #1E293B;
}

.form-group input::placeholder {
    color: #94A3B8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.15);
    transform: scale(1.01);
}

.form-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}

.form-links a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.form-links a:hover {
    text-decoration: underline;
}

/* ========== DASHBOARD ========== */
body.dashboard-page {
    background: linear-gradient(135deg, #F0F6FF 0%, #E0EBFF 100%);
    min-height: 100vh;
    padding-top: 80px;
}

.dashboard-header {
    padding: 30px 20px 10px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-header h1 {
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 8px;
}

.datetime {
    color: var(--gray);
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: cardFadeIn 0.6s ease-out;
}
.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 71, 171, 0.18);
}

.dashboard-card h3 {
    color: var(--gray);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* ========== TABLES ========== */
.transactions-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeInUp 0.7s ease-out;
}

.transactions-section h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 16px;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.transactions-table th,
.transactions-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.2s ease;
}

.transactions-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.transactions-table tbody tr {
    transition: background 0.2s ease;
}

.transactions-table tbody tr:hover {
    background: #F0F7FF;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s ease;
}

.status-badge:hover {
    transform: scale(1.05);
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-active,
.status-completed {
    background: #D1FAE5;
    color: #065F46;
}

.status-rejected,
.status-suspended,
.status-frozen {
    background: #FEE2E2;
    color: #991B1B;
}

/* ========== ALERTS ========== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideIn 0.4s ease-out;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* ========== FOOTER ========== */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

footer p {
    color: var(--gray-light);
    font-size: 14px;
}

/* ========== RESPONSIVE — MOBILE ========== */
@media (max-width: 768px) {
    .nav {
        padding: 12px 15px;
        flex-wrap: wrap;
    }

    .nav-brand {
        font-size: 17px;
    }

    .nav-links {
        gap: 12px;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .form-card {
        padding: 25px 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .transactions-table {
        display: block;
        overflow-x: auto;
        font-size: 13px;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}
