/* ============================================
   Font
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');

/* ============================================
   CSS Custom Properties — Brand palette
   extracted from the Nisim Bakara logo
   ============================================ */
:root {
    --primary: #1A7AB5;
    --primary-dark: #145F8C;
    --primary-deeper: #0E4466;
    --primary-light: #E6F2FA;
    --primary-glow: rgba(26, 122, 181, 0.15);

    --bg: #F2F5F9;
    --bg-pattern: rgba(26, 122, 181, 0.018);
    --card: #ffffff;
    --text: #1A2332;
    --text-secondary: #5E6F82;
    --border: #D8E0EB;
    --border-light: #EDF1F7;

    --success: #1E8A50;
    --success-light: #E5F5ED;
    --amber: #C67D0A;
    --amber-light: #FDF3E0;
    --error: #C0392B;
    --error-light: #FDEDEB;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(26, 35, 50, 0.05);
    --shadow: 0 2px 8px rgba(26, 35, 50, 0.07), 0 1px 2px rgba(26, 35, 50, 0.04);
    --shadow-lg: 0 8px 24px rgba(26, 35, 50, 0.09), 0 2px 6px rgba(26, 35, 50, 0.04);

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

input, textarea, select {
    font-family: inherit;
    font-size: 16px; /* prevent iOS zoom on focus */
}

ul {
    list-style: none;
}

/* ============================================
   Header — Logo-driven brand bar
   ============================================ */
.header {
    background: var(--card);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(26, 35, 50, 0.06);
}

.header__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    gap: 0.875rem;
}

.header__logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.header__accent {
    height: 4px;
    background: linear-gradient(
        to left,
        var(--primary) 0%,
        var(--primary-dark) 40%,
        var(--primary-deeper) 70%,
        #082A42 100%
    );
}

/* ============================================
   Main Container
   ============================================ */
.main {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 3rem;
}

/* ============================================
   Nav Bar (Back + Breadcrumbs)
   ============================================ */
.nav-bar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 0 0.5rem;
    margin-bottom: 0.25rem;
}

.btn--back {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    overflow: visible;
}

.btn--back svg {
    display: block;
    overflow: visible;
}

.btn--back:active {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: scale(0.94);
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.5rem 0;
    overflow: visible auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-width: 0;
    flex: 1;
    flex-wrap: wrap;
}

.breadcrumbs::-webkit-scrollbar {
    display: none;
}

.breadcrumbs__item {
    background: none;
    border: none;
    font-size: 0.8125rem;
    color: var(--primary);
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: background var(--transition);
    font-weight: 500;
}

.breadcrumbs__item:active {
    background: var(--primary-light);
}

.breadcrumbs__item--active {
    color: var(--text);
    font-weight: 600;
    cursor: default;
}

.breadcrumbs__sep {
    color: var(--text-secondary);
    font-size: 0.6875rem;
    flex-shrink: 0;
    opacity: 0.5;
}

/* ============================================
   Auto-Selection Message
   ============================================ */
.auto-msg {
    background: var(--amber-light);
    border: 1.5px solid rgba(198, 125, 10, 0.3);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--amber);
    font-weight: 500;
    animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   Search Box
   ============================================ */
.search-box {
    position: sticky;
    top: 84px; /* below header */
    z-index: 5;
    margin-bottom: 1rem;
    background: var(--bg);
    padding-bottom: 0.25rem;
}

.search-box__icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    pointer-events: none;
    opacity: 0.6;
}

.search-box__input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    background: var(--card);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-box__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-box__input::placeholder {
    color: var(--text-secondary);
    opacity: 0.65;
}

/* ============================================
   Loading
   ============================================ */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 1rem;
    animation: fadeIn 0.3s ease;
}

.loading__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading__text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================
   Error
   ============================================ */
.error {
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeIn 0.3s ease;
}

