:root {
    --bg-dark: #0a0303;
    --panel-bg: rgba(15, 5, 5, 0.7);
    --panel-border: #4a1515;
    --header-red: #8b0000;
    --text-primary: #e0d0b0;
    --text-muted: #8c7b66;
    --danger-red: #e62e2e;
    --success-green: #4CAF50;

    --parchment-bg: #d4b886;
    --parchment-text: #4a1515;

    --cal-level-0: #201010;
    --cal-level-1: #8b4513;
    --cal-level-2: #cc5500;
    --cal-level-3: #ff4500;
    --cal-level-4: #ff0000;
}

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

body {
    background-color: var(--bg-dark);
    /* Karanlık, kırmızımsı korsan arka planı */
    background-image:
        radial-gradient(circle at center, rgba(80, 0, 0, 0.2) 0%, rgba(10, 0, 0, 1) 80%),
        url('https://www.transparenttextures.com/patterns/black-paper.png');
    color: var(--text-primary);
    font-family: 'Roboto Condensed', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

.luffy-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: url('https://www.transparenttextures.com/patterns/stucco.png');
    opacity: 0.1;
}

.luffy-dashboard {
    width: 100%;
    max-width: 1500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

/* ================= HEADER ================= */
.luffy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px 20px;
    border: 3px solid var(--panel-border);
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 450px;
    background-image: url('../images/header1.png');
    background-position: center center;
    /* Görselin kendisindeki siyah letterbox şeritlerini kesmek için dikeyde %135 esnetiyoruz */
    background-size: 100% 135%;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.luffy-header::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Sağ ve sol kenarlara karartma uygulayarak Wanted ve Durum kutularının okunmasını kolaylaştırır */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

.header-left {
    display: flex;
    gap: 20px;
    z-index: 2;
}

.wanted-poster {
    background: var(--parchment-bg);
    padding: 10px;
    border: 3px solid #301010;
    width: 140px;
    text-align: center;
    color: var(--parchment-text);
    font-family: 'Pirata One', cursive;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    transform: rotate(-2deg);
}

.wanted-title {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--parchment-text);
    margin-bottom: 5px;
}

.wanted-img {
    width: 100%;
    height: auto;
    border: 1px solid var(--parchment-text);
    background: #000;
}

.wanted-name {
    font-size: 0.8rem;
    line-height: 1.1;
    margin: 5px 0;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold;
}

.wanted-bounty {
    font-size: 1.1rem;
    border-top: 1px solid var(--parchment-text);
    padding-top: 3px;
}

.title-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 3.5rem;
    color: var(--danger-red);
    line-height: 0.9;
    text-shadow: 2px 2px 0 #000, 4px 4px 5px rgba(0, 0, 0, 0.8);
    transform: rotate(-3deg);
}

.dashboard-text {
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
}

.subtitle {
    margin-top: 15px;
    font-size: 1rem;
    color: var(--danger-red);
    font-weight: bold;
    letter-spacing: 1px;
}

.subtitle span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.header-center {
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    width: 450px;
    height: 350px;
    /* Tasarımcınız luffy-center.png'yi assets/images içine atınca burası otomatik dolacak. */
    background: url('../images/luffy-center.png') center bottom/contain no-repeat;
    z-index: 10;
    pointer-events: none;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    z-index: 2;
    position: relative;
}

.ship-placeholder {
    position: absolute;
    top: -30px;
    right: -20px;
    width: 150px;
    height: 150px;
    /* Tasarımcınız ship.png'yi assets/images içine atınca gemi burada belirecek */
    background: url('../images/ship.png') center/contain no-repeat;
    z-index: -1;
    opacity: 0.9;
}

.system-status-box {
    position: relative;
    background: rgba(10, 0, 0, 0.9);
    padding: 12px 20px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    width: 340px;
    z-index: 1;
}

.system-status-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--danger-red);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    z-index: -2;
}

