:root {
    --bg-main: #121212;
    --bg-container: #1e1e1e;
    --bg-card: #2a2a2a;
    --bg-card-hover: #333333;
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-primary: #10b981; /* Emerald */
    --accent-hover: #059669;
    --accent-danger: #ef4444;
    --accent-danger-hover: #dc2626;
    
    --border-color: #374151;
    --border-radius: 12px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--accent-primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

.display-none {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto 80px auto;
    padding: 20px;
    background-color: var(--bg-container);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.25rem;
}

.include-container {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

.include-container::-webkit-scrollbar {
    width: 6px;
}

.include-container::-webkit-scrollbar-track {
    background: transparent;
}

.include-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.days {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.days_date {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.days_content {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.record-link {
    transition: background-color 0.2s ease;
}

.record-link:hover {
    background-color: var(--bg-card-hover);
}

.record-link:last-child .days_content {
    border-bottom: none;
}

.category {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.amount {
    font-weight: 500;
    color: var(--text-primary);
}

.summary {
    color: var(--text-secondary);
}

.summary_day {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Button Styles */
.button_style {
    display: inline-block;
    padding: 8px 16px;
    color: #fff;
    background-color: var(--accent-primary);
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.button_style:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.button_style:active {
    transform: translateY(0);
}

.disabled_btn {
    background-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

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

.btn-delete:hover {
    background-color: var(--accent-danger-hover);
}

/* Footer Navigation */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    z-index: 100;
}

.footer-icon {
    width: 28px;
    height: 28px;
    fill: var(--text-secondary);
    transition: fill 0.2s ease, transform 0.2s ease;
}

.footer a:hover .footer-icon,
.footer a.active .footer-icon {
    fill: var(--accent-primary);
    transform: translateY(-2px);
}

/* Inputs and Forms */
input[type="text"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--bg-container);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 350px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-danger);
}

.modal-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.msg-success {
    color: var(--accent-primary);
    padding: 10px;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    margin-bottom: 15px;
}

.msg-error {
    color: var(--accent-danger);
    padding: 10px;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Utilities */
hr {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}
.margin-bottom-20 {
    margin-bottom: 20px;
}
.cursor-pointer {
    cursor: pointer;
}