/* FinansTrack - Neumorphism Design System */

/* Navigation Active States */
.nav-item {
    @apply text-gray-600 dark:text-gray-400 hover:text-primary;
}

.nav-item.active {
    @apply text-primary bg-indigo-100 dark:bg-indigo-900/30;
    box-shadow: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff;
}

.dark .nav-item.active {
    box-shadow: inset 4px 4px 8px #151b26, inset -4px -4px 8px #293548;
}

/* Neumorphism Effects */
.neumorphism {
    background: #f7f9fb;
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    transition: all 0.3s ease;
}

.neumorphism:hover {
    box-shadow: 12px 12px 24px #d1d9e6, -12px -12px 24px #ffffff;
}

.neumorphism-inset {
    background: #f7f9fb;
    box-shadow: inset 8px 8px 16px #d1d9e6, inset -8px -8px 16px #ffffff;
    transition: all 0.3s ease;
}

.neumorphism-inset:hover {
    box-shadow: inset 6px 6px 12px #d1d9e6, inset -6px -6px 12px #ffffff;
}

/* Dark Mode Neumorphism */
.dark .neumorphism {
    background: #1f2937;
    box-shadow: 8px 8px 16px #151b26, -8px -8px 16px #293548;
}

.dark .neumorphism:hover {
    box-shadow: 12px 12px 24px #151b26, -12px -12px 24px #293548;
}

.dark .neumorphism-inset {
    background: #1f2937;
    box-shadow: inset 8px 8px 16px #151b26, inset -8px -8px 16px #293548;
}

.dark .neumorphism-inset:hover {
    box-shadow: inset 6px 6px 12px #151b26, inset -6px -6px 12px #293548;
}

/* Glassmorphism Effects */
.glassmorphism {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.glassmorphism:hover {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(15px);
}

.dark .glassmorphism {
    background: rgba(31, 41, 55, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glassmorphism:hover {
    background: rgba(31, 41, 55, 0.35);
}

/* Custom Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes bounceSoft {
    0%, 20%, 53%, 80%, 100% { 
        transform: translate3d(0,0,0); 
    }
    40%, 43% { 
        transform: translate3d(0, -8px, 0); 
    }
    70% { 
        transform: translate3d(0, -4px, 0); 
    }
    90% { 
        transform: translate3d(0, -2px, 0); 
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.2s ease-out;
}

.animate-bounce-soft {
    animation: bounceSoft 0.6s ease-out;
}

/* Sidebar Collapsed State */
.sidebar-collapsed {
    width: 4rem !important;
}

.main-expanded {
    margin-left: 4rem !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f7f9fb;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5b5bd6, #7c3aed);
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* Focus States */
.focus\:ring-primary:focus {
    --tw-ring-color: rgb(99 102 241 / 0.5);
    box-shadow: 0 0 0 3px var(--tw-ring-color);
}

/* Custom Form Elements */
input[type="checkbox"] {
    appearance: none;
    background: #f7f9fb;
    box-shadow: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff;
    border-radius: 6px;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.dark input[type="checkbox"] {
    background: #1f2937;
    box-shadow: inset 4px 4px 8px #151b26, inset -4px -4px 8px #293548;
}

/* Button Styles */
.btn-neumorphism {
    background: #f7f9fb;
    box-shadow: 6px 6px 12px #d1d9e6, -6px -6px 12px #ffffff;
    border: none;
    transition: all 0.2s ease;
}

.btn-neumorphism:hover {
    transform: scale(1.05);
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
}

.btn-neumorphism:active {
    transform: scale(0.98);
    box-shadow: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff;
}

.dark .btn-neumorphism {
    background: #1f2937;
    box-shadow: 6px 6px 12px #151b26, -6px -6px 12px #293548;
}

.dark .btn-neumorphism:hover {
    box-shadow: 8px 8px 16px #151b26, -8px -8px 16px #293548;
}

.dark .btn-neumorphism:active {
    box-shadow: inset 4px 4px 8px #151b26, inset -4px -4px 8px #293548;
}

/* Progress Bar */
.progress-bar {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
    transition: width 0.5s ease;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 16px 16px 32px #d1d9e6, -16px -16px 32px #ffffff;
}

.dark .card-hover:hover {
    box-shadow: 16px 16px 32px #151b26, -16px -16px 32px #293548;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Status Indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.status-offline {
    background: #6b7280;
    box-shadow: 0 0 8px rgba(107, 114, 128, 0.5);
}

.status-busy {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.status-away {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, #f43f5e);
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.dark .loading-skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

/* Pulse Effect */
.pulse-effect {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Floating Effect */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translate(0, 0px);
    }
    50% {
        transform: translate(0, -10px);
    }
    100% {
        transform: translate(0, 0px);
    }
}

/* Mobile Responsive - COMPREHENSIVE MOBILE OPTIMIZATION */

/* Mobile First - Base Mobile Styles */
@media (max-width: 768px) {
    /* Sidebar Mobile Optimization */
    #sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 320px !important;
        height: 100vh !important;
        z-index: 9999 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: none !important;
    }
    
    #sidebar.show {
        transform: translateX(0) !important;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Main Content Mobile */
    #main-content {
        margin-left: 0 !important;
        width: 100% !important;
        min-height: 100vh !important;
        padding-bottom: 80px !important; /* Space for mobile nav */
    }
    
    /* Header Mobile Optimization */
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 40 !important;
        padding: 0 1rem !important;
        height: 60px !important;
        backdrop-filter: blur(10px) !important;
        background: rgba(247, 249, 251, 0.9) !important;
    }
    
    .dark header {
        background: rgba(31, 41, 55, 0.9) !important;
    }
    
    main {
        margin-top: 60px !important;
        padding: 1rem !important;
    }
    
    /* Touch-Friendly Elements */
    button, .btn, a[role="button"] {
        min-height: 44px !important;
        min-width: 44px !important;
        touch-action: manipulation !important;
    }
    
    /* Neumorphism Effects - Reduced for Mobile */
    .neumorphism {
        box-shadow: 3px 3px 6px #d1d9e6, -3px -3px 6px #ffffff !important;
    }
    
    .neumorphism-inset {
        box-shadow: inset 3px 3px 6px #d1d9e6, inset -3px -3px 6px #ffffff !important;
    }
    
    .dark .neumorphism {
        box-shadow: 3px 3px 6px #151b26, -3px -3px 6px #293548 !important;
    }
    
    .dark .neumorphism-inset {
        box-shadow: inset 3px 3px 6px #151b26, inset -3px -3px 6px #293548 !important;
    }
    
    /* Card Hover Effects - Reduced for Mobile */
    .card-hover:hover {
        transform: translateY(-2px) scale(1.01) !important;
        box-shadow: 6px 6px 12px #d1d9e6, -6px -6px 12px #ffffff !important;
    }
    
    .dark .card-hover:hover {
        box-shadow: 6px 6px 12px #151b26, -6px -6px 12px #293548 !important;
    }
    
    /* Grid Layouts - Mobile Responsive */
    .grid {
        gap: 1rem !important;
    }
    
    .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .grid-cols-3 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .grid-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .grid-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    
    /* Typography Mobile */
    h1 { font-size: 1.875rem !important; line-height: 2.25rem !important; }
    h2 { font-size: 1.5rem !important; line-height: 2rem !important; }
    h3 { font-size: 1.25rem !important; line-height: 1.75rem !important; }
    
    .text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
    .text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
    .text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
    
    /* Spacing Mobile */
    .p-8 { padding: 1rem !important; }
    .p-6 { padding: 1rem !important; }
    .px-8 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .py-8 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    
    .space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem !important; }
    .space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem !important; }
    
    /* Dashboard Mobile Specific */
    .weekly-grid {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 0.25rem !important;
    }
    
    .weekly-day {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Form Elements Mobile */
    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.75rem !important;
        border-radius: 0.75rem !important;
    }
    
    /* Modal Mobile */
    .modal-content {
        margin: 1rem !important;
        max-height: calc(100vh - 2rem) !important;
        overflow-y: auto !important;
    }
    
    /* Charts Mobile */
    .chart-container {
        padding: 1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    /* Tables Mobile */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    table {
        min-width: 600px !important;
    }
    
    /* Navigation Mobile */
    .nav-item {
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        min-height: 48px !important;
    }
    
    /* Health Score Mobile */
    .health-score {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Toast Mobile */
    #toast-container {
        top: 70px !important;
        right: 1rem !important;
        left: 1rem !important;
        max-width: none !important;
    }
    
    .toast {
        margin-bottom: 0.5rem !important;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    #sidebar {
        width: 240px !important;
    }
    
    #main-content {
        margin-left: 240px !important;
    }
    
    .grid-cols-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    
    main {
        padding: 1.5rem !important;
    }
}

/* Small Mobile (iPhone SE, etc.) */
@media (max-width: 375px) {
    header {
        padding: 0 0.75rem !important;
    }
    
    main {
        padding: 0.75rem !important;
    }
    
    .grid {
        gap: 0.75rem !important;
    }
    
    .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
    
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1.125rem !important; }
    
    .weekly-grid {
        gap: 0.125rem !important;
    }
    
    .weekly-day {
        padding: 0.25rem 0.125rem !important;
        font-size: 0.625rem !important;
    }
}

