
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: poppins,'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

html{
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 1);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

ul li a{
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #3498db;
}


/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
    }

    .hamburger span {
        width: 24px;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: 0.3s;
    }

    /* Animate */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

.donate-btn {
    background: #e74c3c;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
}

.donate-btn:hover {
    background: #c0392b;
    color: white !important;
}

#loginBtn{
    background-color: #3498db;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

#loginBtn:hover {
    background: #2980b9;
}

.login-btn{
    background-color: #3498db;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #2980b9;
}

.google-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-btn:hover {
    background: #f5f5f5;
}


/* Modal Styles
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: slideDown 0.3s;
} */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

.modal-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s;
    margin: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #2980b9;
}

.toggle-form {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.toggle-form a {
    color: #3498db;
    text-decoration: none;
    cursor: pointer;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: white;
}

.logout-btn {
    background: #e74c3c;
    color: red;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
}

#dashboardBtn{
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

/* Admin Dashboard */
.admin-dashboard {
    display: none;
    padding: 100px 20px 40px;
    min-height: 100vh;
    background: #f8f9fa;
}

.admin-dashboard.active {
    display: block;
}

.dashboard-header {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.dashboard-tabs {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: #ecf0f1;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #3498db;
    color: white;
}

.tab-btn:hover {
    background: #3498db;
    color: white;
}

.dashboard-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.action-btn {
    padding: 0.4rem 0.8rem;
    margin: 0 0.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.edit-btn {
    background: #3498db;
    color: white;
}

.edit-btn:hover {
    background: #2980b9;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

.add-new-btn {
    background: #27ae60;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: background 0.3s;
}

.add-new-btn:hover {
    background: #229954;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.wallet-box {
    display: flex;
    align-items: center;
    gap: 10px;

    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;

    padding: 8px 16px;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;

    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Wallet icon */
.wallet-box::before {
    content: "💳";
    font-size: 16px;
}

/* Amount highlight */
#walletAmount {
    font-weight: 700;
    font-size: 15px;
}

/* Hover effect (premium feel) */
.wallet-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.45);
}



.stat-card h3 {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #666;
}

/* Hero/Slideshow */
.hero {
    margin-top: 70px;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    height: 600px;
    overflow: hidden;
}

.slide {
    display: none;
    position: relative;
    width: 100%;
    height: 600px;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 2rem 4rem;
    border-radius: 10px;
}

.slide-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.slide-text p {
    font-size: 1.5rem;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.dots-container {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.dot.active, .dot:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

/* Statistics */
.stats {
    background: linear-gradient(135deg, #F63049 0%, #111F35 100%);
    color: white;
    padding: 3rem 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1rem;
}

/* Programs */
.programs {
    padding: 4rem 0;
}

.programs h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.programs-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
    gap: 2rem;
}
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.program-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

/* Impact */
.impact {
    padding: 4rem 0;
    background: #f8f9fa;
}

.impact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.impact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.impact-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.reports {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.report-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.report-btn:hover {
    background: #2980b9;
}

/* Gallery */
.gallery {
    padding: 4rem 0;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card h4 {
    color: #2c3e50;
    text-align: right;
}

/* Donate Section */
.donate-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #DEDED1 0%, #B6AE9F 100%);
    color: white;
    text-align: center;
}

.donate-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.donate-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 20px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    margin: 0 20px;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .slide-text h1 {
        font-size: 2rem;
    }
    
    .slide-text p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}



/* 👤 Account Menu */
.account-wrapper {
    position: relative;
    list-style: none;
}

.account-icon img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
}

/* Dropdown */
.account-menu {
    position: absolute;
    right: 0;
    top: 52px;
    background: #ffffff;
    color: #333;
    width: 220px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    padding: 12px;
    z-index: 999;
}

/* User Name Display in Account Menu */
.user-name-display {
    padding: 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    text-align: center;
    color: white;
}

.user-greeting {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.display-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.account-menu button {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background: #f1f5f9;
}

.account-menu button:hover {
    background: #e2e8f0;
}

.wallet-row {
    padding: 10px;
    font-weight: 600;
    text-align: center;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 8px;
}

.hidden {
    display: none;
}

.lang-box {
    margin-top: 8px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
}

.lang-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.lang-select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    cursor: pointer;
    background: white;
}


/* mobile */
@media (max-width: 768px) {

    /* NAV DRAWER */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 280px;
        height: 100vh;

        background: #0f172a; /* premium dark */
        flex-direction: column;
        align-items: flex-start;

        padding-top: 80px;
        gap: 0;

        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        width: 100%;
        padding: 14px 22px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1rem;
    }

    .nav-menu li a:hover {
        background: rgba(255,255,255,0.05);
    }

    .donate-btn {
        margin: 16px;
        width: calc(100% - 32px);
        text-align: center;
    }
}

@media (max-width: 768px) {
    .account-wrapper {
        position: fixed;
        top: 16px;
        right: 64px; /* left of hamburger */
        z-index: 1001;
    }
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 998;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* =============================
   GREEN PAYMENT SUCCESS POPUP
============================= */

.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.hidden {
    display: none !important;
}

.success-box {
    background: #1abc1f; /* GREEN BACKGROUND */
    padding: 32px 36px;
    border-radius: 18px;
    text-align: center;
    width: 320px;
    animation: popIn 0.4s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.success-box h2 {
    margin-top: 16px;
    color: #ffffff; /* WHITE TEXT */
    font-size: 22px;
}

.success-box p {
    margin-top: 8px;
    color: #ffffff; /* WHITE TEXT */
    opacity: 0.95;
    font-size: 15px;
}

/* CHECKMARK */
.checkmark-circle svg {
    width: 90px;
    height: 90px;
    stroke: #ffffff; /* WHITE TICK */
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.checkmark-circle circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: circleDraw 0.6s ease forwards;
}

.checkmark-circle path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkDraw 0.4s ease forwards 0.6s;
}

/* ANIMATIONS */
@keyframes circleDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes popIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =============================
   COMPLIANCE CERTIFICATE MODAL
============================= */

.compliance-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.compliance-content {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    animation: fadeInScale 0.3s ease;
}

.compliance-content h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

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

.certificate-list li {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

/* Close Button */
.compliance-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.compliance-close:hover {
    color: #000;
}

/* Animation */
@keyframes fadeInScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* inbox */
/* =============================
   NOTIFICATION BADGE
============================= */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Inbox Badge in Menu */
.inbox-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 6px;
}

/* =============================
   INBOX MODAL
============================= */
.inbox-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #3498db;
    color: white;
}

.filter-btn:hover {
    background: #3498db;
    color: white;
}

.inbox-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.notification-item:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.notification-item.unread {
    background: #e3f2fd;
    border-left: 4px solid #3498db;
    font-weight: 600;
}

.notification-item.read {
    opacity: 0.7;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.notification-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.notification-time {
    font-size: 12px;
    color: #999;
}

.notification-message {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.mark-read-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #27ae60;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.notification-item:hover .mark-read-btn {
    opacity: 1;
}

.mark-read-btn:hover {
    background: #229954;
}

/* =============================
   AI CHATBOT STYLES
============================= */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
}

#chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

#chatbot-window.chatbot-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-status {
    font-size: 12px;
    opacity: 0.9;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.chatbot-message {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease;
}

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: #3498db;
    order: 2;
}

.message-content {
    max-width: 75%;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-message .message-content {
    background: #3498db;
    color: white;
    margin-left: auto;
}

.message-content p {
    margin: 0 0 8px 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 4px;
}

.chatbot-input-container {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

#chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

#chatbot-input:focus {
    border-color: #667eea;
}

#chatbot-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#chatbot-send:hover {
    transform: scale(1.05);
}

#chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #chatbot-window {
        width: calc(100vw - 40px);
        height: 500px;
    }
    
    #chatbot-container {
        bottom: 10px;
        right: 10px;
    }
}
