* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f1117;
    color: #e1e4e8;
    min-height: 100vh;
}

a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Auth page */
.auth-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    text-align: center;
}
.auth-container h1 { font-size: 28px; margin-bottom: 4px; }
.subtitle { color: #8b949e; margin-bottom: 24px; }
.tabs { display: flex; gap: 0; margin-bottom: 20px; }
.tab {
    flex: 1; padding: 10px; background: #0d1117; border: 1px solid #30363d;
    color: #8b949e; cursor: pointer; font-size: 14px;
}
.tab:first-child { border-radius: 6px 0 0 6px; }
.tab:last-child { border-radius: 0 6px 6px 0; }
.tab.active { background: #21262d; color: #e1e4e8; border-color: #58a6ff; }
.auth-container form { display: flex; flex-direction: column; gap: 12px; }
.auth-container input {
    padding: 10px 14px; background: #0d1117; border: 1px solid #30363d;
    border-radius: 6px; color: #e1e4e8; font-size: 14px;
}
.auth-container input:focus { outline: none; border-color: #58a6ff; }
.auth-container button[type="submit"] {
    padding: 10px; background: #238636; border: none; border-radius: 6px;
    color: #fff; font-size: 14px; cursor: pointer; font-weight: 600;
}
.auth-container button[type="submit"]:hover { background: #2ea043; }

.error {
    background: #da363430; border: 1px solid #da3634; color: #f85149;
    padding: 10px; border-radius: 6px; margin-bottom: 16px; font-size: 14px;
}

/* Nav */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 24px; background: #161b22; border-bottom: 1px solid #30363d;
}
.nav-left { display: flex; align-items: center; gap: 16px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.breadcrumbs { color: #8b949e; font-size: 14px; }
.breadcrumbs a { color: #58a6ff; }
.breadcrumbs span { color: #e1e4e8; }

/* Main content */
main { max-width: 960px; margin: 24px auto; padding: 0 24px; }

/* Drop zone */
.drop-zone {
    border: 2px dashed #30363d; border-radius: 12px; padding: 40px;
    text-align: center; margin-bottom: 16px; transition: all 0.2s;
    cursor: pointer;
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: #58a6ff; background: #58a6ff10;
}
.drop-zone p { color: #8b949e; }
.drop-zone .link { color: #58a6ff; cursor: pointer; text-decoration: underline; }
.progress-bar {
    width: 100%; height: 6px; background: #21262d;
    border-radius: 3px; margin-top: 16px; overflow: hidden;
}
.progress-fill {
    height: 100%; background: #58a6ff; border-radius: 3px;
    width: 0%; transition: width 0.2s;
}
#progress-text { color: #8b949e; font-size: 13px; margin-top: 8px; display: inline-block; }

/* Toolbar */
.toolbar { display: flex; gap: 8px; margin-bottom: 16px; }

/* Dialog */
.dialog {
    display: flex; gap: 8px; align-items: center;
    padding: 12px; background: #161b22; border: 1px solid #30363d;
    border-radius: 8px; margin-bottom: 16px;
}
.dialog input {
    padding: 8px 12px; background: #0d1117; border: 1px solid #30363d;
    border-radius: 6px; color: #e1e4e8; font-size: 14px; flex: 1;
}

/* Buttons */
.btn {
    padding: 6px 14px; background: #21262d; border: 1px solid #30363d;
    border-radius: 6px; color: #e1e4e8; cursor: pointer; font-size: 13px;
    white-space: nowrap;
}
.btn:hover { background: #30363d; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-danger { color: #f85149; }
.btn-danger:hover { background: #da363420; }
.btn-secondary { background: transparent; }

/* File table */
.file-table {
    width: 100%; border-collapse: collapse;
    background: #161b22; border: 1px solid #30363d; border-radius: 8px;
    overflow: hidden;
}
.file-table th {
    text-align: left; padding: 10px 16px; font-size: 13px;
    color: #8b949e; border-bottom: 1px solid #30363d; font-weight: 500;
}
.file-table td {
    padding: 10px 16px; border-bottom: 1px solid #21262d; font-size: 14px;
}
.file-table tr:last-child td { border-bottom: none; }
.file-table tr:hover { background: #1c2128; }
.folder-link { font-weight: 500; }
.folder-link::before { content: "\1F4C1 "; }
.file-link::before { content: "\1F4C4 "; }
.actions { display: flex; gap: 6px; }
.empty { text-align: center; color: #8b949e; padding: 40px !important; }

/* Modal */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); display: flex; align-items: center;
    justify-content: center; z-index: 100;
}
.modal-content {
    background: #161b22; border: 1px solid #30363d; border-radius: 12px;
    padding: 24px; max-width: 500px; width: 90%;
}
.modal-content h3 { margin-bottom: 8px; }
.modal-content p { color: #8b949e; font-size: 14px; margin-bottom: 12px; }
.modal-content input {
    width: 100%; padding: 8px 12px; background: #0d1117; border: 1px solid #30363d;
    border-radius: 6px; color: #e1e4e8; font-size: 13px; margin-bottom: 12px;
}
.modal-content .btn { margin-right: 8px; }

/* Share page */
.share-info { margin-top: 20px; }
.share-info h2 { margin-bottom: 16px; }
.share-info .filename { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.share-info .filesize { color: #8b949e; margin-bottom: 20px; }
.download-btn {
    display: inline-block; padding: 12px 32px; background: #238636;
    color: #fff; border-radius: 6px; font-size: 16px; font-weight: 600;
    margin-bottom: 16px;
}
.download-btn:hover { background: #2ea043; text-decoration: none; }
.expires { color: #8b949e; font-size: 13px; }

/* Responsive */
@media (max-width: 600px) {
    main { padding: 0 12px; }
    .file-table th:nth-child(3), .file-table td:nth-child(3) { display: none; }
    nav { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
}