/* Large Mobile (iPhone Plus, etc.) */
@media (min-width: 376px) and (max-width: 414px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    .grid-cols-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
    button, .btn, a[role="button"], .interactive {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    .nav-item {
        min-height: 48px !important;
    }
    
    input, select, textarea {
        min-height: 44px !important;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        height: 50px !important;
    }
    
    main {
        margin-top: 50px !important;
    }
    
    #main-content {
        padding-bottom: 60px !important;
    }
    
    .health-score {
        width: 60px !important;
        height: 60px !important;
    }
}

/* iOS Safari Specific */
@supports (-webkit-touch-callout: none) {
    input, select, textarea {
        font-size: 16px !important;
        transform: translateZ(0) !important;
        -webkit-appearance: none !important;
    }
    
    body {
        -webkit-overflow-scrolling: touch !important;
    }
}

/* Android Chrome Specific */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    input[type="date"], input[type="time"], input[type="datetime-local"] {
        font-size: 16px !important;
    }
}

/* High DPI Mobile Displays */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .neumorphism {
        box-shadow: 2px 2px 4px #d1d9e6, -2px -2px 4px #ffffff !important;
    }
    
    .dark .neumorphism {
        box-shadow: 2px 2px 4px #151b26, -2px -2px 4px #293548 !important;
    }
}

/* Mobile Hamburger Menu & Sidebar Enhancement */
@media (max-width: 768px) {
    /* TÜM ALT NAVİGASYON ELEMENTLERİNİ TAMAMEN GİZLE */
    .mobile-nav,
    .mobile-navigation,
    .bottom-nav,
    .bottom-navigation,
    .fixed.bottom-0:not(#sidebar),
    div[class*="bottom-0"]:not(#sidebar),
    div[class*="mobile-nav"],
    nav[class*="mobile"],
    nav[class*="bottom"],
    .md\\:hidden.fixed.bottom-0,
    [class*="grid-cols-5"],
    [class*="py-2"]:has(a[class*="flex-col"]) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Sidebar overlay olarak mobilde */
    #sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 9999 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: none !important;
        background: #f7f9fb !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .dark #sidebar {
        background: #1f2937 !important;
    }
    
    /* Sidebar açık durumu */
    #sidebar.show {
        transform: translateX(0) !important;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Sidebar backdrop overlay */
    #sidebar.show::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 280px !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: -1 !important;
        opacity: 1 !important;
        transition: opacity 0.3s ease !important;
    }
    
    /* Ana içerik mobile padding düzenlemesi */
    #main-content {
        margin-left: 0 !important;
        width: 100% !important;
        min-height: 100vh !important;
        padding-bottom: 20px !important; /* Normal padding */
    }
    
    /* Header mobilde daha küçük */
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 40 !important;
        height: 60px !important;
        backdrop-filter: blur(10px) !important;
        background: rgba(247, 249, 251, 0.95) !important;
    }
    
    .dark header {
        background: rgba(31, 41, 55, 0.95) !important;
    }
    
    main {
        margin-top: 60px !important;
        padding: 1rem !important;
    }
    
    /* Hamburger menu button styling */
    .lg\\:hidden button {
        z-index: 10000 !important;
        position: relative !important;
    }
    
    /* Sidebar navigation items mobile */
    #sidebar .nav-item {
        padding: 1rem !important;
        font-size: 1rem !important;
        min-height: 56px !important;
        border-radius: 0.75rem !important;
        margin: 0.25rem 0.5rem !important;
        transition: all 0.2s ease !important;
    }
    
    #sidebar .nav-item:hover {
        background: rgba(99, 102, 241, 0.1) !important;
        transform: translateX(4px) !important;
    }
    
    #sidebar .nav-item.active {
        background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
        color: white !important;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
    }
    
    /* Sidebar kapatma için tıklama alanı */
    body.sidebar-open {
        overflow: hidden !important;
    }
    
    body.sidebar-open::after {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 280px !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 9998 !important;
        cursor: pointer !important;
    }
}

