/* ==========================================================================
   BASİT MOD - ORTAK CSS (COMMON.CSS)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --pink-accent: #EC4899;
    --pink-hover: #DB2777;
    --pink-light: #FCE7F3;
    --sidebar-bg: #0B1324;
    --sidebar-active: rgba(236, 72, 153, 0.15);
    --bg-page: #F8FAFC;
    --card-bg: #FFFFFF;
    --border-color: #E2E8F0;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

/* Auth Loading Screen & Flash Prevention (Non-blocking & Elegant) */
#authLoadingScreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #F8FAFC;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    transition: opacity 0.2s ease;
}

body.auth-loading #authLoadingScreen {
    display: flex !important;
}

body {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

html, body {
    width: 100%;
    height: 100%;
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Master Layout */
.basit-master-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Sidebar Overlay */
.basit-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1199;
}

.basit-sidebar-overlay[hidden],
#sidebarOverlay[hidden] {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Left Sidebar */
.basit-sidebar {
    width: 240px;
    background: var(--sidebar-bg);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 1200;
    transition: transform 0.25s ease;
}

.basit-sidebar-header {
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.basit-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--pink-accent);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.basit-logo-text h2 {
    font-size: 15px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
}

.basit-logo-text span {
    font-size: 10px;
    color: var(--pink-accent);
    font-weight: 600;
}

/* Nav Menu */
.basit-sidebar-menu {
    padding: 16px 12px;
    flex: 1;
}

.basit-sidebar-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.basit-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.basit-sidebar-menu a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

.basit-sidebar-menu li.active a {
    color: #FFFFFF;
    background: var(--sidebar-active);
    border-left: 3px solid var(--pink-accent);
}

.basit-sidebar-menu a i {
    font-size: 16px;
    color: var(--pink-accent);
}

/* User Card Footer */
.basit-sidebar-footer {
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.basit-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.basit-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--pink-accent);
}

.basit-user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.basit-user-name {
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
}

.basit-user-role {
    color: #94A3B8;
    font-size: 10.5px;
}

/* Main Area Wrapper */
.basit-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Top Header */
.basit-top-header {
    height: 64px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.basit-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.basit-hamburger-btn {
    display: none;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 16px;
    cursor: pointer;
}

.basit-header-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
}

/* Buttons */
.basit-btn-pink {
    background: var(--pink-accent);
    color: #FFFFFF;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
    text-decoration: none;
}

.basit-btn-pink:hover {
    background: var(--pink-hover);
}

.basit-btn-outline {
    background: #FFFFFF;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.basit-btn-outline:hover {
    border-color: var(--pink-accent);
    color: var(--pink-accent);
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .basit-hamburger-btn {
        display: inline-flex;
    }

    .basit-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 280px;
        transform: translateX(-100%);
    }

    .basit-master-layout.sidebar-open .basit-sidebar {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .basit-top-header {
        padding: 0 16px;
    }
}

/* Ana sayfa mobil header: bildirim ve Yükle aynı üst satırda kalır. */
@media (max-width: 768px) {
    .top-header .header-title-row {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
    }

    .top-header .header-title-row > h1 {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .top-header .header-title-row .pwa-header-install-btn,
    .top-header .header-title-row .notification-dropdown-wrapper {
        flex: 0 0 auto !important;
    }

    .top-header .header-title-row .notification-dropdown-wrapper {
        display: block !important;
        position: relative !important;
        order: 2 !important;
        margin-right: 0 !important;
    }

    .top-header .header-title-row .pwa-header-install-btn {
        order: 3 !important;
    }

    .top-header .header-title-row .header-notification-btn {
        display: inline-flex !important;
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .top-header .header-right:empty {
        display: none !important;
    }

    .top-header .header-right {
        min-height: 0 !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .top-header .notification-dropdown-panel {
        position: fixed !important;
        top: 60px !important;
        right: 10px !important;
        left: auto !important;
        width: min(360px, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
    }
}

/* Body Scroll Lock when Modal is Open */
body.modal-open {
    overflow: hidden !important;
    touch-action: none !important;
}

/* Generic Basit Modals */
.basit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.basit-modal[hidden] {
    display: none !important;
}

.basit-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.basit-modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top, 20px));
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.basit-modal-content form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    margin: 0;
}

.basit-modal-header {
    flex: 0 0 auto;
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
}

.basit-modal-header h3 {
    font-size: 16.5px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.basit-modal-close-btn {
    background: none;
    border: none;
    font-size: 26px;
    color: #64748B;
    cursor: pointer;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -8px -8px -8px 0;
}

.basit-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px;
    box-sizing: border-box;
}

.basit-modal-footer {
    flex: 0 0 auto;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: #FFFFFF;
}

.basit-modal-footer button {
    height: 48px;
    min-height: 48px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
}

.basit-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.basit-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.basit-form-group.full-width {
    grid-column: 1 / -1;
}

.basit-form-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
}

