* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 0;
    color: #333;
    min-height: 100vh;
    display: flex;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: auto;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    backdrop-filter: blur(10px);
    flex: 1;
    margin-left: 60px;
    transition: margin-left 0.3s ease;
    width: 100%;
}

.container.sidebar-active {
    display: none;
}

.left-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow-y: auto;
    padding-right: 20px;
}

.right-section {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

h1 {
    font-size: 24px;
    font-weight: 500;
    color: #2c3e50;
}

.date-selector {
    display: flex;
    align-items: center;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    background-color: #f8f9fa;
}

.input-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

input:focus, select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.add-button {
    background-color: #4CAF50;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-button:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.summary-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.summary-box {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.summary-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.summary-box h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 8px 12px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    color: #4CAF50;
    font-weight: 500;
}

.date-icon {
    font-size: 16px;
}

#current-day, #current-date {
    font-size: 14px;
}

#current-date {
    margin-left: auto;
    opacity: 0.8;
}

.summary-box h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background-color: #4CAF50;
    border-radius: 2px;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    font-weight: 600;
}

.label {
    color: #666;
    font-size: 14px;
}

.value {
    font-weight: 500;
    font-size: 16px;
}

.value.income {
    color: #4CAF50;
}

.value.expense {
    color: #f44336;
}

.transactions-section {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
}

.transaction-filters {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.filter-button {
    background-color: #f1f1f1;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background-color: #e0e0e0;
}

.filter-button.active {
    background-color: #4CAF50;
    color: white;
}

.print-button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-left: auto;
}

.print-button:hover {
    background-color: #0b7dda;
}

.transactions-section::-webkit-scrollbar {
    width: 8px;
}

.transactions-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.transactions-section::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.transactions-section::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.transactions-section h2 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.transactions-section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background-color: #4CAF50;
    border-radius: 2px;
}