/* Small Mobile Optimizations */
@media (max-width: 375px) {
    #sidebar {
        width: 260px !important;
    }
    
    body.sidebar-open::after {
        left: 260px !important;
    }
    
    header {
        padding: 0 0.75rem !important;
    }
    
    main {
        padding: 0.75rem !important;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        height: 50px !important;
    }
    
    main {
        margin-top: 50px !important;
    }
    
    #sidebar {
        width: 240px !important;
        font-size: 0.875rem !important;
    }
    
    #sidebar .nav-item {
        padding: 0.75rem !important;
        min-height: 48px !important;
    }
    
    body.sidebar-open::after {
        left: 240px !important;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .top-nav,
    .toast-container,
    .mobile-nav {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .neumorphism,
    .neumorphism-inset {
        box-shadow: none !important;
        border: 1px solid #e5e7eb;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .neumorphism,
    .neumorphism-inset {
        box-shadow: none;
        border: 2px solid #374151;
    }
    
    .nav-item.active {
        background: #1f2937;
        color: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating,
    .pulse-effect {
        animation: none;
    }
}

/* Custom Utilities */
.text-success {
    color: #22c55e;
}

.text-danger {
    color: #ef4444;
}

.text-warning {
    color: #f59e0b;
}

.text-info {
    color: #06b6d4;
}

.bg-success {
    background-color: #22c55e;
}

.bg-danger {
    background-color: #ef4444;
}

.bg-warning {
    background-color: #f59e0b;
}

.bg-info {
    background-color: #06b6d4;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444, #f43f5e);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

/* Shadow Utilities */
.shadow-neumorphism {
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
}

.shadow-neumorphism-inset {
    box-shadow: inset 8px 8px 16px #d1d9e6, inset -8px -8px 16px #ffffff;
}

.shadow-colored-primary {
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.shadow-colored-success {
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
}

.shadow-colored-danger {
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

/* Interactive Elements */
.interactive {
    cursor: pointer;
    transition: all 0.2s ease;
}

.interactive:hover {
    transform: scale(1.05);
}

.interactive:active {
    transform: scale(0.98);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom Scrollbar for specific elements */
.custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: #6366f1 #f7f9fb;
}

.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f7f9fb;
    border-radius: 3px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 3px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #5b5bd6;
}

/* Emoji Support */
.emoji {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* High DPI Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dashboard Specific Styles */
.text-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444, #f43f5e);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

/* Enhanced Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dark .card-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Status Indicators with Pulse */
.status-online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Enhanced Progress Bars */
.progress-bar-animated {
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
    background-size: 200% 100%;
    animation: progress-flow 2s linear infinite;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

@keyframes progress-flow {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Chart Container Enhancements */
.chart-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .chart-container {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Enhanced Modal Styles */
.modal-backdrop {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.modal-content {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Enhanced Button Styles */
.btn-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Enhanced Toast Notifications */
.toast-success {
    background: linear-gradient(135deg, #22c55e, #14b8a6);
    color: white;
    border-left: 4px solid #16a34a;
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #f43f5e);
    color: white;
    border-left: 4px solid #dc2626;
}

.toast-warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    border-left: 4px solid #d97706;
}

.toast-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    border-left: 4px solid #0284c7;
}

/* Enhanced Form Elements */
.form-input-enhanced {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    color: inherit;
}

.form-input-enhanced:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.dark .form-input-enhanced {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .form-input-enhanced:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: #6366f1;
}

/* Weekly Trend Grid */
.weekly-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.weekly-day {
    text-align: center;
    padding: 12px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.weekly-day:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.dark .weekly-day {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark .weekly-day:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Financial Health Score */
.health-score {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.health-score-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ef4444 0deg, #f59e0b 120deg, #22c55e 240deg, #22c55e 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.health-score-inner {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: #f7f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.dark .health-score-inner {
    background: #1f2937;
}

/* Enhanced Scrollbar */
.enhanced-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.5) transparent;
}

.enhanced-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.enhanced-scroll::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.enhanced-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.enhanced-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5b5bd6, #7c3aed);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .card-hover:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .weekly-grid {
        gap: 4px;
    }
    
    .weekly-day {
        padding: 8px 4px;
        font-size: 0.875rem;
    }
    
    .health-score {
        width: 100px;
        height: 100px;
    }
}

/* Loading States */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.dark .skeleton-loader {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

/* Chart Type Buttons */
.chart-type-btn {
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #6b7280;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.chart-type-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.chart-type-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.dark .chart-type-btn {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

.dark .chart-type-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.3);
}

/* Transaction Type Buttons */
.transaction-type-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.transaction-type-btn.bg-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4) !important;
    transform: scale(1.05);
}

.transaction-type-btn.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.transaction-type-btn.bg-primary:hover::before {
    left: 100%;
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* Staggered Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }
.stagger-7 { animation-delay: 0.7s; }
.stagger-8 { animation-delay: 0.8s; }
.stagger-9 { animation-delay: 0.9s; }
.stagger-10 { animation-delay: 1.0s; }

/* Dark mode specific adjustments */
.dark {
    color-scheme: dark;
}

.dark .text-text {
    color: #f9fafb;
}

.dark .text-secondary {
    color: #9ca3af;
}

.dark .border-gray-200 {
    border-color: #374151;
}

.dark .bg-gray-50 {
    background-color: #1f2937;
}

.dark .bg-gray-100 {
    background-color: #374151;
}

/* Transition utilities */
.transition-neumorphism {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* Hover states for neumorphism elements */
.hover-neumorphism:hover {
    box-shadow: 12px 12px 24px #d1d9e6, -12px -12px 24px #ffffff;
    transform: translateY(-2px);
}

.dark .hover-neumorphism:hover {
    box-shadow: 12px 12px 24px #151b26, -12px -12px 24px #293548;
}

/* Dashboard Mobile Optimization - ÖZEL KURALLAR */
@media (max-width: 768px) {
    /* Dashboard Container Mobile */
    #dashboard-container {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Dashboard Header Mobile */
    #dashboard-container .neumorphism:first-child {
        border-radius: 1rem !important;
        margin-bottom: 1rem !important;
        padding: 1rem !important;
    }
    
    /* KPI Cards Grid Mobile */
    #dashboard-container .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4.xl\\:grid-cols-6 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    /* KPI Card Content Mobile */
    .card-hover .text-2xl {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }
    
    .card-hover .text-sm {
        font-size: 0.75rem !important;
    }
    
    .card-hover .w-12.h-12 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    .card-hover .w-6.h-6 {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
    
    /* Charts Section Mobile */
    #dashboard-container .grid.grid-cols-1.lg\\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    #dashboard-container .lg\\:col-span-2 {
        grid-column: span 1 !important;
    }
    
    /* Chart Height Mobile */
    .h-80 {
        height: 200px !important;
    }
    
    .h-64 {
        height: 160px !important;
    }
    
    /* Weekly Trend Mobile */
    .grid.grid-cols-7 {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 0.25rem !important;
    }
    
    .weekly-day {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.625rem !important;
    }
    
    /* Today's Summary Mobile */
    .grid.grid-cols-2.gap-4 {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }
    
    /* Recent Transactions Mobile */
    .lg\\:col-span-2 {
        grid-column: span 1 !important;
    }
    
    /* Quick Actions Mobile */
    .flex.flex-wrap.gap-3 {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .btn-neumorphism {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.75rem 1rem !important;
    }
    
    /* Date Range Filter Mobile */
    .flex.flex-wrap.gap-3 select {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    #customDateInputs {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    #customDateInputs input,
    #customDateInputs button {
        width: 100% !important;
    }
    
    /* Goals and Subscriptions Mobile */
    .space-y-4 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.75rem !important;
    }
    
    /* Modal Mobile */
    #quickAddModal .neumorphism {
        margin: 0.5rem !important;
        max-height: calc(100vh - 1rem) !important;
        overflow-y: auto !important;
        border-radius: 1rem !important;
    }
    
    /* Modal Grid Mobile */
    #quickAddModal .grid.grid-cols-2 {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }
    
    /* Modal Buttons Mobile */
    #quickAddModal .flex.space-x-3 {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    #quickAddModal .flex.space-x-3 button {
        width: 100% !important;
        padding: 0.75rem !important;
    }
    
    /* Transaction Items Mobile */
    .flex.items-center.justify-between.p-2 {
        padding: 0.75rem !important;
        border-radius: 0.75rem !important;
    }
    
    .flex.items-center.justify-between.p-4 {
        padding: 0.75rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    /* Transaction Amount Mobile */
    .text-right {
        width: 100% !important;
        text-align: left !important;
    }
    
    /* Health Score Mobile */
    .health-score-circle {
        width: 80px !important;
        height: 80px !important;
    }
    
    .health-score-inner {
        width: 85% !important;
        height: 85% !important;
    }
    
    /* Progress Bars Mobile */
    .w-full.bg-gray-200 {
        height: 0.5rem !important;
        border-radius: 0.25rem !important;
    }
    
    /* Category Items Mobile */
    .flex.items-center.justify-between.text-sm {
        font-size: 0.75rem !important;
        padding: 0.25rem 0 !important;
    }
    
    .w-3.h-3 {
        width: 0.75rem !important;
        height: 0.75rem !important;
    }
    
    /* Toast Mobile */
    #toast {
        top: 70px !important;
        right: 0.5rem !important;
        left: 0.5rem !important;
        max-width: none !important;
    }
    
    /* Chart Type Buttons Mobile */
    .chart-type-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Weekly Data Mobile */
    .weekly-data .text-xs {
        font-size: 0.625rem !important;
    }
    
    /* Financial Stats Mobile */
    .grid.grid-cols-2.gap-4.mb-6 {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Subscription Cards Mobile */
    .neumorphism-inset.rounded-2xl.p-4 {
        padding: 0.75rem !important;
        border-radius: 0.75rem !important;
    }
    
    /* Status Indicators Mobile */
    .status-indicator {
        width: 6px !important;
        height: 6px !important;
    }
    
    /* Category Chart Mobile */
    #categoryChart {
        max-height: 140px !important;
    }
    
    /* Main Chart Mobile */
    #mainChart {
        max-height: 180px !important;
    }
    
    /* Quick Add Transaction Types Mobile */
    .transaction-type-btn {
        padding: 0.75rem !important;
        min-height: 60px !important;
    }
    
    .transaction-type-btn .text-2xl {
        font-size: 1.5rem !important;
    }
    
    .transaction-type-btn .text-sm {
        font-size: 0.75rem !important;
    }
}

/* Landscape Mobile Dashboard */
@media (max-width: 768px) and (orientation: landscape) {
    /* KPI Cards in Landscape */
    #dashboard-container .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4.xl\\:grid-cols-6 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Charts in Landscape */
    .h-80 {
        height: 160px !important;
    }
    
    .h-64 {
        height: 120px !important;
    }
    
    /* Weekly Grid in Landscape */
    .weekly-day {
        padding: 0.25rem !important;
        font-size: 0.5rem !important;
    }
}

/* Small Mobile Dashboard (iPhone SE) */
@media (max-width: 375px) {
    /* Single Column KPI Cards */
    #dashboard-container .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4.xl\\:grid-cols-6 {
        grid-template-columns: 1fr !important;
    }
    
    /* Smaller Charts */
    .h-80 {
        height: 150px !important;
    }
    
    .h-64 {
        height: 120px !important;
    }
    
    /* Smaller Text */
    .text-3xl {
        font-size: 1.5rem !important;
    }
    
    .text-2xl {
        font-size: 1.125rem !important;
    }
    
    /* Compact Weekly Grid */
    .weekly-day {
        padding: 0.25rem 0.125rem !important;
        font-size: 0.5rem !important;
    }
    
    /* Compact Today's Summary */
    .grid.grid-cols-2.gap-4 {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
}

/* Large Mobile Dashboard (iPhone Plus) */
@media (min-width: 414px) and (max-width: 768px) {
    /* 3-Column KPI Cards for larger mobiles */
    #dashboard-container .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4.xl\\:grid-cols-6 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Slightly larger charts */
    .h-80 {
        height: 220px !important;
    }
    
    .h-64 {
        height: 180px !important;
    }
}

/* Dashboard Dark Mode Mobile Adjustments */
@media (max-width: 768px) {
    .dark #dashboard-container .neumorphism {
        box-shadow: 3px 3px 6px #0f172a, -3px -3px 6px #1e293b !important;
    }
    
    .dark #dashboard-container .neumorphism-inset {
        box-shadow: inset 3px 3px 6px #0f172a, inset -3px -3px 6px #1e293b !important;
    }
    
    .dark .card-hover:hover {
        box-shadow: 6px 6px 12px #0f172a, -6px -6px 12px #1e293b !important;
    }
}

/* Dashboard High DPI Mobile */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .neumorphism {
        box-shadow: 2px 2px 4px #d1d9e6, -2px -2px 4px #ffffff !important;
    }
    
    .neumorphism-inset {
        box-shadow: inset 2px 2px 4px #d1d9e6, inset -2px -2px 4px #ffffff !important;
    }
    
    .dark .neumorphism {
        box-shadow: 2px 2px 4px #0f172a, -2px -2px 4px #1e293b !important;
    }
    
    .dark .neumorphism-inset {
        box-shadow: inset 2px 2px 4px #0f172a, inset -2px -2px 4px #1e293b !important;
    }
}

