/* assets/css/style.css */

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-hover {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px -10px rgba(6, 95, 70, 0.3);
    transform: translateY(-2px);
}

/* Radiant glow animations */
.glow-button {
    position: relative;
    overflow: hidden;
}

.glow-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.glow-button:hover::after {
    opacity: 1;
}

/* 3D tilt mockup support */
.perspective-1000 {
    perspective: 1000px;
}

.preserve-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
}

/* SMS parsing animation specs */
@keyframes fly-in-sms {
    0% {
        transform: translateY(40px) scale(0.8);
        opacity: 0;
    }
    30% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    70% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: none;
    }
    100% {
        transform: translateY(-80px) scale(0.6);
        opacity: 0;
        filter: blur(4px);
    }
}

.animate-sms {
    animation: fly-in-sms 5s infinite;
}

/* Data waves animation for family share */
@keyframes wave {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.animate-wave-1 {
    animation: wave 3s infinite linear;
}

.animate-wave-2 {
    animation: wave 3s infinite 1.5s linear;
}

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glowing accent rings */
.bg-glow-emerald {
    filter: blur(120px);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

/* ==========================================
   LIGHT THEME OVERRIDES
   ========================================== */

/* Body & Globals */
html.light body {
    background-color: #f3f7f4 !important;
    color: #1a2e21 !important;
}

/* Glassmorphism Cards */
html.light .glass-card {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(15, 36, 22, 0.08) !important;
    box-shadow: 0 4px 20px -2px rgba(15, 36, 22, 0.05), 0 10px 15px -3px rgba(15, 36, 22, 0.03) !important;
}

html.light .glass-card-hover:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 12px 30px -8px rgba(16, 185, 129, 0.15) !important;
}

/* Text Overrides */
html.light .text-white,
html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light h5,
html.light h6 {
    color: #0d2214 !important;
}

html.light .text-gray-400 {
    color: #4b6354 !important;
}

html.light .text-gray-300 {
    color: #384d40 !important;
}

html.light .text-gray-200 {
    color: #24382c !important;
}

/* Backgrounds & Containers */
html.light .bg-forest-950 {
    background-color: #f0f4f1 !important;
}

html.light .bg-forest-900 {
    background-color: #e5ede7 !important;
}

html.light .bg-forest-950\/40 {
    background-color: rgba(228, 238, 231, 0.6) !important;
}

html.light .bg-forest-900\/60 {
    background-color: rgba(220, 232, 223, 0.7) !important;
}

html.light .bg-forest-950\/50 {
    background-color: #e5ede7 !important;
}

html.light .bg-forest-950\/60 {
    background-color: #e5ede7 !important;
}

html.light .bg-forest-950\/30 {
    background-color: #e5ede7 !important;
}

html.light .bg-forest-950\/20 {
    background-color: rgba(228, 238, 231, 0.3) !important;
}

html.light thead tr {
    background-color: #e5ede7 !important;
}

html.light thead th {
    color: #1a2e21 !important;
    font-weight: 700 !important;
}

/* Borders */
html.light .border-white\/10,
html.light .border-white\/5 {
    border-color: rgba(15, 36, 22, 0.08) !important;
}

/* Inputs & Form Elements */
html.light input[type="text"],
html.light input[type="number"],
html.light input[type="date"],
html.light select {
    background-color: #ffffff !important;
    color: #1a2e21 !important;
    border-color: rgba(15, 36, 22, 0.12) !important;
}

html.light input::placeholder {
    color: #7a9282 !important;
}

/* Navigation Elements & Header */
html.light aside#dashboardSidebar {
    background-color: #ffffff !important;
    border-right: 1px solid rgba(15, 36, 22, 0.08) !important;
}

html.light header {
    background-color: rgba(255, 255, 255, 0.75) !important;
    border-bottom: 1px solid rgba(15, 36, 22, 0.08) !important;
}

/* Elements on summary page */
html.light .bg-white\/5 {
    background-color: rgba(15, 36, 22, 0.04) !important;
}

html.light .bg-white\/10 {
    background-color: rgba(15, 36, 22, 0.06) !important;
}

/* Custom shadow/rings overrides */
html.light .bg-glow-emerald {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%) !important;
}

/* Year filters under table */
html.light #salesYearFilters {
    background-color: rgba(15, 36, 22, 0.04) !important;
}
html.light #salesYearFilters button.bg-white\/5 {
    background-color: transparent !important;
    color: #4b6354 !important;
}
html.light #salesYearFilters button.bg-white\/5:hover {
    background-color: rgba(15, 36, 22, 0.04) !important;
    color: #0d2214 !important;
}
html.light #salesYearFilters button.bg-emerald-500 {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

/* Yearly summary cards inside sales */
html.light #salesYearlySummaryContainer .border-white\/10 {
    border-color: rgba(15, 36, 22, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
}

/* Modals */
html.light #addSaleModal > div {
    background-color: #ffffff !important;
    border-color: rgba(15, 36, 22, 0.12) !important;
}

/* Table Row Hover Override for Light Mode */
html.light tbody tr {
    background-color: transparent !important;
    transition: background-color 0.2s ease;
}
html.light tbody tr:hover {
    background-color: rgba(16, 185, 129, 0.04) !important;
}

/* Table Footer Custom Style for Light Mode */
html.light tfoot tr {
    background-color: #e5ede7 !important;
    color: #1a2e21 !important;
}

/* Landing Page Hero and Custom Overrides */
.bg-hero-gradient-overlay {
    background: linear-gradient(180deg, rgba(7, 18, 10, 0.93) 0%, rgba(15, 36, 22, 0.9) 100%);
}

html.light .bg-hero-gradient-overlay {
    background: linear-gradient(180deg, rgba(243, 247, 244, 0.94) 0%, rgba(226, 236, 229, 0.9) 100%) !important;
}

/* Landing Page Header */
html.light header#landingHeader {
    background-color: rgba(243, 247, 244, 0.75) !important;
    border-bottom: 1px solid rgba(15, 36, 22, 0.08) !important;
}

/* Mobile drawer for landing page */
html.light #mobileDrawer {
    background-color: rgba(243, 247, 244, 0.98) !important;
}

html.light .mobile-drawer-link {
    color: #1a2e21 !important;
}

html.light .mobile-drawer-link:hover {
    color: #10b981 !important;
}

html.light .bg-forest-900\/80 {
    background-color: rgba(220, 232, 223, 0.85) !important;
}

html.light footer {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(15, 36, 22, 0.06) !important;
    box-shadow: 0 -10px 30px -15px rgba(15, 36, 22, 0.05) !important;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-message {
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-message.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.toast-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

html.light .toast-success {
    background: rgba(16, 185, 129, 0.95);
    color: #ffffff;
    border-color: transparent;
}

html.light .toast-error {
    background: rgba(239, 68, 68, 0.95);
    color: #ffffff;
    border-color: transparent;
}

/* Premium Defter Kartı Tasarımı */
.premium-book-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.premium-book-card:hover {
    transform: translateY(-5px) scale(1.015);
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.25) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.premium-book-card.active-book {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.06) !important;
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.3) !important;
}

/* Light Mode Overrides */
html.light .premium-book-card:hover {
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.15) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

html.light .premium-book-card.active-book {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.05) !important;
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.1) !important;
}


