* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    padding: 15px;
    padding-bottom: 120px;
    min-height: 100vh;
    color: #ffffff;

    /* 🎨 Arkaplan */
    background:
        radial-gradient(circle at 20% 30%, rgba(180, 0, 0, 0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(120, 0, 0, 0.12), transparent 45%),
        linear-gradient(135deg, #0a0a0a, #111, #0a0a0a);

    background-size: 200% 200%;
    animation:
        bgPulse 14s ease-in-out infinite,
        pageEnter 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;

    /* 🎬 Açılış animasyonu başlangıç hali */
    opacity: 0;
    transform: scale(0.95);
    filter: blur(6px);
}

@keyframes bgPulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0% {
        text-shadow: 0 0 0 rgba(255, 0, 0, 0.2);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 14px rgba(255, 0, 0, 0.8);
        transform: scale(1.05);
    }
    100% {
        text-shadow: 0 0 0 rgba(255, 0, 0, 0.2);
        transform: scale(1);
    }
}

.glow-pulse {
    animation: glowPulse 0.6s ease;
}


.card,
table,
input {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 200, 150, 0.08);
}

.page {
    opacity: 0;
    transform: scale(0.97);
    animation: pageEnter 0.6s ease forwards;
}

@keyframes pageEnter {
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

#totalCash,
#totalVisa,
#totalAll {
    font-weight: bold;
    color: #ff3b3b;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.35);
}


/* HEADER */
.header {
    background: #920606;
    color: #ffffff;
    padding: 22px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 15px;
    margin-left: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.h1 {
    margin: 0;
    font-size: 60px;
    font-weight: bold;
}

.logo {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 10px;
    left: 45px;
    margin-top: 6px;
}

.title {
    margin: 0;
    font-size: 35px;
    font-weight: bold;
    margin-left: 50px;
}

/* DATE NAV */
.dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}


.dot-left,
.dot-right {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ff0d00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}


#currentDate {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* FORM */
.form {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 100px;
}

.form select,
.form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
}

.form input {
    background: #ffffff;
    color: #000000;
}

.form select {
    background: #ffffff;
    color: #000000;
}

/* BUTTON */

button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    background: #920606;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

button:active {
    transform: scale(0.97);
}

.button-row {
    display: flex;
    gap: 10px;
}

.button-row button {
    width: 100%;
}

/* TOTALS */
.totals {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 10px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 18px;
}

.total-row:last-child {
    margin-bottom: 0;
    font-weight: bold;
}

.income {
    color: #27c93f;
}

.expense {
    color: #ff5f56;
}

.balance {
    color: #ff0000;
    font-weight: 700;
   
}

/* MENU TRIGGER */
.menu-trigger {
    position: fixed;
    top: 15px;
    left: 10px;

    width: 36px;
    height: 36px;

    border-left: 3px solid #ff0000;
    color: #ff0000;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
}

/* SIDE MENU */
.side-menu {
    position: fixed;
    top: 0;
    left: -220px;
    /* kapalı hali */
    width: 220px;
    height: 100%;

    background: #2a2a2a;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);

    padding-top: 60px;
    transition: left 0.25s ease;
    z-index: 1000;
}

/* AÇIK HAL */
.side-menu.open {
    left: 0;
}

/* MENU ITEM */
.menu-item {
    padding: 15px;
    font-size: 16px;
    color: #ffffff;
    border-bottom: 1px solid #3a3a3a;
    cursor: pointer;
}

.menu-item:active {
    background: #3a3a3a;
}

#summaryTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#summaryTable th,
#summaryTable td {
    padding: 10px;
    border-bottom: 1px solid #333;
    text-align: center;
}

#summaryTable tfoot {
    background: #111;
    font-weight: bold;
}

#monthPicker {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    background: #ffffff;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: bold;
}

#currentDate {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    padding: 10px;
    border-radius: 6px;
    background: #ffffff;
    color: #000;
    font-weight: 600;
}

#yearSelector {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    background: #ffffff;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: bold;
}

#yearlyTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-left: auto;
}

.danger-btn {
    background: #920606;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    width: 100%;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.danger-btn:active {
    transform: scale(0.97);
}

#removeBtn {
    background: #3a3a3a;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    width: 100%;
    font-size: 16px;    
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.export-item {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #3a3a3a;
    background: #2a2a2a;
}

.import-item {
    position: absolute;
    bottom: 40px;
    width: 100%;
    border-top: 1px solid #3a3a3a;
    background: #2a2a2a;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.summary-table th,
.summary-table td {
    padding: 10px;
    border-bottom: 1px solid #333;
    text-align: center;
}

.summary-table tfoot {
    background: #111;
    font-weight: bold;
}

.summary-table td strong {
    color: #ff5555;
}

#supplierTitle {
    font-size: 28px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.bg-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0, transparent 40%);
    animation: floatBg 20s linear infinite;
}

@keyframes floatBg {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

main, .container {
    backdrop-filter: blur(6px);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.6);
    }
    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 12px rgba(0, 200, 150, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 200, 150, 0);
    }
}

.pulse {
    animation: pulse 0.6s ease-out;
}

h3 {
  color: #ff0000;
}