/* Dashboard Print Styles */
@media print {
    #dashboard-container .neumorphism,
    #dashboard-container .neumorphism-inset {
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
    
    #dashboard-container .grid {
        break-inside: avoid !important;
    }
    
    .chart-container {
        break-inside: avoid !important;
    }
}

/* Dashboard Accessibility */
@media (prefers-reduced-motion: reduce) {
    #dashboard-container .card-hover:hover {
        transform: none !important;
    }
    
    .animate-fade-in,
    .animate-slide-up,
    .animate-scale-in {
        animation: none !important;
    }
}

/* Dashboard Touch Optimizations */
@media (pointer: coarse) {
    .chart-type-btn {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 0.75rem !important;
    }
    
    .btn-neumorphism {
        min-height: 48px !important;
        min-width: 48px !important;
    }
    
    .transaction-type-btn {
        min-height: 60px !important;
        min-width: 60px !important;
    }
}

/* Income-Expense Page Mobile Optimization */
@media (max-width: 768px) {
    /* Income-Expense Container Mobile */
    #income-expense-container {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Header Stats Mobile */
    #income-expense-container .flex.items-center.mt-2 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }
    
    #income-expense-container .flex.items-center.mt-2.space-x-4 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        width: 100% !important;
        margin-top: 0.75rem !important;
    }
    
    /* Quick Actions Mobile */
    #income-expense-container .flex.flex-wrap.gap-3 {
        width: 100% !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    /* Stats Cards Grid Mobile */
    #income-expense-container .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    /* Stats Card Content Mobile */
    .hover\\:scale-105 .text-2xl {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }
    
    .hover\\:scale-105 .w-12.h-12 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    .hover\\:scale-105 .w-6.h-6 {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
    
    /* Transaction List Mobile */
    .bg-gray-50.dark\\:bg-gray-700.rounded-2xl {
        padding: 1rem !important;
        border-radius: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Transaction Item Mobile Layout */
    .bg-gray-50.dark\\:bg-gray-700 .flex.items-center.justify-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    /* Transaction Icon Mobile */
    .bg-gray-50.dark\\:bg-gray-700 .w-16.h-16 {
        width: 3rem !important;
        height: 3rem !important;
        border-radius: 0.75rem !important;
    }
    
    /* Transaction Content Mobile */
    .bg-gray-50.dark\\:bg-gray-700 .flex.items-center.space-x-4 {
        width: 100% !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
    
    .bg-gray-50.dark\\:bg-gray-700 .flex-1 {
        width: 100% !important;
    }
    
    /* Transaction Title Mobile */
    .bg-gray-50.dark\\:bg-gray-700 .text-xl {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
    }
    
    /* Transaction Meta Mobile */
    .bg-gray-50.dark\\:bg-gray-700 .flex.items-center.space-x-4.text-sm {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
        margin-top: 0.5rem !important;
    }
    
    .bg-gray-50.dark\\:bg-gray-700 .flex.items-center.space-x-2 {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    /* Transaction Amount Section Mobile */
    .bg-gray-50.dark\\:bg-gray-700 .text-right {
        width: 100% !important;
        text-align: left !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .bg-gray-50.dark\\:bg-gray-700 .text-3xl {
        font-size: 1.5rem !important;
        line-height: 2rem !important;
    }
    
    /* Transaction Actions Mobile */
    .bg-gray-50.dark\\:bg-gray-700 .flex.space-x-2 {
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
    }
    
    .bg-gray-50.dark\\:bg-gray-700 .flex.space-x-2 button {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
        border-radius: 0.5rem !important;
    }
    
    /* Category Distribution Mobile */
    #income-expense-container .grid.grid-cols-1.lg\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Category Items Mobile */
    .flex.items-center.justify-between.p-3 {
        padding: 0.75rem !important;
        border-radius: 0.75rem !important;
    }
    
    .flex.items-center.justify-between.p-3 .flex.items-center.space-x-3 {
        gap: 0.5rem !important;
    }
    
    .flex.items-center.justify-between.p-3 .text-xl {
        font-size: 1rem !important;
    }
    
    /* Success/Error Messages Mobile */
    .bg-green-50 {
        border-radius: 0.75rem !important;
        padding: 0.75rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .bg-red-50 {
        border-radius: 0.75rem !important;
        padding: 0.75rem !important;
        margin: 0.5rem 0 !important;
    }
    
    /* Empty State Mobile */
    .text-center.py-20 {
        padding: 3rem 1rem !important;
    }
    
    .text-center.py-20 .text-6xl {
        font-size: 3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .text-center.py-20 .text-2xl {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .text-center.py-20 button {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
}

/* Income-Expense Modal Mobile */
@media (max-width: 768px) {
    /* Modal Container Mobile */
    #transactionModal .neumorphism {
        margin: 0.5rem !important;
        padding: 1.5rem !important;
        max-height: calc(100vh - 1rem) !important;
        overflow-y: auto !important;
        border-radius: 1rem !important;
        width: calc(100vw - 1rem) !important;
        max-width: none !important;
    }
    
    /* Modal Header Mobile */
    #transactionModal .flex.items-center.justify-between.mb-6 {
        margin-bottom: 1rem !important;
    }
    
    #transactionModal .text-xl {
        font-size: 1.125rem !important;
    }
    
    /* Transaction Type Buttons Mobile */
    #transactionModal .grid.grid-cols-2 {
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    #transactionModal .transaction-type-btn {
        padding: 1rem !important;
        min-height: 70px !important;
    }
    
    #transactionModal .transaction-type-btn .text-2xl {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    #transactionModal .transaction-type-btn .text-sm {
        font-size: 0.875rem !important;
    }
    
    /* Modal Form Fields Mobile */
    #transactionModal .space-y-4 > * {
        margin-top: 1rem !important;
    }
    
    #transactionModal input,
    #transactionModal select,
    #transactionModal textarea {
        padding: 0.75rem 1rem !important;
        border-radius: 0.75rem !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    #transactionModal textarea {
        resize: none !important;
        min-height: 80px !important;
    }
    
    /* Modal Buttons Mobile */
    #transactionModal .flex.space-x-3 {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding-top: 1rem !important;
    }
    
    #transactionModal .flex.space-x-3 button {
        width: 100% !important;
        padding: 0.875rem !important;
        font-size: 1rem !important;
        border-radius: 0.75rem !important;
    }
    
    /* Modal Labels Mobile */
    #transactionModal label {
        font-size: 0.875rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Small Mobile Income-Expense */
