/* =========================
   GLOBAL
========================= */
body{
    background:#f4f6f9;
    font-family:Arial, Helvetica, sans-serif;
}

*{
    box-sizing:border-box;
}

/* =========================
   CARDS & FORMS
========================= */
.card{
    border:none;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

.card h2{
    font-weight:bold;
}

.btn{
    border-radius:6px;
}

input.form-control,
textarea.form-control{
    border-radius:6px;
}

/* =========================
   FOOTER
========================= */
footer{
    color:#666;
    font-size:14px;
}

/* =========================
   DONATION BOX
========================= */
.donate-box{
    background:#fff7e6;
    padding:20px;
    border-radius:10px;
    text-align:center;
}

.donate-box img{
    margin-top:10px;
}

/* =========================
   NAVBAR (CLEAN VERSION)
========================= */
.navbar{
    background: linear-gradient(90deg,#0f2027,#203a43,#2c5364);
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 3px 12px rgba(0,0,0,0.2);
}

.navbar-brand{
    font-weight:700;
    font-size:20px;
    color:#fff !important;
}

.navbar-brand img{
    transition:0.3s;
}

.navbar-brand img:hover{
    transform:scale(1.05);
}

/* NAV LINKS */
.navbar-nav .nav-link{
    color:#e4e4e4 !important;
    font-weight:500;
    margin-right:10px;
    transition:0.25s ease;
}

/* HOVER */
.navbar-nav .nav-link:hover{
    color:#ffd166 !important;
}

/* ✅ ACTIVE LINK (FIXED) */
.navbar-nav .nav-link.active{
    color:#ffd166 !important;
    font-weight:600;
    border-bottom:2px solid #ffd166;
}

/* DROPDOWN */
.dropdown-menu{
    border-radius:10px;
    border:none;
    box-shadow:0 6px 18px rgba(0,0,0,0.15);
    padding:10px 0;
}

.dropdown-item{
    padding:8px 18px;
    transition:0.2s;
}

.dropdown-item:hover{
    background:#f1f5ff;
    color:#0d6efd;
}

/* =========================
   ICONS
========================= */
.bi-bell{
    color:#ffd166;
}

.bi-person-circle{
    color:#ffffff;
}

/* =========================
   MOBILE
========================= */
.navbar-toggler{
    border:none;
}

@media(max-width:768px){
    .navbar-brand img{
        max-height:28px;
    }

    .dropdown-menu{
        font-size:14px;
    }
}

/* =========================
   AI RESPONSE BOX
========================= */
.ai-answer{
    background:#f8f9fa;
    border-left:5px solid #0d6efd;
    padding:15px;
    border-radius:6px;
    font-size:15px;
    line-height:1.6;
}

/* =========================
   LOGO BOX
========================= */
.logo-box{
    background:white;
    padding:6px 12px;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    box-shadow:0 3px 10px rgba(0,0,0,0.15);
    transition:0.3s;
}

.logo-box img{
    height:40px;
}

.logo-box:hover{
    transform:scale(1.05);
}

/* =========================
   INVOICE PRINT
========================= */
.invoice-box{
    width:210mm;
    min-height:297mm;
    padding:10mm;
    margin:auto;
    background:#fff;
}

#printInvoice{
    width:210mm;
    min-height:297mm;
    padding:10mm;
    background:#fff;
    font-size:14px;
    position:absolute;
    left:-9999px;
    top:0;
}

/* TABLES */
table{
    width:100%;
    border-collapse:collapse;
}

th, td{
    border:1.5px solid #000;
    padding:8px;
    text-align:center;
}

.print-table{
    border:2px solid #000;
}

/* PRINT HEADER */
.print-header{
    border-bottom:3px solid #000;
    padding-bottom:10px;
    margin-bottom:15px;
}

.print-header b{
    font-size:16px;
}

/* PRINT SETTINGS */
@media print{

    #formArea{
        display:none !important;
    }

    #printInvoice{
        position:static;
        display:block;
    }

    body{
        margin:0;
    }
}