.error__text {
    color: var(--error);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ============================================
   Empty State
   ============================================ */
.empty {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeIn 0.3s ease;
}

.empty__text {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   Folder List
   ============================================ */
.folder-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.folder-list__empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ============================================
   Folder Card
   ============================================ */
.folder-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--text);
    text-align: right;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.folder-card:active {
    transform: scale(0.98);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.folder-card__icon {
    font-size: 1.375rem;
    flex-shrink: 0;
    line-height: 1;
}

.folder-card__name {
    flex: 1;
    text-align: right;
    word-break: break-word;
    line-height: 1.4;
    font-weight: 500;
}

.folder-card__count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 400;
}

.folder-card__arrow {
    color: var(--text-secondary);
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.4;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all var(--transition);
}

.btn:active {
    transform: scale(0.97);
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(26, 122, 181, 0.25);
}

.btn--primary:active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-deeper) 100%);
    box-shadow: 0 1px 4px rgba(26, 122, 181, 0.2);
}

.btn--secondary {
    background: var(--card);
    color: var(--primary);
    border: 2px solid var(--primary);
    width: 100%;
}

.btn--secondary:active {
    background: var(--primary-light);
}

/* ============================================
   Saved Location
   ============================================ */
.saved-location {
    background: var(--card);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.saved-location__card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.saved-location__icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
}

.saved-location__info {
    flex: 1;
    min-width: 0;
}

.saved-location__label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.saved-location__path {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
    direction: ltr;
    unicode-bidi: plaintext;
}

.saved-location__btn {
    width: 100%;
    margin-bottom: 0.75rem;
}

.saved-location__change {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.saved-location__change:active {
    color: var(--primary);
}

/* ============================================
   Target Folder
   ============================================ */
.target-folder {
    background: var(--success-light);
    border: 2px solid rgba(30, 138, 80, 0.3);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1.25rem;
    text-align: center;
    animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.target-folder__badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--success), #167341);
    color: white;
    padding: 0.25rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.target-folder__path {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    word-break: break-word;
    direction: ltr;
    unicode-bidi: plaintext;
}

.target-folder__note {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================
   Create Visit
   ============================================ */
.create-visit {
    margin-top: 1.5rem;
}

.create-visit__form {
    margin-top: 1rem;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.create-visit__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.create-visit__input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.create-visit__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.create-visit__hint {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--amber);
    font-weight: 500;
}

.create-visit__creating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.loading__spinner--small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.create-visit__error {
    margin-top: 0.75rem;
    color: var(--error);
    font-size: 0.875rem;
    font-weight: 500;
}

.create-visit .btn--primary {
    width: 100%;
    margin-top: 0.75rem;
}

/* ============================================
   Copy Prompt (disambiguation)
   ============================================ */
.copy-prompt {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--amber-light);
    border: 1.5px solid rgba(198, 125, 10, 0.3);
    border-radius: var(--radius-sm);
    animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-prompt__text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.copy-prompt__btn {
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    padding: 0.625rem 0.75rem;
}

.copy-prompt__skip {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.copy-prompt__skip:active {
    color: var(--primary);
}

/* ============================================
   Upload Section
   ============================================ */
.upload-section {
    margin-top: 1.25rem;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.upload-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.upload-section__buttons {
    display: flex;
    gap: 0.5rem;
}

.btn--add-photos {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    width: auto;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn--add-photos svg {
    flex-shrink: 0;
}

.btn--upload {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.0625rem;
    letter-spacing: 0.01em;
}

.btn--upload:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* ============================================
   Photo List
   ============================================ */
.photo-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.photo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
    transition: all var(--transition);
}

.photo-item--error {
    border-color: var(--error);
    background: var(--error-light);
}

.photo-item--success {
    border-color: var(--success);
    background: var(--success-light);
}

.photo-item__thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.photo-item__thumb--loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}
.photo-item__thumb--loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: thumb-spin 0.8s linear infinite;
}
@keyframes thumb-spin {
    to { transform: rotate(360deg); }
}
.photo-item--converting {
    position: relative;
    overflow: hidden;
}
.photo-item--converting::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    animation: converting-bar 1.5s ease-in-out infinite;
}
@keyframes converting-bar {
    0% { left: 0; width: 0; }
    50% { left: 0; width: 70%; }
    100% { left: 100%; width: 0; }
}

.photo-item__name {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.625rem;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    background: var(--card);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.photo-item__name:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.photo-item__name--highlight {
    animation: pulse-highlight 1.5s ease-out;
}

@keyframes pulse-highlight {
    0%   { border-color: var(--primary); box-shadow: 0 0 0 0 rgba(26, 122, 181, 0.4); }
    40%  { border-color: var(--primary); box-shadow: 0 0 0 6px rgba(26, 122, 181, 0); }
    100% { border-color: var(--border); box-shadow: none; }
}

.photo-item__remove {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--error);
    font-size: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background var(--transition);
}

.photo-item__remove:active {
    background: var(--error-light);
}

.photo-item__status {
    font-size: 0.75rem;
    flex-shrink: 0;
    min-width: 20px;
    text-align: center;
}

/* ============================================
   Upload Progress
   ============================================ */
.upload-progress {
    margin-top: 1rem;
}

.upload-progress__bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
}