@media (max-width: 375px) {
    /* Single Column Stats */
    #income-expense-container .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
    
    /* Compact Header Stats */
    #income-expense-container .flex.items-center.mt-2.space-x-4 {
        grid-template-columns: 1fr !important;
        gap: 0.25rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Compact Transaction Cards */
    .bg-gray-50.dark\\:bg-gray-700 .w-16.h-16 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    .bg-gray-50.dark\\:bg-gray-700 .text-3xl {
        font-size: 1.25rem !important;
    }
    
    /* Compact Category Items */
    .flex.items-center.justify-between.p-3 {
        padding: 0.5rem !important;
    }
    
    .flex.items-center.justify-between.p-3 .text-xl {
        font-size: 0.875rem !important;
    }
}

/* Large Mobile Income-Expense */
@media (min-width: 414px) and (max-width: 768px) {
    /* 3-Column Stats for larger mobiles */
    #income-expense-container .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Better spacing for larger screens */
    .bg-gray-50.dark\\:bg-gray-700 .text-3xl {
        font-size: 1.75rem !important;
    }
}

/* Income-Expense Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    /* More compact in landscape */
    .text-center.py-20 {
        padding: 2rem 1rem !important;
    }
    
    .bg-gray-50.dark\\:bg-gray-700 {
        padding: 0.75rem !important;
    }
    
    /* Modal in landscape */
    #transactionModal .neumorphism {
        max-height: calc(100vh - 2rem) !important;
        overflow-y: scroll !important;
    }
}