.system-status-box::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0a0303;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    z-index: -1;
}

.status-top {
    font-size: 1rem;
    color: #e0d0b0;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
    letter-spacing: 1px;
}

.status-mid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.status-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--danger-red);
    letter-spacing: 2px;
    line-height: 1;
    text-shadow: 0 0 10px rgba(230, 46, 46, 0.3);
}

.heartbeat-line {
    width: 80px;
    height: 35px;
    filter: drop-shadow(0 0 5px var(--danger-red));
}

.radar-circle {
    width: 70px;
    height: 70px;
    border: 2px solid #005500;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: #001100;
    flex-shrink: 0;
}

.radar-grid {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid #00aa00;
}

.radar-grid::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid #00aa00;
    border-radius: 50%;
}

.radar-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #00aa00;
}

.radar-cross {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #00aa00;
    z-index: 1;
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    background: conic-gradient(from 90deg at 0 0, rgba(0, 255, 0, 0) 0deg, rgba(0, 255, 0, 0.5) 90deg);
    transform-origin: 0 0;
    animation: radar 2s linear infinite;
    z-index: 2;
}

.radar-dot {
    position: absolute;
    top: 40%;
    left: 55%;
    width: 5px;
    height: 5px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff00;
    z-index: 3;
}

@keyframes radar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.status-bottom {
    font-size: 0.8rem;
    color: #e0d0b0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #4a1515;
    padding-top: 10px;
    font-weight: bold;
}

.red-dot {
    width: 10px;
    height: 10px;
    background: var(--danger-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--danger-red);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ================= MAIN CONTENT ================= */
.luffy-main {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 350px;
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.mt-20 {
    margin-top: 20px;
}

/* Panels Generic */
.luffy-panel {
    background: var(--panel-bg);
    border: 3px solid var(--panel-border);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    position: relative;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.luffy-panel::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
    border-radius: 4px;
}

.panel-header {
    background: linear-gradient(90deg, var(--header-red) 0%, rgba(139, 0, 0, 0) 100%);
    padding: 10px 15px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--panel-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sol Kolon (Günlük Rapor & Modüller) */
.daily-stats-list {
    list-style: none;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.daily-stats-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.daily-stats-list li:last-child {
    border: none;
    padding-bottom: 0;
}

.stat-icon {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--panel-border);
    border-radius: 5px;
    font-size: 1rem;
}

.stat-info {
    flex: 1;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
}

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

.stat-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--danger-red);
}

.stat-num.success {
    color: var(--success-green);
}

.stat-num.danger {
    color: var(--danger-red);
}

.active-modules-list {
    list-style: none;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.active-modules-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.active-modules-list li::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--danger-red);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--danger-red);
}

/* Orta Kolon (Parşömen Kartlar & Takvim) */
.luffy-center-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.parchment-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.parchment-card {
    background: var(--parchment-bg) url('https://www.transparenttextures.com/patterns/aged-paper.png');
    border: 4px solid #301010;
    padding: 15px;
    text-align: center;
    color: var(--parchment-text);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    position: relative;
}

.parchment-card::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.card-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.mini-skull {
    width: 20px;
    height: auto;
}

.card-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.5rem;
    line-height: 1;
    color: #a00;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    margin-bottom: 5px;
}

