@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 (Replaces @apply) */
.hidden {
    display: none !important;
}

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

.input-field:focus {
    box-shadow: 0 0 0 2px #3b82f6;
    /* ring-blue-500 */
    border-color: #3b82f6;
}

.dark .input-field {
    background-color: #1e293b;
    /* slate-800 */
    border-color: #334155;
    /* slate-700 */
    color: white;
}

.btn-primary {
    background-color: #2563eb;
    /* blue-600 */
    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;
    /* blue-700 */
    transform: scale(0.98);
}

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

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

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

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

.dark .btn-secondary {
    background-color: #334155;
    /* slate-700 */
    color: #e2e8f0;
    /* slate-200 */
}

.dark .btn-secondary:hover {
    background-color: #475569;
    /* slate-600 */
}

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

/* If parent has hidden class, override display */
.modal-overlay.hidden {
    display: none !important;
}

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

.dark .modal-content {
    background-color: #0f172a;
    /* slate-900 */
    border-color: #1e293b;
    /* slate-800 */
    color: #e2e8f0;
    /* slate-200 */
}

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

.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;
    /* blue-200 */
    background-color: #eff6ff;
    /* blue-50 */
}

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

.takvim-gunu.mazeret-secili {
    background-color: #fef3c7 !important;
    /* amber-100 */
    color: #d97706 !important;
    /* amber-600 */
    border-color: #fcd34d !important;
    /* amber-300 */
}

.takvim-gunu.mazeret-secili:hover {
    background-color: #fde68a !important;
    /* amber-200 */
}

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

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

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

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

.adim-pasif {
    background-color: #e2e8f0;
    /* slate-200 */
    color: #64748b;
    /* slate-500 */
}

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

/* Toast */
.toast {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 50;
    transition: all 0.3s;
    transform: translateY(0);
    opacity: 1;
}

.toast.hidden {
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    display: flex !important;
    /* Keep display flex to allow transform */
}

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

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

/* Mobile Responsive Table */
@media (max-width: 768px) {

    .mobile-table th,
    .mobile-table td {
        white-space: nowrap;
    }
}

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

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

    #sonucAdimi,
    #sonucListesi,
    .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;
        page-break-inside: avoid;
    }

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

    .hafta-sonu {
        background-color: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
    }
}