/* Income-Expense Dark Mode Mobile */
@media (max-width: 768px) {
    .dark .bg-gray-50 {
        background-color: #374151 !important;
    }
    
    .dark .hover\\:shadow-xl {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    }
}

/* Income-Expense Touch Optimizations */
@media (pointer: coarse) {
    .bg-gray-50.dark\\:bg-gray-700 .flex.space-x-2 button {
        min-height: 44px !important;
        min-width: 60px !important;
        touch-action: manipulation !important;
    }
    
    #transactionModal .transaction-type-btn {
        min-height: 70px !important;
        touch-action: manipulation !important;
    }
}

/* Income-Expense Print Styles */
@media print {
    #transactionModal {
        display: none !important;
    }
    
    .bg-gray-50.dark\\:bg-gray-700 {
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
        break-inside: avoid !important;
    }
}

/* Chart/Grafik Bileşenleri Mobile Optimization */
@media (max-width: 768px) {
    /* Chart Canvas Mobile */
    canvas {
        max-width: 100% !important;
        height: auto !important;
        touch-action: manipulation !important;
    }
    
    /* Chart Container Mobile */
    .chart-container {
        padding: 0.75rem !important;
        margin: 0.5rem 0 !important;
        border-radius: 1rem !important;
        overflow: hidden !important;
    }
    
    /* Chart Height Override Mobile */
    .h-80 canvas,
    .h-64 canvas {
        height: auto !important;
        min-height: 150px !important;
        max-height: 200px !important;
    }
    
    /* Chart Type Buttons Container Mobile */
    .flex.space-x-2:has(.chart-type-btn) {
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    /* Chart Legend Mobile */
    .chart-legend {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        justify-content: center !important;
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Chart Tooltip Mobile */
    .chartjs-tooltip {
        font-size: 0.875rem !important;
        padding: 0.5rem !important;
        border-radius: 0.5rem !important;
        max-width: 200px !important;
    }
    
    /* Chart Title Mobile */
    .chart-title {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
    }
    
    /* Doughnut Chart Mobile */
    .doughnut-chart-container {
        max-width: 250px !important;
        margin: 0 auto !important;
    }
    
    /* Line Chart Mobile */
    .line-chart-container {
        position: relative !important;
        height: 200px !important;
        margin: 0.5rem 0 !important;
    }
    
    /* Bar Chart Mobile */
    .bar-chart-container {
        position: relative !important;
        height: 220px !important;
        margin: 0.5rem 0 !important;
    }
    
    /* Chart Data Labels Mobile */
    .chart-data-labels {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
    }
    
    /* Chart Axis Labels Mobile */
    .chart-axis-labels {
        font-size: 0.625rem !important;
        max-width: 80px !important;
        word-wrap: break-word !important;
    }
    
    /* Chart Grid Lines Mobile */
    .chart-grid {
        opacity: 0.3 !important;
        stroke-width: 1px !important;
    }
    
    /* Chart Responsive Wrapper */
    .chart-responsive-wrapper {
        position: relative !important;
        width: 100% !important;
        padding-bottom: 50% !important; /* 2:1 Aspect Ratio */
        height: 0 !important;
    }
    
    .chart-responsive-wrapper canvas {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Category Chart Specific Mobile */
    #categoryChart {
        max-height: 180px !important;
        width: 100% !important;
    }
    
    /* Main Chart Specific Mobile */
    #mainChart {
        max-height: 200px !important;
        width: 100% !important;
    }
    
    /* Chart Loading State Mobile */
    .chart-loading {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 150px !important;
        font-size: 0.875rem !important;
        color: #6b7280 !important;
    }
    
    /* Chart Error State Mobile */
    .chart-error {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        height: 150px !important;
        padding: 1rem !important;
        text-align: center !important;
    }
    
    .chart-error-icon {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
        color: #ef4444 !important;
    }
    
    .chart-error-text {
        font-size: 0.875rem !important;
        color: #6b7280 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .chart-error-button {
        padding: 0.5rem 1rem !important;
        font-size: 0.75rem !important;
        background: #6366f1 !important;
        color: white !important;
        border: none !important;
        border-radius: 0.5rem !important;
    }
}

/* Chart Small Mobile Optimizations */
@media (max-width: 375px) {
    /* Extra Small Charts */
    .h-80 canvas,
    .h-64 canvas {
        min-height: 120px !important;
        max-height: 150px !important;
    }
    
    /* Compact Chart Container */
    .chart-container {
        padding: 0.5rem !important;
    }
    
    /* Smaller Chart Typography */
    .chart-title {
        font-size: 0.875rem !important;
    }
    
    .chart-legend {
        font-size: 0.625rem !important;
    }
    
    /* Compact Chart Controls */
    .chart-type-btn {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.625rem !important;
    }
    
    /* Doughnut Chart Extra Small */
    .doughnut-chart-container {
        max-width: 200px !important;
    }
}

/* Chart Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    /* Horizontal Charts in Landscape */
    .line-chart-container,
    .bar-chart-container {
        height: 160px !important;
    }
    
    .chart-responsive-wrapper {
        padding-bottom: 40% !important; /* 2.5:1 Aspect Ratio for landscape */
    }
    
    /* Chart Controls in Landscape */
    .flex.space-x-2:has(.chart-type-btn) {
        justify-content: flex-start !important;
    }
}

