/* CloudDrive - Mobile First CSS */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--background);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    min-height: 40px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

/* Navigation */
.navbar {
    background: var(--surface);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: background 0.2s;
}

.nav-link:hover {
    background: var(--background);
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary);
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 99;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5);
}

.fab svg {
    width: 24px;
    height: 24px;
}

/* Storage Bar */
.storage-bar {
    background: var(--background);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin: 8px 0;
}

.storage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 999px;
    transition: width 0.3s;
}

.storage-bar-fill.warning {
    background: linear-gradient(90deg, var(--warning), #fbbf24);
}

.storage-bar-fill.danger {
    background: linear-gradient(90deg, var(--danger), #f87171);
}

.storage-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* File List */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    user-select: none;
    -webkit-user-select: none;
}

.file-item:active {
    transform: scale(0.98);
}

.file-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

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

.file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.file-actions {
    display: flex;
    gap: 8px;
}

.file-action-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--background);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.file-action-btn:hover {
    background: var(--primary);
    color: white;
}

.file-action-btn.delete:hover {
    background: var(--danger);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.upload-area svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.upload-area p {
    color: var(--text-secondary);
}

/* Progress */
.progress-container {
    margin-top: 16px;
}

.progress-bar {
    height: 4px;
    background: var(--background);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--surface);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--background);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.feature-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1 1 280px;
    max-width: 320px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.pricing-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--primary);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.pricing-period {
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--background);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s;
}

.payment-method:hover,
.payment-method.selected {
    border-color: var(--primary);
}

.payment-method input {
    display: none;
}

.payment-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Admin Table */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--background);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--background) 25%, var(--border) 50%, var(--background) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast/Alert */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(-100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1001;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

/* Utilities */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }

/* Page content padding for bottom nav */
.page-content {
    padding-bottom: 100px;
}

/* Desktop Styles */
@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .modal {
        border-radius: var(--radius);
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-overlay {
        align-items: center;
        padding: 20px;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bottom-nav {
        display: none;
    }

    .fab {
        bottom: 40px;
        right: 40px;
    }

    .page-content {
        padding-bottom: 40px;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .file-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .file-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================== */
/* Trust Elements Styles */
/* ===================== */

/* Footer */
.footer {
    background: var(--text);
    color: #94a3b8;
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-brand svg {
    color: var(--primary-light);
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 32px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-badge svg {
    color: var(--success);
}

/* Stats Section */
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 0 24px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 4px;
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
    background: var(--background);
}

.testimonials-grid {
    display: grid;
    gap: 24px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.testimonial-stars svg {
    color: #fbbf24;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (min-width: 640px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Security Section */
.security-section {
    padding: 60px 0;
}

.security-grid {
    display: grid;
    gap: 24px;
    margin-top: 40px;
}

.security-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.security-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.security-title {
    font-weight: 600;
    margin-bottom: 4px;
}

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

@media (min-width: 640px) {
    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background: var(--background);
}

.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 16px;
}

.legal-page h1 {
    margin-bottom: 8px;
}

.legal-page .last-updated {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.legal-page h2 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.legal-page p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.legal-page ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-page li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Contact Page */
.contact-section {
    padding: 40px 0;
}

.contact-grid {
    display: grid;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-form .form-group {
    margin-bottom: 16px;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

@media (min-width: 640px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* About Page */
.about-hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.about-hero h1 {
    margin-bottom: 16px;
}

.about-hero p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.about-section {
    padding: 60px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    gap: 24px;
    margin-top: 40px;
}

.value-card {
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 16px;
}

.value-card h3 {
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

@media (min-width: 640px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================== */
/* Folder & Breadcrumb Styles */
/* ===================== */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--text);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--border);
}

.breadcrumb-home {
    display: flex;
    align-items: center;
}

/* Folder Icon */
.file-icon.folder {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

/* Folder Item - clickable */
.file-item.folder {
    cursor: pointer;
}

.file-item.folder:hover {
    background: var(--background);
}

/* Move Modal - Folder List */
.folder-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 12px;
}

.folder-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.folder-list-item:last-child {
    border-bottom: none;
}

.folder-list-item:hover {
    background: var(--background);
}

.folder-list-item.selected {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
}

.folder-list-item.root {
    font-weight: 500;
}

.folder-list-item svg {
    color: #f59e0b;
    flex-shrink: 0;
}

.folder-list-item.root svg {
    color: var(--primary);
}

.folder-list-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
}

/* Action Bar (New Folder button) */
.action-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.action-bar .btn {
    padding: 10px 16px;
    font-size: 0.875rem;
}

/* Rename Modal */
.rename-modal .form-input {
    margin-top: 16px;
}

/* Folder/File context menu style button */
.file-action-btn.rename:hover {
    background: var(--primary);
    color: white;
}

/* File Checkbox */
.file-checkbox {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.file-checkbox input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
}

.file-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    transition: all 0.15s;
}

.file-checkbox:hover .checkmark {
    border-color: var(--primary);
}

.file-checkbox input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.file-checkbox input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Selected file item */
.file-item.selected {
    background: #e0f2fe;
    border: 1px solid var(--primary);
}

/* Selection Bar */
.selection-bar {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    padding: 12px 20px;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
    transition: bottom 0.3s ease;
}

.selection-bar.active {
    bottom: 90px;
}

@media (min-width: 768px) {
    .selection-bar.active {
        bottom: 24px;
    }
}

.selection-bar #selectionCount {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.selection-actions {
    display: flex;
    gap: 8px;
}

.selection-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: var(--primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.selection-btn:hover {
    background: var(--primary-dark);
}

.selection-btn.danger {
    background: var(--danger);
}

.selection-btn.danger:hover {
    background: #dc2626;
}

.selection-btn.cancel {
    background: var(--background);
    color: var(--text-secondary);
    padding: 8px;
}

.selection-btn.cancel:hover {
    background: var(--border);
}

.selection-btn svg {
    flex-shrink: 0;
}

/* Hide Download text on mobile */
@media (max-width: 480px) {
    .selection-btn {
        padding: 10px;
    }

    .selection-btn span,
    .selection-btn:not(.cancel)::after {
        display: none;
    }
}

/* Select All Button */
.btn-select-all {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-select-all:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-select-all.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
