/*
Theme Name: WOTGET Child
Template: astra
Version: 1.0
*/

/* =====================================================
   1. GLOBAL RESET
===================================================== */

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    color: #1f2937;
}

/* =====================================================
   2. LOGIN / LANGUAGE UI
===================================================== */

.lang-dropdown {
    display: block;
    position: relative;
    margin-top: 28px;
}

.more-lang-toggle {
    font-size: 12px;
    color: #555;
    cursor: pointer;
    font-weight: 500;
}

.more-lang-toggle:hover {
    color: #000;
}

.lang-dropdown-menu {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 12px 16px;
    min-width: 160px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    z-index: 999;
    text-align: left;
}

.lang-dropdown-menu a {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    color: #444;
    text-decoration: none;
}

.lang-dropdown-menu a:hover {
    color: #000;
}

.login-footer {
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 9px;
    color: #888;
    line-height: 1.6;
}

.login-footer div:first-child {
    margin-bottom: 6px;
}

.login-footer a {
    color: #777;
    text-decoration: none;
}

.login-footer a:hover {
    color: #000;
}

/* =====================================================
   3. APP LAYOUT
===================================================== */

body.wotget-app-active .site-content {
    padding: 0;
    margin: 0;
}

.wotget-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =====================================================
   4. TOPBAR
===================================================== */

.wotget-topbar {
    height: 60px;
    background: #111827;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.topbar-left {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.project-title {
    font-weight: 600;
    font-size: 15px;
}

.project-subtitle {
    font-size: 11px;
    opacity: 0.8;
}

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

.logout-link {
    color: white;
    text-decoration: none;
    font-size: 13px;
}

/* =====================================================
   5. MAIN BODY
===================================================== */

.wotget-body {
    display: flex;
    flex: 1;
    background: #f9fafb;
}

.wotget-calendar {
    flex: 0 0 320px;
    max-width: 400px;
    border-right: 1px solid #e5e7eb;
    padding: 25px;
    background: #ffffff;
}

.wotget-panel {
    flex: 1;
    padding: 35px;
    overflow-y: auto;
    background: #ffffff;
}

/* =====================================================
   6. DAY HEADER
===================================================== */

.day-header h2 {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 600;
}

.day-status {
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #374151;
}

.day-hash {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    margin-bottom: 20px;
    color: #111827;
    word-break: break-all;
}

.no-entries {
    margin-top: 25px;
    font-size: 14px;
    color: #6b7280;
}

/* =====================================================
   7. CALENDAR
===================================================== */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    text-decoration: none;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

.calendar-day:hover {
    background: #e5e7eb;
    cursor: pointer;
}

/* Today */
.calendar-day.today {
    background: #eaf3ff;
    border: 1px solid #93c5fd;
    font-weight: 600;
}

/* Locked (neutral, no drama) */
.calendar-day.locked {
    background: #f3f4f6;
    border: 2px solid #111827;
    color: #374151;
}

/* Selected */
.calendar-day.selected {
    background: #111827;
    color: #ffffff;
    border: 2px solid #111827;
}

/* =====================================================
   8. BUTTONS
===================================================== */

.snapshot-btn {
    margin-top: 20px;
}

.snapshot-btn button {
    padding: 8px 14px;
    border: 1px solid #333;
    background: #ffffff;
    cursor: pointer;
    font-size: 13px;
}

.snapshot-btn button:hover {
    background: #f3f3f3;
}

.monthly-btn {
    background: #111827;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
}

.monthly-btn:hover {
    opacity: 0.85;
}

/* =====================================================
   9. RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .wotget-body {
        flex-direction: column;
    }

    .wotget-calendar {
        width: 100%;
        max-width: none;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .wotget-panel {
        width: 100%;
        padding: 20px;
    }

    .day-header h2 {
        font-size: 20px;
    }
}

/* =====================================================
   STATUS LABEL
===================================================== */

.status-text {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

/* OPEN */
.status-open {
    background: #15803d;
    color: #ffffff;
}

/* LOCKED */
.status-locked {
    background: #111827;
    color: #ffffff;
}

/* =====================================================
   LEVI STACK
===================================================== */

.wotget-left-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.wotget-block {
    width: 100%;
}

/* CENTRIRANJE LEVOG BLOKA ISPOD KALENDARA */

.wotget-team-block,
.monthly-snapshot {
    text-align: center;
}

.wotget-team-form {
    align-items: center;
}

.wotget-team-form input,
.wotget-team-form select {
    max-width: 260px;
}

.wotget-team-form button {
    max-width: 260px;
    width: 100%;
}

.monthly-snapshot button {
    max-width: 260px;
    width: 100%;
}