/* Chart Touch Optimizations */
@media (pointer: coarse) {
    /* Touch-Friendly Chart Buttons */
    .chart-type-btn {
        min-height: 44px !important;
        min-width: 44px !important;
        touch-action: manipulation !important;
    }
    
    /* Chart Hover States for Touch */
    canvas:hover {
        cursor: pointer !important;
    }
    
    /* Chart Pan and Zoom for Touch */
    .chart-container canvas {
        touch-action: pan-x pan-y !important;
    }
}

/* Chart Dark Mode Mobile */
@media (max-width: 768px) {
    .dark .chart-container {
        background: rgba(0, 0, 0, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .dark .chart-loading {
        color: #9ca3af !important;
    }
    
    .dark .chart-error-text {
        color: #9ca3af !important;
    }
}

/* Chart High DPI Mobile */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    /* High DPI Chart Rendering */
    canvas {
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: optimize-contrast !important;
    }
}

/* Chart Print Styles */
@media print {
    .chart-container {
        break-inside: avoid !important;
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
    
    canvas {
        max-height: 300px !important;
    }
    
    .chart-type-btn {
        display: none !important;
    }
}

/* Chart Accessibility */
@media (prefers-reduced-motion: reduce) {
    /* Disable Chart Animations */
    .chart-container canvas {
        animation: none !important;
        transition: none !important;
    }
}

/* Chart Container Responsive Utilities */
.chart-mobile-compact {
    padding: 0.5rem !important;
    margin: 0.25rem 0 !important;
}

.chart-mobile-full {
    width: 100% !important;
    max-width: none !important;
}

.chart-mobile-center {
    margin: 0 auto !important;
    text-align: center !important;
}

/* Chart Typography Mobile */
@media (max-width: 768px) {
    .chart-value-large {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
    }
    
    .chart-value-medium {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
    
    .chart-value-small {
        font-size: 0.875rem !important;
        font-weight: 500 !important;
    }
    
    .chart-label-primary {
        font-size: 0.875rem !important;
        color: #374151 !important;
    }
    
    .chart-label-secondary {
        font-size: 0.75rem !important;
        color: #6b7280 !important;
    }
}

.dark .chart-label-primary {
    color: #f9fafb !important;
}

.dark .chart-label-secondary {
    color: #9ca3af !important;
}

/* Genel Sayfa Mobil Optimizasyonları - TÜM SAYFALAR */
@media (max-width: 768px) {
    /* Settings Page Mobile */
    .space-y-8 {
        gap: 1rem !important;
    }
    
    .space-y-8 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1rem !important;
    }
    
    /* Form Grid Mobile */
    .grid.grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .md\\:col-span-2 {
        grid-column: span 1 !important;
    }
    
    /* Form Elements Universal Mobile */
    input[type="text"],
    input[type="email"], 
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    input[type="color"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.75rem 1rem !important;
        border-radius: 0.75rem !important;
        width: 100% !important;
    }
    
    /* Color Picker Mobile */
    input[type="color"] {
        width: 3rem !important;
        height: 3rem !important;
        padding: 0 !important;
        border-radius: 0.75rem !important;
    }
    
    /* Textarea Mobile */
    textarea {
        min-height: 80px !important;
        resize: vertical !important;
    }
    
    /* Button Universal Mobile */
    button[type="submit"],
    .btn-primary,
    .btn-secondary {
        width: 100% !important;
        padding: 0.875rem 1rem !important;
        font-size: 1rem !important;
        border-radius: 0.75rem !important;
        min-height: 48px !important;
    }
    
    /* Label Mobile */
    label {
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Card Container Mobile */
    .neumorphism.rounded-3xl {
        border-radius: 1rem !important;
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Header Mobile */
    .neumorphism.rounded-3xl.p-8 {
        padding: 1.5rem !important;
    }
    
    /* Success/Error Messages Mobile */
    .bg-green-50,
    .bg-red-50,
    .bg-yellow-50,
    .bg-blue-50 {
        border-radius: 0.75rem !important;
        padding: 0.75rem !important;
        margin: 0.75rem 0 !important;
    }
    
    /* Icon + Text Mobile */
    .flex i[data-lucide] {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
    
    /* Page Title Mobile */
    .text-3xl {
        font-size: 1.5rem !important;
        line-height: 2rem !important;
    }
    
    /* Page Subtitle Mobile */
    .text-xl {
        font-size: 1.125rem !important;
        line-height: 1.75rem !important;
    }
    
    /* Color Input Container Mobile */
    .flex.space-x-2 {
        gap: 0.5rem !important;
        align-items: center !important;
    }
    
    .flex.space-x-2 input[type="text"][readonly] {
        font-size: 0.875rem !important;
        padding: 0.5rem !important;
    }
    
    /* Help Text Mobile */
    .text-xs {
        font-size: 0.75rem !important;
        line-height: 1rem !important;
    }
    
    /* Gradient Button Mobile */
    .bg-gradient-to-r {
        padding: 0.875rem 1rem !important;
        border-radius: 0.75rem !important;
    }
}

/* Goals Page Mobile */
@media (max-width: 768px) {
    /* Goal Cards Mobile */
    .goal-card {
        padding: 1rem !important;
        border-radius: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Progress Bar Mobile */
    .progress-bar {
        height: 0.5rem !important;
        border-radius: 0.25rem !important;
    }
    
    /* Goal Amount Mobile */
    .goal-amount {
        font-size: 1.125rem !important;
    }
}

/* Categories Page Mobile */
@media (max-width: 768px) {
    /* Category Cards Mobile */
    .category-card {
        padding: 0.75rem !important;
        border-radius: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Category Icon Mobile */
    .category-icon {
        width: 2rem !important;
        height: 2rem !important;
        font-size: 1rem !important;
    }
    
    /* Category Actions Mobile */
    .category-actions {
        gap: 0.5rem !important;
    }
    
    .category-actions button {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.75rem !important;
        border-radius: 0.5rem !important;
    }
}

/* Password Manager Mobile */
@media (max-width: 768px) {
    /* Password Cards Mobile */
    .password-card {
        padding: 1rem !important;
        border-radius: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Password Actions Mobile */
    .password-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }
    
    .password-actions button {
        width: 100% !important;
        padding: 0.5rem !important;
        font-size: 0.875rem !important;
    }
}

/* Tasks Page Mobile */
@media (max-width: 768px) {
    /* Task Cards Mobile */
    .task-card {
        padding: 1rem !important;
        border-radius: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Task Checkbox Mobile */
    .task-checkbox {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
    
    /* Task Priority Mobile */
    .task-priority {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
        border-radius: 0.375rem !important;
    }
}

/* Deposits Page Mobile */
@media (max-width: 768px) {
    /* Deposit Cards Mobile */
    .deposit-card {
        padding: 1rem !important;
        border-radius: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Deposit Amount Mobile */
    .deposit-amount {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
    }
    
    /* Deposit Type Mobile */
    .deposit-type {
        font-size: 0.875rem !important;
        padding: 0.25rem 0.5rem !important;
        border-radius: 0.375rem !important;
    }
}

/* Modal Universal Mobile */
@media (max-width: 768px) {
    /* All Modal Containers */
    .modal,
    .modal-container,
    .fixed.inset-0 {
        padding: 0.5rem !important;
    }
    
    .modal .neumorphism,
    .modal-container .neumorphism {
        width: calc(100vw - 1rem) !important;
        max-width: none !important;
        margin: 0.5rem auto !important;
        max-height: calc(100vh - 1rem) !important;
        overflow-y: auto !important;
        border-radius: 1rem !important;
        padding: 1.5rem !important;
    }
    
    /* Modal Header */
    .modal h3,
    .modal-container h3 {
        font-size: 1.125rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Modal Form Fields */
    .modal .space-y-4 > *,
    .modal-container .space-y-4 > * {
        margin-top: 1rem !important;
    }
    
    /* Modal Buttons */
    .modal .flex.space-x-3,
    .modal-container .flex.space-x-3 {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding-top: 1rem !important;
    }
    
    .modal .flex.space-x-3 button,
    .modal-container .flex.space-x-3 button {
        width: 100% !important;
        padding: 0.875rem !important;
        font-size: 1rem !important;
        border-radius: 0.75rem !important;
    }
}

/* Tab Navigation Mobile */
@media (max-width: 768px) {
    .tab-nav,
    .nav-tabs {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        padding-bottom: 0.5rem !important;
    }
    
    .tab-nav button,
    .nav-tabs button {
        min-width: 120px !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
        border-radius: 0.75rem !important;
        margin-right: 0.5rem !important;
    }
}

/* Data Table Mobile */
@media (max-width: 768px) {
    /* Table Container */
    .table-container,
    .overflow-x-auto {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 1rem !important;
    }
    
    /* Table */
    table {
        min-width: 600px !important;
        font-size: 0.875rem !important;
    }
    
    /* Table Headers */
    th {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
    }
    
    /* Table Cells */
    td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Table Actions */
    .table-actions {
        min-width: 120px !important;
    }
    
    .table-actions button {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.75rem !important;
        margin: 0.125rem !important;
    }
}

/* Search Bar Mobile */
@media (max-width: 768px) {
    .search-container {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .search-input {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        padding-left: 2.5rem !important;
        border-radius: 0.75rem !important;
        font-size: 16px !important;
    }
    
    .search-icon {
        left: 0.75rem !important;
        width: 1.125rem !important;
        height: 1.125rem !important;
    }
}

/* Filter Buttons Mobile */
@media (max-width: 768px) {
    .filter-buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .filter-button {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        border-radius: 0.5rem !important;
        white-space: nowrap !important;
    }
}

/* Pagination Mobile */
@media (max-width: 768px) {
    .pagination {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }
    
    .pagination button {
        min-width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        font-size: 0.875rem !important;
        border-radius: 0.5rem !important;
    }
}

/* Action Bar Mobile */
@media (max-width: 768px) {
    .action-bar {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }
    
    .action-bar .flex {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .action-bar button {
        flex: 1 !important;
        margin: 0 0.25rem !important;
    }
}

/* Stats Cards Mobile */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .stat-card {
        padding: 1rem !important;
        border-radius: 1rem !important;
    }
    
    .stat-value {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
    }
}

/* Quick Actions Mobile */
@media (max-width: 768px) {
    .quick-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin: 1rem 0 !important;
    }
    
    .quick-action {
        aspect-ratio: 1 !important;
        padding: 1rem !important;
        border-radius: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .quick-action-icon {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .quick-action-text {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
    }
}

/* Header Actions Mobile */
@media (max-width: 768px) {
    .header-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    
    .header-actions button {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Breadcrumb Mobile */
@media (max-width: 768px) {
    .breadcrumb {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        padding-bottom: 0.5rem !important;
    }
    
    .breadcrumb-item {
        font-size: 0.875rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}
