@import url('/css/styles.css');

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-primary-4);
    background: var(--color-primary-0);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(250, 250, 248, 0.78), rgba(236, 236, 236, 0.9)), url('/resources/Background2.jpg') center / cover;
    filter: grayscale(60%) contrast(30%) brightness(120%);
}

.top-row {
    height: 3.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--color-primary-2);
    background: rgba(250, 250, 248, 0.94);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.logo-container, .t2b-logo-container { display: flex; align-items: center; }
.logo-container { gap: 0.75rem; }
.logo-box { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; background: var(--color-logo-background); }
.logo-image { width: 28px; height: 28px; }
.logo-text a { color: var(--color-logo-text); text-decoration: none; font-family: 'Museo Modern', sans-serif; font-size: 1.9rem; font-weight: 700; }
.page-label { margin-left: 0.5rem; color: #666; font-size: 1.5rem; font-weight: 400; }
.t2b-logo-image { width: 80px; height: 40px; object-fit: contain; }

.container { width: min(100% - 3rem, 920px); margin: 0 auto; padding: 4rem 0 5rem; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.eyebrow { margin: 0 0 0.5rem; color: var(--color-accent-0); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0.45rem; font-family: 'Museo Modern', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
h2 { margin-bottom: 0; font-size: 1.15rem; }
.intro { margin-bottom: 0; color: var(--color-primary-3); font-size: 1rem; }

.access-panel, .file-panel { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--color-primary-2); border-radius: 8px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 8px 24px rgba(33, 59, 86, 0.08); }
.access-panel { max-width: 520px; margin: 5vh auto 0; }
.access-panel h1 { font-size: 2.2rem; }
.password-form { display: grid; gap: 0.65rem; margin-top: 2rem; }
.password-form label { color: var(--color-primary-3); font-size: 0.85rem; font-weight: 600; }
input[type='password'] { width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--color-primary-2); border-radius: 4px; background: #fff; color: var(--color-primary-4); font: inherit; }
button, .upload-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.7rem; padding: 0.65rem 1.2rem; border: 0; border-radius: 4px; background: var(--color-accent-0); color: white; font: inherit; font-weight: 600; cursor: pointer; }
button:hover, .upload-button:hover { background: var(--color-accent-1); }
.delete-button { min-height: 2rem; padding: 0.35rem 0.7rem; background: #a12d2d; font-size: 0.8rem; }
.delete-button:hover { background: #822323; }
.error { margin: 1rem 0 0; color: #a12d2d; font-size: 0.9rem; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.file-panel { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--color-primary-1); }
.file-count { min-width: 1.7rem; padding: 0.15rem 0.45rem; border-radius: 999px; background: var(--color-primary-1); color: var(--color-primary-3); font-size: 0.8rem; text-align: center; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0.25rem; border-bottom: 1px solid var(--color-primary-1); }
.file-list li:last-child { border-bottom: 0; }
.file-list a { min-width: 0; overflow-wrap: anywhere; color: var(--color-accent-2); font-weight: 600; text-decoration: none; }
.file-list a:hover { color: var(--color-accent-0); text-decoration: underline; }
.file-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.file-type { flex-shrink: 0; color: var(--color-primary-2); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; }
.empty-state { margin: 1.5rem 0 0; color: var(--color-primary-3); }

@media (max-width: 640px) {
    .top-row { padding: 0 1rem; }
    .logo-text a { font-size: 1.55rem; }
    .page-label { font-size: 1.25rem; }
    .t2b-logo-image { width: 64px; }
    .container { width: min(100% - 2rem, 920px); padding-top: 2.5rem; }
    .page-header { align-items: start; flex-direction: column; }
}
