﻿body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    color: #e9f2f7;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
}
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
.bg {
  animation:slide 3s ease-in-out infinite alternate;
  background-image: linear-gradient(-60deg, rgb(20, 21, 27) 50%, rgb(18, 40, 54) 50%);
  bottom:0;
  left:-50%;
  opacity:.5;
  position:fixed;
  right:-50%;
  top:0;
  z-index:-1;
}
.bg2 {
  animation-direction:alternate-reverse;
  animation-duration:4s;
}
.bg3 {
  animation-duration:5s;
}
@keyframes slide {
  0% {
    transform:translateX(-25%);
  }
  100% {
    transform:translateX(25%);
  }
}
footer {
    color: #fff;
    min-height: 50px;
}
main {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.glass-card {
    width: min(70%, 100%);
    min-height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.schedule {
    width: 100%;
    padding: 8px 0;
    font-size: 16px;
}

.schedule .day {
    border-top: 1px solid rgba(255,255,255,0.35);
    position: relative;
}

.schedule .day:first-child { border-top: 0; }

.schedule .day-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.schedule .day-btn:hover {
    background: rgba(255,255,255,0.08);
}

.schedule .day-btn:focus-visible {
    outline: 3px solid rgba(255,255,255,0.35);
    outline-offset: 2px;
    border-radius: 8px;
}

.schedule .title {
    font-weight: 800;
    font-size: 19px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
}

.schedule .date {
    margin-left: 8px;
    opacity: 0.95;
    font-weight: 400;
    font-size: 18px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
}

.schedule .chev {
    width: 18px;
    height: 18px;
    opacity: .9;
    transition: transform .2s ease;
}

.schedule .day[aria-expanded="true"] .chev {
    transform: rotate(180deg);
}

.schedule .panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.schedule .panel.open {
    max-height: 2000px;
    will-change: max-height;
    margin-left: 0;
    padding-left: 0;
}

.schedule .shift {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 6px 16px;
    padding: 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 400;
    font-size: 16px;
}

.schedule .shift:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.schedule .shift > div:first-child {
    display: contents;
}

.schedule .name {
    grid-column: 1;
    grid-row: 1;
    font-weight: 700;
}

.schedule .when {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    text-align: left;
    font-weight: 600;
    opacity: 0.95;
}

.schedule .role {
    grid-column: 1;
    grid-row: 3;
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
}

.schedule .dur {
    grid-column: 2;
    grid-row: 1 / span 3;
    justify-self: end;
    align-self: center;
    font-weight: 700;
    opacity: 0.95;
}

.schedule .shift.shift-empty .name {
    opacity: 0.85;
    font-style: italic;
}

@media (max-width:560px) {
    .schedule .panel.open {
        margin-left: 0;
        padding-left: 0;
    }

    .schedule .shift {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .schedule .dur {
        grid-column: 1;
        grid-row: 4;
        justify-self: start;
        margin-top: 6px;
    }
}

.admin-link,
.admin-panel {
    position: fixed;
    top: 20px;
    right: 24px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    padding: 8px 14px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    transition: background .2s ease;
    z-index: 1000;
}
.admin-link:hover,
.admin-panel:hover {
    background: rgba(255,255,255,0.3);
}

.week-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin: 6px 0 8px;
}
.schedule-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 6px 0 12px;
}
.nav-btn {
    justify-self: end;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease;
}
.schedule-header .nav-btn:last-child { justify-self: start; }
.nav-btn:hover { background: rgba(255,255,255,0.3); }
.nav-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.week-range {
    justify-self: center;
    font-weight: 800;
    opacity: .95;
}

.admin-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 32px;
}
.upload-card {
    max-width: 820px;
    width: 92%;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: 1fr 200px;
    align-items: center;
    gap: 28px;
}
.upload-left h1 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .01em;
}
.upload-left p {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    opacity: .9;
}
.upload-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.cloud-wrap {
    width: 140px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cloud-lg {
    width: 120px;
    height: 120px;
    color: #58b7ff;
}
.file-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.btn-upload {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    color: #e5e7eb;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .06s ease;
}
.btn-upload:hover { background: rgba(255,255,255,0.22); }
.btn-upload:active { transform: translateY(1px); }
.file-name {
    font-size: 12px;
    opacity: .85;
    max-width: 200px;
    text-align: center;
    word-break: break-all;
}
.file-name-label {
    vertical-align: middle;
}
.file-remove {
    margin-left: 6px;
    background: transparent;
    border: 0;
    color: #ff5454;
    font-size: 16px;
    cursor: pointer;
}
.btn-upload-export {
    background: rgba(255,255,255,0.85);
    color: #111;
}

.popup {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 0, 0, 0.25);
    color: white;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
    backdrop-filter: blur(12px) saturate(150%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 260px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1000;
}
.popup.visible {
    transform: translateY(0);
    opacity: 1;
}
.popup.hidden {
    pointer-events: none;
}
.popup-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.popup h3 {
    font-size: 18px;
    margin: 4px 0;
    font-weight: 700;
}
.popup p {
    font-size: 14px;
    opacity: 0.9;
}

@media (max-width:700px) {
    .upload-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .upload-right { margin-top: 8px; }
}