.card-desc {
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.calendar-panel {
    flex: 1;
}

.calendar-wrapper {
    padding: 20px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.calendar-graph {
    display: flex;
    gap: 4px;
}

.calendar-week {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-day {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    background-color: var(--cal-level-0);
    border: 1px solid rgba(0, 0, 0, 0.8);
}

.calendar-day[data-level="1"] {
    background-color: var(--cal-level-1);
}

.calendar-day[data-level="2"] {
    background-color: var(--cal-level-2);
}

.calendar-day[data-level="3"] {
    background-color: var(--cal-level-3);
}

.calendar-day[data-level="4"] {
    background-color: var(--cal-level-4);
    box-shadow: 0 0 5px var(--cal-level-4);
    border-color: #fff;
}

.calendar-legend {
    padding: 0 20px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}

.legend-list {
    display: flex;
    gap: 4px;
    list-style: none;
}

.legend-list li {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

/* ================= GÜN İÇİ ISI HARİTASI (24 SAAT) ================= */
.hourly-heatmap-panel {
    width: 100%;
}

.hourly-heatmap-container {
    padding: 20px 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    margin: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hourly-bars-wrapper {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 5px;
    height: 110px;
    align-items: flex-end;
}

.hourly-bar-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.hourly-bar-track {
    width: 100%;
    height: 100%;
    background: var(--cal-level-0);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-end;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hourly-bar-col:hover .hourly-bar-track {
    transform: scaleY(1.05);
    border-color: #ffd700;
}

.hourly-bar-fill {
    width: 100%;
    border-radius: 3px 3px 0 0;
    transition: height 0.4s ease, background-color 0.3s ease;
    background-color: var(--cal-level-0);
}

.hourly-bar-fill[data-level="1"] {
    background-color: var(--cal-level-1);
}

.hourly-bar-fill[data-level="2"] {
    background-color: var(--cal-level-2);
}

.hourly-bar-fill[data-level="3"] {
    background-color: var(--cal-level-3);
}

.hourly-bar-fill[data-level="4"] {
    background-color: var(--cal-level-4);
    box-shadow: 0 0 8px var(--cal-level-4);
}

.hourly-hours-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

/* Sağ Kolon (Loglar) */
.log-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.log-timeline {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.log-timeline::-webkit-scrollbar {
    width: 6px;
}

.log-timeline::-webkit-scrollbar-thumb {
    background: var(--panel-border);
}

.activity-card {
    display: flex;
    gap: 15px;
    position: relative;
}

.activity-card::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: -15px;
    width: 2px;
    background: var(--panel-border);
    z-index: 0;
}

.activity-card:last-child::before {
    display: none;
}

.activity-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #000;
    border: 2px solid var(--danger-red);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--danger-red);
    font-size: 1rem;
    z-index: 1;
}

.activity-content {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-time {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: block;
}

.activity-action {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--danger-red);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.activity-desc {
    font-size: 0.9rem;
    color: #fff;
    margin-top: 5px;
    line-height: 1.4;
}

/* ================= FOOTER ================= */
.luffy-footer {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 10px;
}

.footer-nav {
    display: flex;
    gap: 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--panel-bg);
    border: 2px solid var(--panel-border);
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(139, 0, 0, 0.5);
    border-color: var(--danger-red);
    color: #fff;
}

.nav-icon {
    font-size: 1.5rem;
}

.footer-quote {
    background: var(--parchment-bg) url('https://www.transparenttextures.com/patterns/aged-paper.png');
    border: 3px solid #301010;
    padding: 15px 30px;
    color: var(--parchment-text);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-quote span {
    color: #800;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Tooltip */
.global-tooltip {
    position: absolute;
    background: rgba(15, 0, 0, 0.95);
    border: 2px solid var(--danger-red);
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1000;
    display: none;
    text-align: center;
    transform: translateX(-50%);
}

.global-tooltip.show {
    display: block;
}

.global-tooltip strong {
    color: var(--danger-red);
    font-size: 1.2rem;
    font-family: 'Bebas Neue', sans-serif;
}

/* Responsive */
@media (max-width: 1200px) {
    .luffy-main {
        grid-template-columns: 250px 1fr 250px;
    }
}

@media (max-width: 992px) {
    .luffy-main {
        grid-template-columns: 1fr;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .header-center {
        display: none;
    }

    .luffy-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .header-left {
        flex-direction: column;
        align-items: center;
    }

    .parchment-cards {
        grid-template-columns: 1fr;
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-nav {
        flex-wrap: wrap;
    }

    .luffy-sidebar-left,
    .luffy-center-col,
    .luffy-sidebar-right,
    .luffy-panel,
    .calendar-panel,
    #calendarSection,
    #longTermStatsSection {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 768px) {
    .luffy-dashboard {
        padding: 10px;
        gap: 15px;
    }
    .luffy-main {
        gap: 15px;
    }
    .luffy-header {
        min-height: auto;
        padding: 15px;
        background-size: cover;
        background-position: center;
    }
    .header-left {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .wanted-poster {
        transform: none;
        width: 120px;
    }
    .main-title {
        font-size: 2.2rem;
        text-align: center;
        transform: none;
    }
    .dashboard-text {
        font-size: 2rem;
        text-align: center;
    }
    .system-status-box {
        width: 100%;
        clip-path: none;
    }
    .system-status-box::before, .system-status-box::after {
        clip-path: none;
    }
    .luffy-footer {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .footer-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    .nav-item {
        padding: 10px 5px;
        font-size: 1rem;
        text-align: center;
    }
    .footer-quote {
        width: 100%;
        font-size: 0.95rem;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .period-selector {
        width: 100%;
        justify-content: space-between;
    }
    .period-btn {
        flex: 1;
        text-align: center;
    }
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
    .activity-card {
        gap: 10px;
    }
    .activity-content {
        padding: 8px;
    }
    .activity-desc {
        font-size: 0.85rem;
    }
}

/* Tam Ekran Tuşu */
.fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(15, 5, 5, 0.85);
    border: 2px solid var(--panel-border);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.fullscreen-btn:hover {
    background: var(--danger-red);
    color: #fff;
    border-color: var(--danger-red);
    box-shadow: 0 0 15px var(--danger-red);
    transform: scale(1.1);
}

/* Period Selector (Günlük Rapor Seçenekleri) */
.period-selector {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px;
    border-radius: 5px;
    border: 1px solid var(--panel-border);
}
.period-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}
.period-btn:hover {
    color: var(--text-primary);
}
.period-btn.active {
    background: var(--danger-red);
    color: #fff;
    box-shadow: 0 0 5px var(--danger-red);
}

/* ================= TABS SYSTEM ================= */
/* Repolar Sekmesi */
.tab-repos .luffy-sidebar-left {
    display: block !important;
}
.tab-repos .luffy-sidebar-left #statsSection {
    display: none !important;
}
.tab-repos .luffy-center-col,
.tab-repos .luffy-sidebar-right {
    display: none !important;
}
.tab-repos .luffy-main {
    grid-template-columns: 1fr;
}

/* İstatistikler Sekmesi */
.tab-stats .luffy-sidebar-left,
.tab-stats .luffy-sidebar-right {
    display: none !important;
}
.tab-stats .luffy-main {
    grid-template-columns: 1fr;
}
.tab-stats .luffy-center-col #longTermStatsSection {
    display: grid !important;
}
.tab-stats .luffy-center-col #calendarSection {
    display: block !important;
}
.tab-stats .luffy-center-col #avgStatsSection {
    display: block !important;
}

/* Aktivite Sekmesi */
.tab-activity .luffy-sidebar-left,
.tab-activity .luffy-center-col {
    display: none !important;
}
.tab-activity .luffy-sidebar-right {
    display: block !important;
}
.tab-activity .luffy-main {
    grid-template-columns: 1fr;
}
.tab-activity .luffy-sidebar-right .log-panel {
    max-height: none;
}
.tab-activity .luffy-sidebar-right .log-timeline {
    max-height: 800px;
}

/* Ayarlar Sekmesi */
.tab-settings .luffy-sidebar-left,
.tab-settings .luffy-sidebar-right {
    display: none !important;
}
.tab-settings .luffy-main {
    grid-template-columns: 1fr;
}
.tab-settings .luffy-center-col #settingsSection {
    display: block !important;
}
.tab-settings .luffy-center-col #longTermStatsSection,
.tab-settings .luffy-center-col #calendarSection,
.tab-settings .luffy-center-col #avgStatsSection {
    display: none !important;
}

/* Ortalamalar Paneli Tasarımı */
.avg-stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.avg-card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.avg-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dotted rgba(74, 21, 21, 0.3);
    padding: 8px 0;
    font-size: 0.95rem;
    font-weight: bold;
}

.avg-stat-row:last-of-type {
    border-bottom: none;
}

.avg-label {
    color: var(--parchment-text);
}

.avg-val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: #a00;
}

.avg-val.big-val {
    font-size: 2.5rem;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.avg-stat-row.single-row {
    justify-content: center;
    border-bottom: none;
    padding: 15px 0;
}

/* Günlük Log Sekmesi */
.tab-daily .luffy-sidebar-left,
.tab-daily .luffy-sidebar-right {
    display: none !important;
}
.tab-daily .luffy-main {
    grid-template-columns: 1fr;
}
.tab-daily .luffy-center-col #dailyLogSection {
    display: block !important;
}
.tab-daily .luffy-center-col #longTermStatsSection,
.tab-daily .luffy-center-col #calendarSection,
.tab-daily .luffy-center-col #avgStatsSection,
.tab-daily .luffy-center-col #settingsSection {
    display: none !important;
}

/* Günlük Çalışma Günlüğü Paneli Tasarımı */
.daily-log-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--panel-border);
}