*{
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* =========================
   DROPDOWN SUBMENU
========================= */
.dropdown-submenu{
    position:relative;
}

.dropdown-submenu .dropdown-menu{
    top:0;
    left:100%;
    display:none;
}

.dropdown-submenu:hover .dropdown-menu{
    display:block;
}
.profile-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background: #ddd;
}
/* DROPDOWN IMPROVEMENT */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.dropdown-item i {
    font-size: 15px;
    width: 18px;
}

/* HOVER EFFECT */
.dropdown-item:hover {
    background: #f1f5ff;
    color: #0d6efd;
    padding-left: 20px;
    transition: 0.2s;
}

/* ICON ALIGNMENT */
.nav-link i {
    margin-right: 5px;
}
.dropdown-menu li {
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}
.hover-card {
transition: 0.3s ease;
cursor: pointer;
}

.hover-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
/* AUTH PAGES */
.auth-wrapper{
    min-height: 80vh;
    display:flex;
    align-items:center;
    justify-content:center;
}

.auth-card{
    width:100%;
    max-width:420px;
    border-radius:12px;
    padding:30px;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.auth-title{
    font-size:22px;
    font-weight:600;
    text-align:center;
    margin-bottom:10px;
}

.auth-subtitle{
    font-size:14px;
    text-align:center;
    color:#6c757d;
    margin-bottom:20px;
}

.auth-btn{
    border-radius:6px;
    font-weight:500;
    padding:10px;
}

.auth-link{
    font-size:13px;
    text-decoration:none;
}

.auth-link:hover{
    text-decoration:underline;
}

/* INPUT FOCUS */
.form-control:focus{
    box-shadow:none;
    border-color:#4b6cb7;
}
/* FIX HEADER BUTTON RESPONSIVENESS */
.auth-buttons{
align-items:center;
}

/* Mobile Fix */
@media (max-width: 991px){
.auth-buttons{
width:100%;
}

.auth-buttons a{
text-align:center;
}
}
/* COMPACT INVOICE LIST */
.invoice-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.invoice-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 12px;
    border-radius:8px;
    background:#f8f9fa;
    transition:0.2s ease;
}

.invoice-item:hover{
    background:#eef1f4;
}

.invoice-left{
    display:flex;
    flex-direction:column;
}

.invoice-right{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
}

/* MOBILE */
@media(max-width:768px){
    .invoice-item{
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
    }

    .invoice-right{
        align-items:flex-start;
    }
}
/* CARD LOOK */
.payment-card{
    border-radius:12px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    overflow:hidden;
}

/* TABLE */
.table{
    margin-bottom:0;
}

.table thead{
    background:#1f2937;
    color:#fff;
}

.table th{
    font-weight:600;
    font-size:14px;
    padding:14px 10px;
    text-align:center;
}

.table td{
    vertical-align:middle;
    padding:14px 10px;
    font-size:14px;
}

/* ZEBRA */
.table tbody tr:nth-child(even){
    background:#f9fafb;
}

/* HOVER */
.table tbody tr:hover{
    background:#eef2ff;
    transition:0.2s;
}

/* ALIGNMENTS */
td:nth-child(1),
td:nth-child(6),
td:nth-child(7){
    text-align:center;
}

/* EMAIL */
td:nth-child(3){
    word-break:break-word;
    font-size:13px;
}

/* PAYMENT ID */
td:nth-child(4){
    font-weight:600;
    color:#2563eb;
}

/* AMOUNT */
td:nth-child(6){
    font-weight:600;
    color:#059669;
}

/* STATUS BADGES */
.badge{
    padding:6px 10px;
    font-size:12px;
    border-radius:20px;
}

/* SEARCH BOX */
#paymentSearch{
    border-radius:10px;
    padding:10px 14px;
    border:1px solid #ddd;
}

/* MOBILE */
@media(max-width:768px){

table thead{display:none;}

table tr{
display:block;
margin-bottom:15px;
border-radius:10px;
padding:10px;
background:#fff;
box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

table td{
display:flex;
justify-content:space-between;
padding:6px 0;
border:none;
}

table td::before{
content:attr(data-label);
font-weight:bold;
}

}