@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Helper Utilities */
.hidden {
    display: none !important;
}

/* Custom Components */
.input-field {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    transition: all 0.2s;
    outline: none;
}

.input-field:focus {
    box-shadow: 0 0 0 2px #3b82f6;
    border-color: #3b82f6;
}

.dark .input-field {
    background-color: #1e293b;
    border-color: #334155;
    color: white;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: scale(0.98);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #1e293b;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #cbd5e1;
    transform: scale(0.98);
}

.dark .btn-secondary {
    background-color: #334155;
    color: #e2e8f0;
}

.dark .btn-secondary:hover {
    background-color: #475569;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: opacity 0.3s;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-content {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 32rem;
    overflow: hidden;
    transform: scale(1);
    transition: all 0.2s;
    border: 1px solid #f1f5f9;
}

.dark .modal-content {
    background-color: #0f172a;
    border-color: #1e293b;
    color: #e2e8f0;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
}

.dark .modal-header {
    border-color: #1e293b;
    background-color: rgba(30, 41, 59, 0.5);
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background-color: #f8fafc;
}

.dark .modal-footer {
    border-color: #1e293b;
    background-color: rgba(30, 41, 59, 0.5);
}

/* Calendar */
.takvim-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.takvim-gunu {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.takvim-gunu:hover {
    border-color: #bfdbfe;
    background-color: #eff6ff;
}

.dark .takvim-gunu:hover {
    background-color: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.takvim-gunu.mazeret-secili {
    background-color: #fef3c7 !important;
    color: #d97706 !important;
    border-color: #fcd34d !important;
}

.dark .takvim-gunu.mazeret-secili {
    background-color: rgba(245, 158, 11, 0.3) !important;
    color: #fbbf24 !important;
    border-color: #b45309 !important;
}

/* Steps */
.step-circle {
    transition: all 0.3s;
}

.adim-aktif {
    background-color: #2563eb;
    color: white !important;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
    border: 4px solid #dbeafe;
}

.dark .adim-aktif {
    border-color: rgba(30, 58, 138, 0.3);
}

.adim-pasif {
    background-color: #e2e8f0;
    color: #64748b;
}

.dark .adim-pasif {
    background-color: #1e293b;
    color: #94a3b8;
}


/* Dark Mode Overrides */
.dark body {
    background-color: #0f172a;
    color: #f1f5f9;
}

.dark input[type="date"],
.dark input[type="number"],
.dark select {
    color-scheme: dark;
}

/* New Improvements */
#sonucOzet div {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sonucOzet div:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.dark #sonucOzet div:hover {
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .no-print, button, #girisAdimi, #personelAdimi, #themeToggle, #yardimBtn, .toast {
        display: none !important;
    }

    #sonucAdimi, .container {
        display: block !important;
        width: 100% !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    table {
        width: 100% !important;
        border: 1px solid #ddd !important;
    }

    th, td {
        border: 1px solid #ddd !important;
        padding: 8px !important;
    }
}