.summary-box {
    background: rgba(40, 10, 10, 0.8);
    border: 1px solid var(--panel-border);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.summary-box .box-title {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.summary-box .box-val {
    display: block;
    font-size: 1.3rem;
    color: var(--gold-accent);
    font-family: 'Permanent Marker', cursive;
    margin-top: 4px;
}

.daily-log-controls {
    padding: 15px;
    position: relative;
    border-bottom: 1px solid var(--panel-border);
}

.daily-log-controls .search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--danger-red);
}

.daily-log-controls .luffy-input {
    width: 100%;
    padding: 10px 15px 10px 38px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.daily-log-controls .luffy-input:focus {
    border-color: var(--danger-red);
    outline: none;
    box-shadow: 0 0 10px rgba(224, 0, 0, 0.4);
}

.daily-log-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    max-height: 650px;
    overflow-y: auto;
}

/* Custom Scrollbar for Daily Log */
.daily-log-list::-webkit-scrollbar {
    width: 6px;
}
.daily-log-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
.daily-log-list::-webkit-scrollbar-thumb {
    background: var(--danger-red);
    border-radius: 3px;
}

.daily-item-card {
    background: url('../images/parchment_bg.png') repeat, #d2b48c;
    background-size: cover;
    border: 2px solid var(--parchment-border);
    border-radius: 6px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.daily-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(224, 0, 0, 0.3);
}

.daily-item-card.is-today {
    border: 2px solid var(--danger-red);
    box-shadow: 0 0 15px rgba(224, 0, 0, 0.5);
}

.daily-item-card.is-today::before {
    content: 'BUGÜN';
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--danger-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.daily-info-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.daily-date {
    font-family: 'Permanent Marker', cursive;
    font-size: 1rem;
    color: var(--parchment-text);
}

.daily-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #5a2020;
    font-weight: 600;
}

.daily-badge {
    background: rgba(160, 0, 0, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(160, 0, 0, 0.3);
}

.daily-info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 140px;
}

.daily-time-str {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #900;
    letter-spacing: 0.5px;
}

.daily-progress-bg {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.daily-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #d32f2f, #f57c00);
    border-radius: 4px;
    transition: width 0.4s ease;
}

@media (max-width: 768px) {
    .avg-stats-container,
    .daily-log-summary {
        grid-template-columns: 1fr;
    }
    .daily-item-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .daily-info-right {
        width: 100%;
        align-items: flex-start;
    }
}