﻿html[data-bs-theme="dark"]:root {
    --bg: #0f1724;
    --card: #0b1220;
    --muted: #94a3b8;
    --accent: #8EC81C;
    --accent-2: #8EC81C;
    --surface: #071025;
    --white: #e6eef8;
    --danger: #ef4444;
    --radius: 12px;
    --shadow: 0 6px 18px rgba(2,6,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

html[data-bs-theme="light"]:root {
    --bg: #f8fafc; /* világos háttér */
    --card: #ffffff; /* világos kártya */
    --muted: #6b7280; /* halvány szöveg */
    --accent: #8EC81C; /* kék accent */
    --accent-2: #8EC81C; /* lila accent */
    --surface: #FAFAFA; /* világos felület */
    --white: #111827; /* fő szöveg sötét */
    --danger: #dc2626; /* piros figyelmeztetés */
    --radius: 12px;
    --shadow: 0 6px 18px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}


.picker-wrap {
    background: var(--surface);
    padding: 0px;
    display: inline-flex;
    gap: 18px;
    font-size: 12px;
    flex-direction: column;
    width: auto;
    height: fit-content;
}

.controls {
    display: flex;
    gap: 14px
}

.picker-dropdown {
    position: absolute;
    top: 56px;
    margin-top: 10px;
    background: var(--surface);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow);
    z-index: 10;
    display: inline-flex;
}

.label {
    font-size: 13px;
    color: var(--muted);
}

button.day {
    background-color: transparent;
    border: none;
}

.picker-wrap .input {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 6px 6px;
    border-radius: 10px;
    min-width: 0;
    color: var(--white);
    box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
    width: 86px;
}
.time-picker .input {
    width: 66px;
}

    .input:focus {
        outline: 2px solid rgba(96,165,250,0.15);
        border-color: rgba(96,165,250,0.4)
    }

.preset-list {
    display: flex;
    flex-direction: column;
}

.preset {
    background: linear-gradient(90deg, rgba(255,255,255,0.02), transparent);
    padding: 4px 10px;
    border-radius: 9px;
    font-size: 12px;
    color: var(--white);
    cursor: pointer;
    border: 1px solid transparent
}

    .preset:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(7,16,37,0.6)
    }

.actions {
    display: flex;
    gap: 10px
}

.picker-dropdown .btn {
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    font-weight: 600
}

    .btn.primary {
        background: linear-gradient(90deg,var(--accent),var(--accent-2));
        box-shadow: 0 6px 18px rgba(124,58,237,0.12)
    }

    .btn.ghost {
        border: 1px solid rgba(255,255,255,0.06)
    }

.calendars {
    flex: 1;
    display: flex;
}

.calendar {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    padding: 6px;
    border-radius: 12px;
    width: 100%;
}

.cal-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    justify-content: space-between;
}

.month-title {
    font-weight: 700 !important;
    width: 100%;
    text-align: center;
}

.nav {
    display: flex;
    gap: 8px
}

    .nav button {
        background: transparent;
        border: 1px solid rgba(255,255,255,0.04);
        padding: 6px;
        border-radius: 8px;
        cursor: pointer
    }

.weekdays {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 6px;
    text-align: center;
}

.days {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 0px
}

.day {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 12px;
}

    .day.inactive {
        opacity: 0.28
    }

    .day.range {
        background: #8ec81c4f;
        color: var(--white);
        border-radius: 0px;
    }

    .day.start {
        background: linear-gradient(90deg,var(--accent),var(--accent-2));
        box-shadow: inset 2px 0 4px 0px #00a516;
        color: var(--white);
        border-radius: 10px 0px 0px 10px;
    }

    .day.end {
        background: linear-gradient(90deg,var(--accent-2),var(--accent));
        box-shadow: inset -2px 0 4px 0 #00a516;
        color: var(--white);
        border-radius: 0px 10px 10px 0px;
    }

    .day.start.end {
        background: linear-gradient(90deg,var(--accent),var(--accent-2),var(--accent)) !important;
        box-shadow: inset -2px 0 3px 0 #00a516, inset 2px 0 3px 0 #00a516 !important;
        color: var(--white);
        border-radius: 10px 10px 10px 10px !important;
    }


    .day.today {
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
    }

.picker-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

.picker-wrap input[type="date"]::-webkit-input-placeholder {
    visibility: hidden !important;
}

.muted {
    color: var(--muted);
    font-size: 13px
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px
}

@media (max-width:740px) {
    .picker-wrap {
        flex-direction: column;
        align-items: stretch
    }

    .controls {
        width: 100%;
        order: 2
    }

    .calendars {
        order: 1
    }
}

.picker-on-form {
    padding: 0.1rem .0rem;
    background-color: var(--ct-secondary-bg);
    color: var(--ct-body-color);
    border: var(--ct-border-width) solid var(--ct-border-color-translucent);
}