/* Ontime Fileshare styles */
* { box-sizing: border-box; }

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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    background: #0b2a4a;
    color: #fff;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.brand { display:flex; align-items:center; gap: 10px; font-weight: 600; font-size: 18px; }
.brand-mark { font-size: 22px; }
.topbar-meta { font-size: 13px; opacity: .8; }

.landing {
    flex: 1;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
}
.landing h1 { font-size: 32px; margin-bottom: 12px; }
.lede { color: #5a6772; font-size: 16px; margin-bottom: 40px; }

.big-share-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0b6efd 0%, #0a58ca 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 38px 100px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(11, 110, 253, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.big-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(11, 110, 253, 0.45);
}
.big-share-btn:active { transform: translateY(0); }

.notice {
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 36px auto 0;
    max-width: 540px;
    font-size: 14px;
    color: #663c00;
    text-align: left;
}

/* Skippy warning */
.skippy-warning {
    background: #fff;
    border: 2px solid #c0392b;
    border-radius: 14px;
    padding: 28px;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    max-width: 640px;
    margin: 0 auto;
}
.skippy-head {
    display: flex;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid #f3d4cf;
    padding-bottom: 14px;
    margin-bottom: 14px;
}
.skippy-avatar {
    font-size: 42px;
    background: #fdecea;
    border-radius: 50%;
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
}
.skippy-head h2 { margin: 0; color: #c0392b; }
.skippy-sub { margin: 4px 0 0; font-size: 13px; color: #8b3a32; }
.skippy-body p { line-height: 1.55; }
.skippy-body code { background: #f4f4f5; padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.skippy-foot {
    margin-top: 18px;
    border-top: 1px solid #f3d4cf;
    padding-top: 12px;
    font-style: italic;
    color: #5a6772;
    font-size: 13px;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 36, 0.55);
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 16px;
    z-index: 100;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: #fff;
    width: 100%;
    max-width: 720px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f4f6f8;
    border-bottom: 1px solid #e3e7ec;
}
.modal-header h2 { margin: 0; font-size: 20px; }
.modal-close {
    background: transparent;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #5a6772;
    line-height: 1;
}
.modal-body { padding: 22px 24px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #e3e7ec;
    background: #fafbfc;
}

.form-section {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e3e7ec;
}
.form-section:last-of-type { border-bottom: none; }
.form-section h3 {
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5a6772;
}

label {
    display: block;
    font-size: 13px;
    color: #2c3a4b;
    margin-bottom: 12px;
    font-weight: 500;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #cdd5df;
    border-radius: 6px;
    background: #fff;
    margin-top: 5px;
    font-family: inherit;
}
input:focus, select:focus {
    outline: none;
    border-color: #0b6efd;
    box-shadow: 0 0 0 3px rgba(11,110,253,0.15);
}
input[readonly] { background: #f4f6f8; color: #5a6772; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.warn-box {
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #663c00;
    margin-top: 10px;
}

.password-row { display: flex; gap: 8px; align-items: stretch; }
.password-row input { margin-top: 0; }

.strength {
    margin: 8px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.strength-bar {
    flex: 1;
    height: 8px;
    background: #e3e7ec;
    border-radius: 4px;
    overflow: hidden;
}
.strength-fill {
    height: 100%;
    width: 0;
    background: #c0392b;
    transition: width 0.2s, background 0.2s;
}
.strength-label { font-size: 12px; color: #5a6772; min-width: 90px; text-align: right; }
.pwd-match { font-size: 12px; margin-top: 4px; min-height: 16px; }
.pwd-match.ok { color: #1f8a4c; }
.pwd-match.bad { color: #c0392b; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger {
    display: inline-block;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
}
.btn-primary { background: #0b6efd; color: #fff; }
.btn-primary:hover { background: #0a58ca; }
.btn-secondary { background: #e3e7ec; color: #1d2733; }
.btn-secondary:hover { background: #cdd5df; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #962d22; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-error {
    background: #fdecea;
    border: 1px solid #f5c6c2;
    color: #b53224;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 12px;
}

/* Share result panel */
.share-result {
    padding: 24px;
    text-align: left;
}
.share-result h3 { color: #1f8a4c; margin-top: 0; }
.link-box {
    display: flex;
    gap: 8px;
    margin: 14px 0;
}
.link-box input {
    flex: 1;
    background: #f4f6f8;
    font-family: monospace;
    font-size: 13px;
    margin-top: 0;
}
.result-meta {
    font-size: 13px;
    color: #5a6772;
    background: #f4f6f8;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 12px 0;
}

/* Access page */
.access-page {
    flex: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 24px;
    width: 100%;
}
.card {
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.card h1 { margin-top: 0; font-size: 24px; }
.file-meta {
    background: #f4f6f8;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 18px 0;
    font-size: 14px;
}
.file-meta > div { display: flex; gap: 8px; padding: 4px 0; }
.file-meta span { color: #5a6772; min-width: 110px; display: inline-block; }
.pwd-form { margin-top: 18px; }
.pwd-form .btn-primary { margin-top: 12px; width: 100%; padding: 12px; font-size: 15px; }
.reject-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e3e7ec;
    text-align: center;
}
.reject-section p { color: #5a6772; font-size: 13px; margin-bottom: 12px; }

.footer {
    text-align: center;
    padding: 18px;
    color: #5a6772;
    font-size: 12px;
    border-top: 1px solid #e3e7ec;
    background: #fff;
}
