:root {
    --beinat-primary: #2c5872;
    --beinat-primary-hover: #234a60;
    --beinat-primary-light: rgba(44, 88, 114, 0.08);
    --beinat-text: #676767;
    --beinat-heading: #2c5872;
    --beinat-bg: #f5f7f8;
    --beinat-border: #e8edf0;
}

body {
    font-family: 'Open Sans', Helvetica, sans-serif;
    color: var(--beinat-text);
    background: var(--beinat-bg);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow', sans-serif;
    color: var(--beinat-heading);
    font-weight: 500;
}

/* Navbar */
.navbar {
    background-color: var(--beinat-primary);
    padding: 0.6rem 0;
}

.brand-label {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn-primary {
    background-color: var(--beinat-primary);
    border-color: var(--beinat-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--beinat-primary-hover);
    border-color: var(--beinat-primary-hover);
}

.btn-outline-primary {
    color: var(--beinat-primary);
    border-color: var(--beinat-primary);
}

.btn-outline-primary:hover {
    background-color: var(--beinat-primary);
    border-color: var(--beinat-primary);
    color: #fff;
}

/* Cards */
.card {
    border: 1px solid var(--beinat-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
}

.folder-card {
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.folder-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.folder-card h6 { color: var(--beinat-heading); }

/* File rows */
.file-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--beinat-border);
    gap: 0.5rem;
    transition: background 0.15s;
}

.file-row:last-child { border-bottom: none; }

.file-row:hover { background: var(--beinat-primary-light); }

.file-icon { font-size: 1.25rem; flex-shrink: 0; }

.file-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--beinat-bg);
    border: 1px solid var(--beinat-border);
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #333;
}

.file-meta {
    color: #999;
    font-size: 0.78rem;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Share link */
.share-link-box {
    background: var(--beinat-primary-light);
    border: 1px solid rgba(44, 88, 114, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.share-link-box input[readonly] {
    background: #fff;
    font-size: 0.85rem;
}

/* Copy button */
.copy-btn.copied {
    color: #198754;
    border-color: #198754;
}

/* Login */
.login-card {
    max-width: 380px;
    margin: 5rem auto;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #aaa;
}

/* Public share header */
.share-header {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
}

.share-header .subtitle {
    color: #999;
    font-size: 0.85rem;
}

/* Footer */
.site-footer {
    padding: 1rem 0;
    color: #aaa;
    font-size: 0.8rem;
    border-top: 1px solid var(--beinat-border);
    margin-top: 2rem;
}

/* Breadcrumb */
.breadcrumb-item a {
    color: var(--beinat-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover { text-decoration: underline; }

/* ========================
   Drop Zone
   ======================== */
.dropzone {
    border: 2px dashed var(--beinat-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #fff;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    cursor: pointer;
    position: relative;
}

.dropzone.drag-over {
    border-color: var(--beinat-primary);
    background: var(--beinat-primary-light);
    transform: scale(1.01);
}

.dropzone-idle i {
    font-size: 2.5rem;
    color: #b0c4d0;
    display: block;
    margin-bottom: 0.5rem;
}

.dropzone-idle p {
    margin: 0;
    color: var(--beinat-text);
}

.dropzone-idle a {
    color: var(--beinat-primary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.dropzone-preview {
    text-align: left;
}

.dropzone-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.dropzone-uploading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--beinat-text);
}

.dropzone-uploading .progress {
    width: 100%;
    max-width: 300px;
}

/* File queue (pending upload) */
.queue-item {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    background: var(--beinat-bg);
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    gap: 0.5rem;
    animation: slideIn 0.2s ease-out;
}

.queue-name {
    flex: 1;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-size {
    color: #999;
    font-size: 0.78rem;
    white-space: nowrap;
}

.queue-remove {
    padding: 0.1rem 0.3rem;
    line-height: 1;
}

.queue-summary {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    padding-top: 0.25rem;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dropdown */
.dropdown-item i { opacity: 0.6; }
.dropdown-item:hover i { opacity: 1; }

/* Responsive */
@media (max-width: 576px) {
    .file-row { padding: 0.6rem 0.75rem; }
    .login-card { margin: 2rem auto; }
    .dropzone { padding: 1.5rem 1rem; }
    .file-actions .btn { padding: 0.25rem 0.4rem; }
}