.basit-form-group input,
.basit-form-group select,
.basit-form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #0F172A;
    background: #FFFFFF;
    height: 46px;
}

.basit-form-group input:focus,
.basit-form-group select:focus,
.basit-form-group textarea:focus {
    outline: none;
    border-color: #EC4899;
    box-shadow: 0 0 0 3px rgba(236,72,153,0.15);
}

.req { color: #EF4444; font-weight: bold; }

@media (max-width: 480px) {
    .basit-form-grid {
        grid-template-columns: 1fr;
    }
    .basit-form-group.full-width {
        grid-column: 1;
    }
    .basit-modal-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .basit-modal-footer button {
        width: 100%;
    }
}

/* ==========================================================================
   BİNA EKLE MODALI (#modalBinaEkle) - MOBİL TEK SÜTUN 100% DÜZENİ
   ========================================================================== */

#modalBinaEkle {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

#modalBinaEkle[hidden] {
    display: none !important;
}

#modalBinaEkle .basit-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#modalBinaEkle .basit-modal-content {
    position: relative;
    background: #FFFFFF;
    width: calc(100% - 24px) !important;
    max-width: 390px !important;
    height: auto !important;
    max-height: none !important;
    margin: auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    border-radius: 18px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25) !important;
    z-index: 100000;
}

#modalBinaEkle form {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#modalBinaEkle .basit-modal-header {
    padding: 14px 16px;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border-radius: 18px 18px 0 0;
}

#modalBinaEkle .basit-modal-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#modalBinaEkle .basit-modal-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #64748B;
    cursor: pointer;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -8px -8px -8px 0;
}

#modalBinaEkle .basit-modal-body {
    padding: 14px 16px;
    overflow: visible !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
}

/* TEK SÜTUN FORM DÜZENİ */
.bina-form-single-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bina-form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bina-form-group label {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 2px !important;
}

.bina-form-group input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #0F172A !important;
    background: #FFFFFF !important;
    height: 44px !important;
    margin: 0 !important;
}

.bina-form-group input:focus {
    outline: none !important;
    border-color: #EC4899 !important;
    box-shadow: 0 0 0 3px rgba(236,72,153,0.15) !important;
}

#modalBinaEkle .basit-modal-footer {
    padding: 10px 16px 16px 16px !important;
    border-top: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
    border-radius: 0 0 18px 18px !important;
}

#modalBinaEkle .basit-modal-footer button {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* ==========================================================================
   MOBILE SHELL & RESPONSIVE HEADER FIXES
   ========================================================================== */
