/* Pavafin - Modern Dashboard Stil */

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

:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 260px;
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.sidebar-account {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.sidebar-account-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sidebar-account-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    margin: -0.5rem;
}

.sidebar-account-link:hover .sidebar-account-header {
    background: rgba(59, 130, 246, 0.05);
}

.sidebar-account-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sidebar-account-info {
    flex: 1;
    min-width: 0;
}

.sidebar-account-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.sidebar-account-email {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: #f9fafb;
    color: var(--text-primary);
}

.sidebar-link.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-link svg {
    flex-shrink: 0;
}

.sidebar-link span {
    font-size: 14px;
}

/* Main Wrapper */
.main-wrapper {
    margin-left: 260px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.topbar-left,
.topbar-center,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-center {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.sidebar-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: #f9fafb;
    color: var(--text-primary);
}

/* Search */
.search-container {
    width: 100%;
}

.search-trigger {
    width: 100%;
    padding: 0.625rem 1rem;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.search-trigger:hover {
    background: #f3f4f6;
    border-color: var(--primary-color);
}

.search-placeholder {
    flex: 1;
    text-align: left;
    font-size: 14px;
}

.search-trigger svg {
    flex-shrink: 0;
}

.topbar-actions {
    display: flex;
    gap: 0.5rem;
}

.topbar-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-icon:hover {
    background: #f9fafb;
    color: var(--text-primary);
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s;
}

.search-modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    max-height: 70vh;
    overflow: hidden;
    animation: slideDown 0.3s;
}

.search-input-wrapper {
    position: relative;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.search-icon {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: border-color 0.2s;
    background: var(--card-bg);
    color: var(--text-primary);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-kbd {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
    color: var(--text-secondary);
}

.search-results {
    max-height: calc(70vh - 100px);
    overflow-y: auto;
    padding: 1rem;
}

.search-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.search-result-item {
    padding: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 0.5rem;
}

.search-result-item:hover {
    background: #f9fafb;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-result-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.search-result-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 12px;
}

/* Main Content */
.main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Collapsed State */
body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

body.sidebar-collapsed .main-wrapper {
    margin-left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    body.sidebar-open .sidebar {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
        z-index: 2000;
    }
    
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
        animation: fadeIn 0.2s;
        cursor: pointer;
    }
    
    .topbar {
        padding: 0.75rem 1rem;
    }
    
    .topbar-center {
        max-width: none;
    }
    
    .search-placeholder {
        display: none;
    }
}

/* Dashboard */
.dashboard-container {
    width: 100%;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: #dbeafe;
    color: var(--primary-color);
}

.stat-icon.green {
    background: #d1fae5;
    color: var(--success-color);
}

.stat-icon.red {
    background: #fee2e2;
    color: var(--danger-color);
}

.stat-icon.orange {
    background: #dbeafe;
    color: var(--info-color);
}

.stat-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.btn-link:hover {
    opacity: 0.8;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.cari-row-clickable {
    transition: background-color 0.2s ease;
}

.cari-row-clickable:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.data-table thead {
    background: #f9fafb;
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: var(--success-color);
}

.badge-danger {
    background: #fee2e2;
    color: var(--danger-color);
}

.badge-warning {
    background: #fed7aa;
    color: var(--warning-color);
}

.badge-info {
    background: #dbeafe;
    color: var(--info-color);
}

.badge-secondary {
    background: #f3f4f6;
    color: var(--text-secondary);
}

/* Page Container */
.page-container {
    width: 100%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: #f9fafb;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: var(--text-primary);
}

/* Forms */
.filter-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-form .form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
}

.filter-form .form-group label {
    margin-bottom: 0.5rem;
}

.filter-form .form-group select,
.filter-form .form-group input {
    flex: 1;
    width: 100%;
}

.filter-form button,
.filter-form .btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    min-height: 20px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.form-control {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--card-bg);
    color: var(--text-primary);
}

.form-control-sm {
    padding: 0.375rem 0.625rem;
    font-size: 13px;
    line-height: 1.5;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Hidden class - sadece modal içindeki form-group'lar için */
.modal-body .form-group.hidden {
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Filtreleme formlarındaki form-group'lar hidden class'tan etkilenmemeli */
.filter-form .form-group.hidden,
.filter-form-inline .form-group.hidden {
    visibility: visible !important;
    height: auto !important;
    margin: inherit !important;
    padding: inherit !important;
    overflow: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Modal içindeki form-row'lar için özel genişlikler */
/* Tarih ve Belge No aynı genişlikte (sol), Tutar ve Durum aynı genişlikte (sağ) */
.modal-body .form-row:has(#tutarGroup) {
    grid-template-columns: 1fr 1fr;
}

.modal-body .form-row:has(#belgeNoGroup) {
    grid-template-columns: 1fr 1fr;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    background: var(--card-bg);
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.radio-label span {
    font-size: 14px;
    color: var(--text-primary);
    user-select: none;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    padding-right: 2.5rem;
}

.input-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    pointer-events: none;
}

/* Fatura Link */
.fatura-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.fatura-link:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: var(--success-color);
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: var(--danger-color);
    border: 1px solid #fecaca;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    max-width: 500px;
    width: calc(100% - 40px);
}

.toast {
    width: 100%;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    pointer-events: auto;
    animation: slideUpFromBottom 0.4s ease-out;
    border-top: 4px solid;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: currentColor;
    animation: toastProgress var(--progress-duration, 5000ms) linear forwards;
}

.toast-success {
    border-top-color: var(--success-color);
    color: var(--success-color);
}

.toast-error {
    border-top-color: var(--danger-color);
    color: var(--danger-color);
}

.toast-warning {
    border-top-color: var(--warning-color);
    color: var(--warning-color);
}

.toast-info {
    border-top-color: var(--info-color);
    color: var(--info-color);
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideUpFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

.modal-content.modal-large {
    max-width: 800px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 10;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .form-group {
    margin-bottom: 1.25rem;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-body .form-row {
    margin-bottom: 1.25rem;
}

.modal-body .form-row:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    position: sticky;
    bottom: 0;
    background: var(--card-bg);
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-primary {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Calendar Layout */
.calendar-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.calendar-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.calendar-main {
    min-width: 0;
}

.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.calendar-controls h2 {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 20px;
}

.calendar-wrapper {
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    padding: 0.5rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    min-height: 100px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
    position: relative;
}

.calendar-day:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day.today {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    border-width: 2px;
}

.calendar-day.has-events {
    border-color: var(--primary-color);
}

.calendar-day-number {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.calendar-event-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 11px;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event-item.event-income {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.calendar-event-item.event-expense {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.event-income .event-dot {
    background: var(--success-color);
}

.event-expense .event-dot {
    background: var(--warning-color);
}

.event-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event-more {
    font-size: 10px;
    color: var(--text-secondary);
    font-style: italic;
    padding: 0.125rem 0.25rem;
}

/* Event Details */
.event-details-date {
    font-size: 18px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.event-detail-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    background: #f9fafb;
}

.event-detail-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.event-detail-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.event-detail-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.event-detail-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 12px;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }
    
    .calendar-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-menu {
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 0.25rem;
    }
    
    .calendar-day-events {
        display: none;
    }
    
    .calendar-day.has-events::after {
        content: '•';
        position: absolute;
        top: 0.25rem;
        right: 0.25rem;
        color: var(--primary-color);
        font-size: 20px;
    }
    
    .calendar-controls {
        flex-wrap: wrap;
    }
    
    .calendar-controls h2 {
        width: 100%;
        order: -1;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .toast-container {
        bottom: 20px;
        left: 20px;
        right: 20px;
        transform: none;
        width: auto;
        max-width: calc(100vw - 40px);
    }
    
    .toast {
        width: 100%;
    }
}

/* Finans Takvimi Stilleri */
.finans-takvimi-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tarih Çizgisi */
.tarih-cizgisi {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.tarih-cizgisi::-webkit-scrollbar {
    height: 4px;
}

.tarih-cizgisi::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 2px;
}

.tarih-cizgisi::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.tarih-cizgisi::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.tarih-item {
    min-width: 70px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    border: 2px solid transparent;
    background: var(--bg-color);
}

.tarih-item:hover {
    background: #e0e7ff;
    border-color: var(--primary-color);
}

.tarih-item.bugun {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.tarih-item.bugun .tarih-gun,
.tarih-item.bugun .tarih-no,
.tarih-item.bugun .tarih-ay {
    color: white;
}

.tarih-gun {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.tarih-no {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.tarih-ay {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Tarih Detayları */
.tarih-detaylari {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
}

.tarih-detay {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tarih-detay.aktif {
    display: block;
}

.bos-tarih {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.finans-item {
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--border-color);
    transition: all 0.2s;
}

.finans-item:hover {
    box-shadow: var(--shadow-sm);
    border-left-color: var(--primary-color);
}

.finans-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.finans-tip {
    font-size: 11px;
    padding: 0.25rem 0.5rem;
}

.finans-tutar {
    font-weight: 600;
    font-size: 16px;
}

.finans-aciklama {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.finans-cari {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.finans-durum {
    margin-top: 0.5rem;
}

.finans-durum .badge {
    font-size: 11px;
    padding: 0.25rem 0.5rem;
}

/* Tarih çizgisi için JavaScript ile aktif tarih değiştirme */
.tarih-item[data-tarih] {
    position: relative;
}

.tarih-item[data-tarih]:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.tarih-item.bugun:after,
.tarih-item:hover:after {
    width: 80%;
}