.transaction-item {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.transaction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.transaction-item.income {
    border-left-color: #4CAF50;
}

.transaction-item.expense {
    border-left-color: #f44336;
}

.transaction-item .description {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.transaction-item .description strong {
    color: #2c3e50;
    font-size: 16px;
}

.transaction-item .description small {
    color: #666;
    font-size: 12px;
}

.transaction-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.transaction-item .amount {
    font-weight: 600;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.transaction-item .amount.income {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.transaction-item .amount.expense {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
}

.transaction-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.transaction-item:hover .transaction-actions {
    opacity: 1;
}

.action-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.action-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.edit-button:hover {
    color: #2196F3;
}

.delete-button:hover {
    color: #F44336;
}

.no-transactions {
    text-align: center;
    color: #666;
    padding: 20px;
    font-size: 14px;
}

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    min-width: 250px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-left: 4px solid #FFC107;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.alert.show {
    opacity: 1;
    transform: translateX(0);
}

.alert.error {
    border-left-color: #f44336;
}

.alert.warning {
    border-left-color: #FFC107;
}

.alert.success {
    border-left-color: #4CAF50;
}

.alert.info {
    border-left-color: #2196F3;
}

.alert-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    min-height: 50px;
}

.alert-message {
    margin: 0;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.alert-close:hover {
    color: #333;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    padding-left: 0;
}

.company-name {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Sidebar Styles */
.sidebar {
    width: 60px;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: width 0.3s ease;
    overflow: hidden;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

.sidebar:hover {
    width: 250px;
}

.sidebar:hover ~ .container {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

.menu-toggle {
    display: none;
}

.sidebar-content {
    padding: 20px 0;
    width: 250px;
}

.user-container {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    width: 100%;
    overflow: hidden;
    z-index: 1002;
    position: relative;
}

.user-icon {
    font-size: 28px;
    min-width: 30px;
}

.user-greeting {
    margin-left: 15px;
    font-weight: 500;
    color: #2b2c2b;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .user-greeting {
    opacity: 1;
}

.sidebar:not(:hover) .user-container {
    justify-content: center;
    padding: 15px 0 20px;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 5px;
    position: relative;
    width: 100%;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.menu-item a:hover {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.menu-item.active a {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.menu-item .icon {
    margin-right: 15px;
    font-size: 20px;
    min-width: 20px;
    text-align: center;
}

.category-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    margin-right: 5px;
    border-radius: 12px;
    background-color: #f1f1f1;
    color: #444;
}

.payment-method-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    margin-right: 5px;
    border-radius: 12px;
    background-color: #e0f7fa;
    color: #00838f;
}

.income .category-badge {
    background-color: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
}

.expense .category-badge {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

/* Search and Filter Styles */
.search-filters {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.search-box {
    display: flex;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
}

.search-box button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #45a049;
}

.date-range-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.date-range-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range-item label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.date-range-item input {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

#applyDateFilter, #resetDateFilter {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

#applyDateFilter {
    background-color: #4CAF50;
    color: white;
}

#applyDateFilter:hover {
    background-color: #45a049;
}

#resetDateFilter {
    background-color: #f1f1f1;
    color: #666;
}

#resetDateFilter:hover {
    background-color: #e0e0e0;
}

/* Theme Toggle Styles */
.theme-toggle-container {
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    width: 60px;
    position: fixed;
    bottom: 20px;
    left: 0;
    transition: width 0.3s ease;
    z-index: 1010;
}

.sidebar:hover .theme-toggle-container {
    width: 250px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: none;
    background-color: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    width: 100%;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.theme-toggle:hover {
    background-color: #e0e0e0;
}

.theme-icon {
    font-size: 16px;
}

.dark-icon {
    display: inline-block;
}

.light-icon {
    display: none;
}

.theme-text {
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .theme-text {
    opacity: 1;
}

/* Dark theme styles */
body.dark-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #f0f0f0;
}

/* Dark mode container styles */
body.dark-theme .container {
    background-color: rgba(24, 28, 37, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Dark mode sidebar styles */
body.dark-theme .sidebar {
    background-color: #121212;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

body.dark-theme .user-greeting {
    color: #e0e0e0;
}

body.dark-theme .menu-item a {
    color: #aaa;
}

body.dark-theme .menu-item a:hover {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

body.dark-theme .menu-item.active a {
    background-color: rgba(76, 175, 80, 0.2);
}

/* Dark mode form styles */
body.dark-theme .input-section {
    background-color: #252836;
}

body.dark-theme h1, 
body.dark-theme h2, 
body.dark-theme h3 {
    color: #e0e0e0;
}

body.dark-theme .company-name {
    color: #aaa;
}

body.dark-theme label {
    color: #bbb;
}

body.dark-theme input, 
body.dark-theme select {
    background-color: #333;
    border-color: #444;
    color: #ddd;
}

body.dark-theme input:focus, 
body.dark-theme select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Dark mode summary styles */
body.dark-theme .summary-box {
    background-color: #252836;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.dark-theme .summary-item {
    border-bottom-color: #444;
}

body.dark-theme .summary-item.total {
    border-top-color: #444;
}

body.dark-theme .label {
    color: #bbb;
}

/* Dark mode transaction styles */
body.dark-theme .transactions-section {
    background-color: #252836;
}

body.dark-theme .transaction-filters {
    border-bottom-color: #444;
}

body.dark-theme .filter-button {
    background-color: #333;
    border-color: #444;
    color: #bbb;
}

body.dark-theme .filter-button:hover {
    border-color: #4CAF50;
}

body.dark-theme .search-filters {
    background-color: #252836;
}

body.dark-theme .search-box input {
    background-color: #333;
    border-color: #444;
    color: #ddd;
}

body.dark-theme .transaction-item {
    background-color: #333;
}

body.dark-theme .transaction-item .description strong {
    color: #ddd;
}

body.dark-theme .transaction-item .description small {
    color: #999;
}

body.dark-theme .transaction-item .amount {
    background-color: #252836;
}

body.dark-theme .category-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-theme .payment-method-badge {
    background-color: rgba(0, 131, 143, 0.2);
    color: #80deea;
}

body.dark-theme .income .category-badge {
    background-color: rgba(76, 175, 80, 0.2);
    color: #a5d6a7;
}

body.dark-theme .expense .category-badge {
    background-color: rgba(244, 67, 54, 0.2);
}

/* Dark mode theme toggle */
body.dark-theme .theme-toggle {
    background-color: #333;
    color: #ddd;
}

body.dark-theme .theme-toggle:hover {
    background-color: #444;
}

body.dark-theme .dark-icon {
    display: none;
}

body.dark-theme .light-icon {
    display: inline-block;
}

/* Loading Indicator */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark Mode styles for new elements */
body.dark-theme .loading-overlay {
    background-color: rgba(30, 30, 30, 0.9);
}

body.dark-theme .loading-text {
    color: #ffffff;
}

body.dark-theme .info-text {
    color: #aaaaaa;
}

/* Dark mode alert styles */
body.dark-theme .alert {
    background-color: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-left-color: #000000;
}

body.dark-theme .alert.error {
    border-left-color: #f44336;
}

body.dark-theme .alert.warning {
    border-left-color: #FFC107;
}

body.dark-theme .alert.success {
    border-left-color: #4CAF50;
}

body.dark-theme .alert.info {
    border-left-color: #2196F3;
}

body.dark-theme .alert-message {
    color: #e0e0e0;
}

body.dark-theme .alert-close {
    color: #aaa;
}

body.dark-theme .alert-close:hover {
    color: #fff;
}

@media screen and (max-width: 1200px) {
    .container {
        max-width: 100%;
        width: calc(100% - 60px);
        grid-template-columns: 1fr 1.2fr;
        gap: 20px;
        margin-left: 60px;
    }
}

@media screen and (max-width: 992px) {
    .container {
        width: calc(100% - 60px);
        grid-template-columns: 1fr;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        padding: 20px;
    }
    
    .left-section, .right-section {
        width: 100%;
        padding-right: 0;
    }
    
    .right-section {
        margin-top: 20px;
    }
    
    .input-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .add-button {
        grid-column: span 2;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
        flex-direction: column;
    }
    
    .container {
        padding: 15px;
        gap: 15px;
        width: 100%;
        margin-left: 0;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .date-selector {
        width: 100%;
    }
    
    .date-input {
        width: 100%;
    }
    
    .input-section {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    
    .add-button {
        grid-column: span 1;
    }
    
    .summary-section {
        grid-template-columns: 1fr;
    }
    
    .summary-box {
        padding: 15px;
    }
    
    .transaction-filters {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .filter-button {
        flex: 1 1 calc(50% - 5px);
        margin-bottom: 5px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .date-range-filter {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .date-range-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #applyDateFilter, #resetDateFilter {
        grid-column: span 1;
        padding: 8px;
        font-size: 12px;
    }
    
    .transaction-item {
        padding: 15px;
    }
    
    .transaction-item .description strong {
        font-size: 14px;
    }
}

@media screen and (max-width: 576px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 230px;
        transition: transform 0.3s ease;
        position: fixed;
        z-index: 1000;
        height: 100vh;
    }
    
    .sidebar.active {
        transform: translateX(0);
        width: 230px;
    }
    
    .container {
        margin-left: 0;
        width: 100%;
        padding: 15px;
        gap: 10px;
        border-radius: 0;
        height: auto;
        min-height: 100vh;
        transition: transform 0.3s ease;
        padding-top: 70px; /* Account for navbar */
    }
    
    .sidebar:hover ~ .container {
        margin-left: 0;
    }
    
    .theme-toggle-container {
        width: 100%;
        position: relative;
        bottom: auto;
        left: auto;
        padding: 15px 20px;
    }
    
    .theme-text {
        opacity: 1;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .company-name {
        font-size: 12px;
    }
    
    .navbar .alt-sidebar-toggle {
        transition: transform 0.3s ease;
    }
    
    body.sidebar-open .navbar .alt-sidebar-toggle {
        transform: rotate(90deg);
    }
    
    body.sidebar-open .navbar {
        transform: translateX(230px);
    }
    
    body.sidebar-open .container {
        transform: none;
    }
    
    .theme-toggle-container {
        display: none;
    }
    
    .user-container {
        margin-top: 0;
        padding-top: 70px;
    }
    
    .user-greeting {
        opacity: 1 !important;
        display: block;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 45px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        padding: 0 15px;
        justify-content: space-between;
        z-index: 1001;
        transition: all 0.3s ease;
    }
    
    body.dark-theme .navbar {
        background-color: #121212;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }
    
    .alt-sidebar-toggle {
        position: relative;
        display: block;
        background: transparent;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    body.dark-theme .alt-sidebar-toggle {
        color: #fff;
    }
    
    .navbar-title {
        font-size: 18px;
        font-weight: 500;
        color: #2c3e50;
    }
    
    body.dark-theme .navbar-title {
        color: #e0e0e0;
    }
    
    .left-section {
        margin-top: 60px;
    }
    
    header {
        position: relative;
        margin-top: 0;
        padding-top: 0;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }
    
    .transaction-right {
        width: 100%;
        margin-top: 10px;
        justify-content: space-between;
    }
    
    .transaction-actions {
        opacity: 1;
    }
    
    .date-range-filter {
        grid-template-columns: 1fr;
    }
    
    .date-range-item {
        margin-bottom: 5px;
    }
    
    .date-range-item input {
        width: 100%;
    }
    
    #applyDateFilter, #resetDateFilter {
        width: 100%;
    }
    
    .theme-toggle-container {
        width: 100%;
        position: relative;
        bottom: auto;
        left: auto;
    }
    
    .theme-toggle {
        width: 100%;
        border-radius: 8px;
        padding: 8px 10px;
        justify-content: flex-start;
    }
    
    .theme-text {
        opacity: 1;
        display: inline-block;
    }
    
    input, select, button {
        font-size: 16px;
        height: 44px;
    }
    
    .alert {
        width: 85%;
        max-width: none;
        left: 7.5%;
        right: 7.5%;
        top: 60px;
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .user-greeting {
        opacity: 1;
        transition: none;
    }
    
    .sidebar:not(:hover) .user-container {
        justify-content: flex-start;
        padding: 15px 20px 20px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    label {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    input, select {
        padding: 10px;
    }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
    .container {
        height: auto;
        min-height: calc(100vh - 20px);
        margin-left: 0;
    }
    
    .sidebar {
        width: 0;
        height: 100%;
        overflow-y: auto;
    }
    
    .sidebar.active {
        width: 230px;
    }
    
    .menu-items {
        margin-bottom: 0;
    }
    
    .theme-toggle-container {
        position: relative;
        width: 100%;
        bottom: auto;
        padding: 20px 15px;
    }
    
    .navbar {
        height: 40px;
    }
    
    .left-section {
        margin-top: 50px;
    }
}

@media (hover: none) {
    .sidebar {
        width: 0;
    }
    
    .sidebar:hover {
        width: 0;
    }
    
    .sidebar.active {
        width: 230px;
    }
    
    .user-greeting {
        opacity: 1;
    }
    
    .transaction-actions {
        opacity: 1;
    }
    
    .action-button {
        padding: 8px;
        margin-left: 5px;
    }
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-backdrop.active {
    display: block;
}

body.sidebar-open .container {
    transform: translateX(230px);
}

@media screen and (min-width: 577px) {
    body.sidebar-open .container {
        transform: none;
    }
}

@media screen and (max-width: 400px) {
    .container {
        padding: 10px;
        width: 100%;
    }
    
    .input-section, .summary-box, .transactions-section {
        padding: 10px;
    }
    
    .date-input, 
    #startDate, 
    #endDate {
        font-size: 14px;
        padding: 8px;
    }
    
    .summary-box h3 {
        font-size: 16px;
    }
    
    .transaction-item {
        margin-bottom: 8px;
    }
    
    .transaction-item .amount {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .menu-item a {
        padding: 14px 20px;
    }
    
    .sidebar .menu-item .icon {
        font-size: 22px;
    }
    
    .filter-button {
        padding: 10px 8px;
        height: auto;
    }
    
    .navbar-title {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.001s !important;
        animation-duration: 0.001s !important;
    }
}

/* Navbar tema değiştirme butonu */
.theme-toggle-nav {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

body.dark-theme .theme-toggle-nav {
    color: #fff;
}

/* Navbar içindeki aksiyon butonları */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

@media screen and (min-width: 577px) {
    /* Masaüstünde navbar'ı gizle */
    .navbar {
        display: none;
    }
    
    /* Orijinal hamburger butonu görünür */
    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
    }
    
    body.dark-theme .sidebar-toggle {
        color: #fff;
    }
}

/* Hesap Bakiyeleri Sayfası Stilleri */
.accounts-page {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 2fr 2fr;
    gap: 15px;
}

.accounts-page header {
    width: 100%;
    margin-bottom: 10px;
    grid-column: 1 / -1;
}

.accounts-container {
    display: contents;
}

.accounts-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 100px);
    overflow: hidden;
    flex: 1;
    min-width: 400px;
}

.accounts-summary {
    margin-bottom: 10px;
}

.accounts-summary .total-balance {
    background: linear-gradient(135deg, #f9f9f9 0%, #f1f1f1 100%);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.accounts-summary h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.total-amount {
    font-size: 2rem;
    font-weight: bold;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.account-card {
    background-color: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
    min-height: 80px;
    width: 100%;
}

.account-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.account-card.positive-balance {
    border-left: 4px solid #4CAF50;
}

.account-card.negative-balance {
    border-left: 4px solid #F44336;
}

.account-icon {
    font-size: 24px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    margin-right: 5px;
}

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

.account-details h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-balance {
    font-size: 18px;
    font-weight: 700;
    word-break: break-word;
}

.account-balance.positive {
    color: #4CAF50;
}

.account-balance.negative {
    color: #F44336;
}

.recent-transactions {
    background-color: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    height: auto;
    max-height: calc(100vh - 120px);
}

.recent-transactions h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    padding-bottom: 8px;
    color: #333;
    border-bottom: 1px solid #eee;
}

#recent-transactions-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    max-height: 500px;
}

/* Hide pagination on account page recent transactions */
.accounts-page .pagination-container {
    display: none !important;
}

.accounts-page #recent-transactions-list .transaction-item:nth-child(n+11) {
    display: none;
}

/* Responsive design for accounts page */
@media (max-width: 1200px) {
    .accounts-page {
        grid-template-columns: 1fr 1fr;
    }
    
    .accounts-info {
        min-width: auto;
    }
}

@media (max-width: 992px) {
    .accounts-page {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .accounts-page .container {
        display: flex;
        flex-direction: column;
        grid-template-columns: unset;
        height: auto;
    }
    
    .accounts-container {
        display: flex;
        flex-direction: column;
    }
    
    .accounts-info {
        max-height: none;
        min-height: 450px;
    }
    
    .accounts-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        max-height: none;
    }
    
    .account-card {
        min-height: 70px;
    }
    
    .recent-transactions {
        min-height: auto;
        max-height: 500px;
        margin-top: 10px;
    }
    
    #recent-transactions-list {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .accounts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .account-card {
        padding: 12px;
    }
    
    .account-details h3 {
        font-size: 14px;
    }
    
    .account-balance {
        font-size: 16px;
    }
    
    .account-icon {
        font-size: 20px;
        min-width: 35px;
        height: 35px;
    }
    
    .total-amount {
        font-size: 2rem;
    }
}

#printAccountsPdfButton {
    background-color: #2196F3;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

#printAccountsPdfButton:hover {
    background-color: #0b7dda;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.total-amount.positive {
    color: #4CAF50;
}

.total-amount.negative {
    color: #F44336;
}

/* Dark Mode Styles for Accounts Page */
body.dark-theme .accounts-page {
    color: #e0e0e0;
}

body.dark-theme .accounts-summary .total-balance {
    background: linear-gradient(135deg, #2c2c2c 0%, #222222 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

body.dark-theme .accounts-summary h3 {
    color: #e0e0e0;
}

body.dark-theme .account-card {
    background-color: #252836;
    border-color: #333;
}

body.dark-theme .account-details h3 {
    color: #e0e0e0;
}

body.dark-theme .account-icon {
    background-color: #333;
}

body.dark-theme .recent-transactions {
    background-color: #252836;
}

body.dark-theme .recent-transactions h3 {
    color: #e0e0e0;
    border-bottom-color: #333;
}

@media (max-width: 1200px) {
    .accounts-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    .accounts-page {
        display: flex;
        flex-direction: column;
    }
    
    .accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .account-card {
        min-height: 65px;
    }
    
    .recent-transactions {
        width: 100%;
    }
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 15px;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-button {
    background-color: #f9f9f9;
    border: 1px solid #eaeaea;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 40px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.pagination-button:hover:not(:disabled) {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pagination-button.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(76, 175, 80, 0.2);
}

.pagination-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* Dark mode pagination styles */
body.dark-theme .pagination-button {
    background-color: #2a2d3e;
    color: #e0e0e0;
    border-color: #3a3f51;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.dark-theme .pagination-button:hover:not(:disabled) {
    background-color: #333948;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

body.dark-theme .pagination-button.active {
    background-color: #4CAF50;
    border-color: #388E3C;
    box-shadow: 0 3px 6px rgba(76, 175, 80, 0.3);
}

@media screen and (max-width: 768px) {
    .pagination-container {
        gap: 6px;
        margin-top: 20px;
    }
    
    .pagination-button {
        padding: 8px 12px;
        min-width: 36px;
        font-size: 13px;
    }
}

@media screen and (max-width: 576px) {
    .pagination-container {
        gap: 5px;
    }
    
    .pagination-button {
        padding: 7px 10px;
        min-width: 32px;
        font-size: 12px;
    }
}

/* Yedekler Sayfası Stilleri */
.backups-page {
    padding: 20px;
    width: 100%;
}

.backups-container {
    margin-top: 20px;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.backups-list {
    margin-top: 20px;
}

.backup-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.backup-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.backup-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.backup-icon {
    font-size: 24px;
    color: #4CAF50;
}

.backup-details {
    display: flex;
    flex-direction: column;
}

.backup-date {
    font-weight: 500;
    font-size: 16px;
    color: #333;
}

.backup-count {
    font-size: 14px;
    color: #666;
}

.backup-actions {
    display: flex;
    gap: 8px;
}

.backup-button.restore-button {
    background-color: #FF9800;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border: none;
}

.backup-button.restore-button:hover {
    background-color: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(255, 152, 0, 0.3);
}

.no-backups {
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #666;
}

.manual-backup-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px auto;
    transition: all 0.3s ease;
}

.manual-backup-button:hover {
    background-color: #3d8b40;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.backup-details-date {
    font-weight: bold;
}

.backup-details-time {
    color: #666;
    font-size: 13px;
}

/* Dark mode styles for backups page */
body.dark-theme .backups-container {
    background-color: #252836;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .backup-item {
    background-color: #1e1e2d;
    border-left: 4px solid #4CAF50;
}

body.dark-theme .backup-date {
    color: #e0e0e0;
}

body.dark-theme .backup-count {
    color: #aaa;
}

body.dark-theme .backup-button.restore-button {
    background-color: #FF9800;
}

body.dark-theme .backup-button.restore-button:hover {
    background-color: #F57C00;
}

body.dark-theme .no-backups {
    color: #aaa;
}

body.dark-theme .manual-backup-button {
    background-color: #388E3C;
}

body.dark-theme .manual-backup-button:hover {
    background-color: #2E7D32;
}

body.dark-theme .backup-details-time {
    color: #999;
}

#passwordGroup {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#passwordGroup label {
    display: block;
    margin-bottom: 5px;
    color: #495057;
}

#passwordGroup input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

#passwordGroup input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 0 0 15px 0;
    color: #666;
}

.password-input-container {
    margin-bottom: 10px;
}

.password-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.password-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.modal-button.cancel {
    background-color: #e0e0e0;
    color: #333;
}

.modal-button.confirm {
    background-color: #3498db;
    color: white;
}

.modal-button:hover {
    opacity: 0.9;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

/* Debt Tracking Styles */
.debt-tracking-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.debt-form-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.debt-form-section h2 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.debts-tab-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-container {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab-button {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    position: relative;
    outline: none;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #2c3e50;
}

.tab-button.active {
    color: #3498db;
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3498db;
    border-radius: 3px;
}

.debt-summary {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.summary-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.summary-box h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-item.total {
    font-weight: bold;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 5px;
}

.value.income {
    color: #2ecc71;
}

.value.expense {
    color: #e74c3c;
}

.debt-filter-section {
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    gap: 10px;
}

.search-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.search-container select {
    width: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.debt-table-container {
    overflow-x: auto;
}

.debt-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.debt-table th {
    background-color: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.debt-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.debt-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.debt-table tbody tr:hover {
    background-color: #f0f4f8;
}

.debt-table .status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 80px;
}

.debt-table .status-active {
    background-color: #ffebee;
    color: #e53935;
}

.debt-table .status-partial {
    background-color: #fff8e1;
    color: #ff8f00;
}

.debt-table .status-paid {
    background-color: #e8f5e9;
    color: #43a047;
}

.debt-table .debt-receivable {
    color: #2ecc71;
    font-weight: 500;
}

.debt-table .debt-payable {
    color: #e74c3c;
    font-weight: 500;
}

.debt-actions {
    display: flex;
    gap: 8px;
}

.debt-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.debt-actions button:hover {
    background-color: #e0e0e0;
}

.debt-actions .edit-button {
    color: #3498db;
}

.debt-actions .delete-button {
    color: #e74c3c;
}

.debt-actions .paid-button {
    color: #2ecc71;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.add-button, .reset-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-button {
    background-color: #3498db;
    color: white;
}

.add-button:hover {
    background-color: #2980b9;
}

.reset-button {
    background-color: #f1f1f1;
    color: #333;
}

.reset-button:hover {
    background-color: #e0e0e0;
}

/* Borç takip sayfası için duyarlı tasarım ayarlamaları */
@media (max-width: 768px) {
    .debt-form-section, .debts-tab-section {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .tab-button {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .debt-table th, .debt-table td {
        padding: 10px;
        font-size: 14px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-container select {
        width: 100%;
    }
}

/* Tema Değişkenleri */
:root {
    --success-color: #28a745;
    --success-light: rgba(40, 167, 69, 0.15);
    --danger-color: #dc3545;
    --danger-light: rgba(220, 53, 69, 0.15);
    --danger-lightest: rgba(220, 53, 69, 0.05);
    --warning-color: #ffc107;
    --warning-hover: #e0a800;
    --warning-light: rgba(255, 193, 7, 0.15);
    --info-color: #17a2b8;
    --info-light: rgba(23, 162, 184, 0.15);
    --table-header-bg: #f8f9fa;
    --table-header-text: #495057;
    --table-hover: rgba(0, 0, 0, 0.03);
}

.dark-theme {
    --success-color: #28a745;
    --success-light: rgba(40, 167, 69, 0.2);
    --danger-color: #dc3545;
    --danger-light: rgba(220, 53, 69, 0.2);
    --danger-lightest: rgba(220, 53, 69, 0.1);
    --warning-color: #ffc107;
    --warning-hover: #e0a800;
    --warning-light: rgba(255, 193, 7, 0.2);
    --info-color: #17a2b8;
    --info-light: rgba(23, 162, 184, 0.2);
    --table-header-bg: #343a40;
    --table-header-text: #f8f9fa;
    --table-hover: rgba(255, 255, 255, 0.05);
}

/* Dark theme için özel düzenlemeler */
.dark-theme .debt-type.receivable {
    background-color: rgba(40, 167, 69, 0.2);
}

.dark-theme .debt-type.payable {
    background-color: rgba(220, 53, 69, 0.2);
}

.dark-theme .status-badge.active {
    background-color: rgba(255, 193, 7, 0.2);
}

.dark-theme .status-badge.partial {
    background-color: rgba(23, 162, 184, 0.2);
}

.dark-theme .status-badge.paid {
    background-color: rgba(40, 167, 69, 0.2);
}

.dark-theme .overdue-badge {
    background-color: rgba(220, 53, 69, 0.2);
}

.dark-theme tr.overdue {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Günlük Hesap Bakiyeleri Stilleri */
.daily-balances {
    margin-bottom: 20px;
}

.daily-balances h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #444;
    font-weight: 500;
}

.daily-balances-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.daily-balance-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid #e0e0e0;
}

.daily-balance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.daily-balance-card.daily-total {
    background-color: #f8f9ff;
    border-left: 4px solid #4a90e2;
}

.daily-account-icon {
    font-size: 1.8rem;
    margin-right: 15px;
}

.daily-account-details {
    flex: 1;
}

.daily-account-details h4 {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: #555;
    font-weight: 500;
}

.daily-account-balance {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.daily-account-balance.positive {
    color: #2ecc71;
}

.daily-account-balance.negative {
    color: #e74c3c;
}

/* Pozitif ve negatif bakiyelere göre kart renklendirmesi */
.daily-balance-card.positive-balance {
    border-left: 4px solid #2ecc71;
}

.daily-balance-card.negative-balance {
    border-left: 4px solid #e74c3c;
}

/* Responsive tasarım için düzenlemeler */
@media (max-width: 768px) {
    .daily-balances-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .daily-balance-card.daily-total {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .daily-balances-container {
        grid-template-columns: 1fr;
    }
    
    .daily-balance-card.daily-total {
        grid-column: span 1;
    }
}

/* Dark theme support for daily balances */
body.dark-theme .daily-balances h3 {
    color: #e0e0e0;
}

body.dark-theme .daily-balance-card {
    background-color: #2a2a3c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-left-color: #444;
}

body.dark-theme .daily-balance-card.daily-total {
    background-color: #262636;
    border-left-color: #4a90e2;
}

body.dark-theme .daily-account-details h4 {
    color: #b0b0b0;
}

body.dark-theme .daily-account-balance {
    color: #e0e0e0;
}