@media (max-width: 768px) {
    .basit-sidebar, .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -300px !important;
        transform: translateX(-100%) !important;
        width: 260px !important;
        height: 100vh !important;
        z-index: 999999 !important;
        display: flex !important;
        visibility: visible !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5) !important;
    }

    .basit-sidebar.active, .sidebar.active,
    .basit-sidebar.mobile-open, .sidebar.mobile-open {
        left: 0 !important;
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    .basit-sidebar-overlay, #sidebarOverlay, .sidebar-overlay {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(15, 23, 42, 0.7) !important;
        backdrop-filter: blur(4px) !important;
        z-index: 999990 !important;
    }

    .basit-sidebar-overlay.active, #sidebarOverlay.active, .sidebar-overlay.active,
    .basit-sidebar-overlay.mobile-open, #sidebarOverlay.mobile-open, .sidebar-overlay.mobile-open {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .basit-hamburger-btn, .menu-toggle {
        display: flex !important;
        cursor: pointer !important;
        z-index: 101 !important;
    }

    .basit-top-header, .top-header {
        height: auto !important;
        padding: 12px 14px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
        background: #FFFFFF !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .basit-header-left, .header-left {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .basit-header-title, .header-title h1 {
        font-size: 16px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .basit-header-subtitle, .header-title p {
        font-size: 11px !important;
        margin-top: 2px !important;
        padding: 0 !important;
    }

    .basit-header-right, .header-right {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .basit-btn-pink {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 110px !important;
        max-width: 100% !important;
        justify-content: center !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        height: 40px !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }

    .basit-header-search-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        box-sizing: border-box !important;
    }

    .basit-page-content, .content-container {
        padding: 12px !important;
        margin-top: 4px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
}




/* ==========================================================================
   ULAWEB NASIL GELİŞTİRİLİYOR? — SIDEBAR DEV CREDITS
   ========================================================================== */
.sidebar, .basit-sidebar {
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
}

.sidebar-dev-credits-wrapper {
    padding: 10px 12px 14px;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sidebar-dev-credits {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.sidebar-dev-credits:hover {
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.dev-credits-toggle-btn {
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    gap: 8px;
    transition: background 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.dev-credits-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dev-credits-btn-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #F8FAFC;
    line-height: 1.3;
}

.dev-credits-btn-icon {
    color: var(--pink-accent, #EC4899);
    font-size: 13px;
    flex-shrink: 0;
}

.dev-credits-arrow {
    font-size: 10.5px;
    color: #94A3B8;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.sidebar-dev-credits.open .dev-credits-arrow {
    transform: rotate(180deg);
    color: var(--pink-accent, #EC4899);
}

.dev-credits-collapsible-content {
    padding: 0 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dev-credits-collapsible-content::-webkit-scrollbar {
    width: 4px;
}
.dev-credits-collapsible-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.dev-credits-card {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.dev-credits-person-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 2px;
}

.dev-credits-lead-name {
    font-size: 11.5px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.3px;
}

.dev-credits-tel-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #38BDF8;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
    margin: 2px 0;
}

.dev-credits-tel-link:hover {
    color: #7DD3FC;
    text-decoration: underline;
}

.dev-credits-ai-name {
    font-size: 11.5px;
    font-weight: 800;
    color: #38BDF8;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.dev-credits-lead-role,
.dev-credits-ai-role {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--pink-accent, #EC4899);
    margin-bottom: 3px;
    line-height: 1.3;
}

.dev-credits-lead-desc,
.dev-credits-ai-desc {
    font-size: 10.5px;
    color: #94A3B8;
    line-height: 1.45;
    margin: 0;
}

.dev-credits-highlight-footer {
    font-size: 10.5px;
    font-weight: 700;
    color: #F8FAFC;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%);
    border: 1px solid rgba(236, 72, 153, 0.25);
    border-radius: 6px;
    padding: 8px 10px;
    text-align: center;
    line-height: 1.4;
    margin-top: 2px;
}


/* ==========================================================================
   GLOBAL SEARCH COMPONENT STYLES
   ========================================================================== */
.global-search-wrapper {
    position: relative;
    width: 380px;
    max-width: 40vw;
    min-width: 240px;
    margin-left: 20px;
}

.global-search-input-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.global-search-input-box:focus-within {
    border-color: #EC4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.10);
}

.global-search-input-box .search-icon {
    color: #94A3B8;
    font-size: 15px;
    flex-shrink: 0;
}

.global-search-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    color: #0F172A;
    font-family: inherit;
    min-width: 0;
}

.global-search-input::placeholder {
    color: #94A3B8;
    font-size: 13px;
}

.search-clear-btn {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.search-clear-btn:hover {
    color: #0F172A;
}

.global-search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 360px;
    max-height: 420px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.15);
    z-index: 1000;
    padding: 8px 0;
    box-sizing: border-box;
    scrollbar-width: thin;
}

.global-search-results-dropdown[hidden] {
    display: none !important;
}

.search-category-group {
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.search-category-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.search-category-title {
    padding: 6px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.search-result-item:hover,
.search-result-item.selected {
    background: #FDF2F8;
}

.search-result-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.search-result-icon.apartment { background: #FDF2F8; color: #EC4899; }
.search-result-icon.tenant { background: #ECFDF5; color: #10B981; }
.search-result-icon.owner { background: #F5F3FF; color: #8B5CF6; }
.search-result-icon.contract { background: #EFF6FF; color: #2563EB; }
.search-result-icon.debt { background: #FEF2F2; color: #EF4444; }
.search-result-icon.payment { background: #ECFDF5; color: #059669; }
.search-result-icon.document { background: #EFF6FF; color: #3B82F6; }
.search-result-icon.photo { background: #F5F3FF; color: #7C3AED; }

.search-result-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.search-result-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-subtitle {
    font-size: 11.5px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-no-results {
    padding: 24px 16px;
    text-align: center;
    color: #64748B;
    font-size: 13px;
}

.search-no-results i {
    font-size: 24px;
    color: #CBD5E1;
    margin-bottom: 8px;
    display: block;
}

@media (max-width: 992px) {
    .global-search-wrapper {
        width: 280px;
        max-width: 35vw;
        margin-left: 12px;
    }
}

@media (max-width: 768px) {
    .top-header {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
        gap: 12px;
    }
    .header-left {
        width: 100%;
        flex-wrap: wrap;
    }
    .global-search-wrapper {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        order: 3;
    }
}


/* ==========================================================================
   PWA HEADER INSTALL BUTTON & RESPONSIVE STYLES
   ========================================================================== */
.header-title {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.header-title-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.header-title-row h1,
.header-title-row .basit-header-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

.pwa-header-install-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.28);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
    user-select: none;
    z-index: 20;
    flex-shrink: 0;
}

.pwa-header-install-btn:hover {
    background: linear-gradient(135deg, #DB2777 0%, #BE185D 100%);
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.42);
    transform: translateY(-1px);
}

.pwa-header-install-btn:active {
    transform: translateY(0);
}

.pwa-header-install-btn i {
    font-size: 13px;
}

.pwa-header-install-btn .pwa-btn-text-full {
    display: inline;
}

.pwa-header-install-btn .pwa-btn-text-short {
    display: none;
}

@media (max-width: 768px) {
    .top-header, .basit-top-header {
        height: auto !important;
        padding: 10px 14px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .header-left, .basit-header-left {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .header-title-row {
        justify-content: space-between !important;
    }

    .header-title-row h1, .header-title-row .basit-header-title {
        font-size: 15px !important;
    }

    .global-search-wrapper, .basit-header-search-wrapper {
        width: 100% !important;
        margin-top: 4px !important;
        order: 3 !important;
        flex-basis: 100% !important;
    }

    .pwa-header-install-btn:not(.pwa-login-install-btn) {
        display: inline-flex !important;
        margin-left: auto !important;
        padding: 5px 9px !important;
        font-size: 11.5px !important;
        border-radius: 8px !important;
        gap: 5px !important;
        box-shadow: 0 2px 6px rgba(236, 72, 153, 0.25) !important;
        position: static !important;
        flex-shrink: 0 !important;
    }
    
    .pwa-header-install-btn i {
        font-size: 11px !important;
    }

    .pwa-header-install-btn .pwa-btn-text-full {
        display: none !important;
    }

    .pwa-header-install-btn .pwa-btn-text-short {
        display: inline !important;
    }
}


/* STANDART HEADER & MODAL GERİ BUTONU */
.basit-header-back-btn,
.basit-modal-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
    margin-right: 10px !important;
    outline: none !important;
    user-select: none !important;
    z-index: 10 !important;
    position: relative !important;
}

.basit-header-back-btn:hover,
.basit-modal-back-btn:hover {
    background: #FDF2F8 !important;
    border-color: #EC4899 !important;
    color: #BE185D !important;
    transform: translateX(-2px) !important;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.18) !important;
}

.basit-header-back-btn i,
.basit-modal-back-btn i {
    font-size: 13.5px !important;
    color: #EC4899 !important;
    transition: transform 0.15s ease !important;
}

.basit-header-back-btn:hover i,
.basit-modal-back-btn:hover i {
    transform: translateX(-2px) !important;
}

/* ==========================================================================
   KASA DURUMU BÖLÜMÜ TASARIMI
   ========================================================================== */
.kasa-section {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
}

.kasa-period-filter {
    display: inline-flex;
    background: #F1F5F9;
    border-radius: 10px;
    padding: 3px;
    gap: 3px;
}

.kasa-period-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    transition: all 0.15s ease;
}

.kasa-period-btn.active {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.kasa-action-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #FFFFFF;
    border: 1.5px solid #FCA5A5;
    border-radius: 10px;
    color: #DC2626;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.kasa-action-btn-outline:hover {
    background: #FEF2F2;
    border-color: #EF4444;
    transform: translateY(-1px);
}

.kasa-action-btn-pink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #EC4899;
    border: 1.5px solid #EC4899;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(236, 72, 153, 0.25);
}

.kasa-action-btn-pink:hover {
    background: #DB2777;
    border-color: #DB2777;
    transform: translateY(-1px);
}

.kasa-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.kasa-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kasa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.kasa-card.aidat-card {
    border-top: 4px solid #3B82F6;
}

.kasa-card.kira-card {
    border-top: 4px solid #8B5CF6;
}

.kasa-card.net-card {
    border-top: 4px solid #EC4899;
    background: linear-gradient(135deg, #FDF2F8 0%, #F8FAFC 100%);
}

.kasa-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.kasa-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.kasa-badge.blue {
    background: #EFF6FF;
    color: #1D4ED8;
}

.kasa-badge.purple {
    background: #F5F3FF;
    color: #6D28D9;
}

.kasa-badge.pink {
    background: #FDF2F8;
    color: #BE185D;
}

.kasa-watermark-icon {
    font-size: 24px;
    opacity: 0.25;
}

.kasa-card-main-balance {
    margin-bottom: 16px;
}

.kasa-balance-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 2px;
}

.kasa-balance-val {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.kasa-card-sub-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #E2E8F0;
}

.kasa-sub-stat {
    display: flex;
    flex-direction: column;
}

.kasa-sub-stat .sub-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.kasa-sub-stat .sub-val {
    font-size: 14px;
    font-weight: 700;
}

.text-blue { color: #2563EB !important; }
.text-purple { color: #7C3AED !important; }
.text-pink { color: #EC4899 !important; }
.text-green { color: #10B981 !important; }
.text-red { color: #EF4444 !important; }

/* Filter Tabs inside Kasa Hareketleri Modal */
.kasa-modal-filter-tabs {
    display: flex;
    gap: 6px;
    padding: 12px 18px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    overflow-x: auto;
}

.kasa-tab-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.kasa-tab-btn.active {
    background: #0F172A;
    border-color: #0F172A;
    color: #FFFFFF;
}

/* ==========================================================================
   KASA PARA HAREKETLERİ MODAL ORTALAMA & SCROLL DÜZENİ
   ========================================================================== */

    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

#modalKasaHareketleri .basit-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

#modalKasaHareketleri .basit-modal-content {
    position: relative !important;
    background: #FFFFFF !important;
    width: 100% !important;
    max-width: 680px !important;
    max-height: 85vh !important;
    height: auto !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
}

#modalKasaHareketleri .basit-modal-header {
    flex: 0 0 auto !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid #E2E8F0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #FFFFFF !important;
}

#modalKasaHareketleri .kasa-modal-filter-tabs {
    flex: 0 0 auto !important;
    display: flex !important;
    gap: 6px !important;
    padding: 10px 18px !important;
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
    overflow-x: auto !important;
}

#modalKasaHareketleri .basit-modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: 52vh !important;
    overflow-y: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
}

#modalKasaHareketleri .basit-modal-footer {
    flex: 0 0 auto !important;
    padding: 12px 18px !important;
    border-top: 1px solid #E2E8F0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    background: #FFFFFF !important;
}


/* ==========================================================================
   MODAL GİZLEME & GÖSTERME KESİN KURALLARI
   ========================================================================== */
.basit-modal[hidden],
#modalKasaHareketleri[hidden],
#modalGiderEkle[hidden],
#modalBinaEkle[hidden],
#modalDaireEkle[hidden],
#modalTahsilatEkle[hidden] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#modalKasaHareketleri:not([hidden]) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#modalGiderEkle:not([hidden]) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

#modalGiderEkle .basit-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

#modalGiderEkle .basit-modal-content {
    position: relative !important;
    background: #FFFFFF !important;
    width: 100% !important;
    max-width: 500px !important;
    max-height: 90vh !important;
    height: auto !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/* Shared sidebar normalization for legacy and basit-mod pages. */
.basit-sidebar, .basit-sidebar-overlay, .basit-hamburger-btn { display: none !important; }
.top-shortcut-link { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 10px; border:1px solid #E2E8F0; border-radius:10px; background:#FFF; color:#475569; text-decoration:none; font-size:12px; font-weight:700; }
.kasa-shortcut-link { color:#059669; border-color:#A7F3D0; background:#ECFDF5; }
.sidebar, .basit-sidebar {
    width: 248px !important;
    min-width: 248px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.sidebar-header, .basit-sidebar-header {
    height: 92px !important;
    min-height: 92px !important;
    padding: 14px 18px !important;
    box-sizing: border-box !important;
}
.sidebar-header img, .basit-sidebar-header img, .logo-img, .logo-icon {
    width: 178px !important;
    max-width: 100% !important;
    height: 58px !important;
    object-fit: contain !important;
}
.basit-sidebar-logo {
    width: 178px !important;
    max-width: 100% !important;
    height: 58px !important;
    object-fit: contain !important;
}
.sidebar-menu, .basit-sidebar-menu {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 12px 12px !important;
}
.sidebar-menu ul, .basit-sidebar-menu ul {
    margin: 0 !important;
    padding: 0 !important;
}
.sidebar-menu li a, .basit-sidebar-menu li a {
    min-height: 44px !important;
    height: 44px !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    gap: 10px !important;
}
.sidebar-menu li a i, .basit-sidebar-menu li a i {
    width: 20px !important;
    min-width: 20px !important;
    font-size: 15px !important;
}
.sidebar-footer, .basit-sidebar-footer {
    flex: 0 0 auto !important;
    min-height: 64px !important;
    box-sizing: border-box !important;
}
@media (max-width: 768px) {
    .sidebar, .basit-sidebar {
        width: min(248px, 86vw) !important;
        min-width: min(248px, 86vw) !important;
    }
}


/* ==========================================================================
   KIRA BİLDİRİM SİSTEMİ (RENT NOTIFICATIONS) STİLLERİ
   ========================================================================== */

.notification-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
}

.header-notification-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-notification-btn:hover {
    background: #F8FAFC;
    color: #EC4899;
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #EC4899;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 5px rgba(236, 72, 153, 0.4);
    pointer-events: none;
}

.notification-badge.red-pulse {
    background: #EF4444;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.6);
    animation: notifPulse 2s infinite;
}

@keyframes notifPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.notification-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 24px);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16);
    z-index: 10000;
    overflow: hidden;
    animation: notifDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notifDropIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notif-dropdown-header {
    padding: 14px 18px;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FAFAFA;
}

.notif-header-count {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    background: #E2E8F0;
    padding: 2px 8px;
    border-radius: 12px;
}

.notif-dropdown-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 4px 0;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #F8FAFC;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}

.notif-item:hover {
    background: #F8FAFC;
}

.notif-item.unread {
    background: #FFFDFD;
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3.5px;
    background: #EC4899;
    border-radius: 0 4px 4px 0;
}

.notif-item.overdue.unread::before {
    background: #EF4444;
}

.notif-item.due_today.unread::before {
    background: #F59E0B;
}

.notif-item.upcoming.unread::before {
    background: #3B82F6;
}

.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-item-icon.overdue {
    background: #FEE2E2;
    color: #DC2626;
}

.notif-item-icon.due_today {
    background: #FEF3C7;
    color: #D97706;
}

.notif-item-icon.upcoming {
    background: #EFF6FF;
    color: #2563EB;
}

.notif-item-icon.paid {
    background: #DCFCE7;
    color: #16A34A;
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

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

.notif-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
}

.notif-item-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.tag-overdue {
    background: #FEE2E2;
    color: #B91C1C;
}

.tag-due-today {
    background: #FEF3C7;
    color: #B45309;
}

.tag-upcoming {
    background: #DBEAFE;
    color: #1D4ED8;
}

.notif-item-msg {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 6px;
    word-break: break-word;
}

.notif-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #94A3B8;
}

.notif-item-action {
    font-weight: 600;
    color: #EC4899;
    display: flex;
    align-items: center;
    gap: 3px;
}

.notif-dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid #F1F5F9;
    background: #FAFAFA;
    text-align: center;
}

.notif-footer-link {
    font-size: 12.5px;
    font-weight: 700;
    color: #EC4899;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.notif-footer-link:hover {
    color: #BE185D;
}