.upload-progress__fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 1.5s ease infinite;
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.upload-progress__text {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

/* ============================================
   Upload Result
   ============================================ */
.upload-result {
    margin-top: 1rem;
    text-align: center;
}

.upload-result__text {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.upload-result__text--success {
    color: var(--success);
}

.upload-result__text--partial {
    color: var(--amber);
}

.upload-result__text--error {
    color: var(--error);
}

/* ============================================
   Files Section (collapsible)
   ============================================ */
.files-section {
    margin-top: 0.75rem;
}

.files-section__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.files-section__toggle:active {
    background: var(--primary-light);
}

.files-section__chevron {
    font-size: 0.625rem;
    transition: transform var(--transition);
    display: inline-block;
}

.files-section__chevron--open {
    transform: rotate(-90deg);
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ============================================
   File Card
   ============================================ */
.file-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.file-card__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
}

.file-card__thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.file-card__thumb--loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.file-card__name {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    font-weight: 500;
    text-align: right;
}

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

.file-card__action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background var(--transition);
    color: var(--text-secondary);
}

.file-card__action-btn:active {
    background: var(--primary-light);
}

.file-card__action-btn--danger:active {
    background: var(--error-light);
    color: var(--error);
}

/* Inline edit mode */
.file-card__edit-input {
    flex: 1;
    min-width: 0;
    padding: 0.375rem 0.5rem;
    border: 1.5px solid var(--primary);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
    direction: rtl;
}

/* Inline delete confirmation */
.file-card__confirm {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--error);
    font-weight: 500;
}

.file-card__confirm-btn {
    width: 28px;
    height: 28px;
    border: 1.5px solid;
    background: none;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all var(--transition);
}

.file-card__confirm-btn--yes {
    color: var(--error);
    border-color: var(--error);
}

.file-card__confirm-btn--yes:active {
    background: var(--error);
    color: white;
}

.file-card__confirm-btn--no {
    color: var(--text-secondary);
    border-color: var(--border);
}

.file-card__confirm-btn--no:active {
    background: var(--border-light);
}

/* Inline error message */
.file-card__error {
    font-size: 0.75rem;
    color: var(--error);
    font-weight: 500;
    margin-top: 0.25rem;
    padding: 0 1rem;
}

/* Spinner for in-progress operations */
.file-card__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    flex-shrink: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 640px) {
    .header__logo {
        height: 56px;
    }

    .main {
        padding: 1.5rem;
    }

    .folder-card {
        padding: 1rem 1.25rem;
    }

    .folder-card:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow);
    }
}
