/* BestShare CSS - Simple, Clean, Responsive */

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

:root,
[data-theme="light"] {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Dark mode support */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --secondary-color: #94a3b8;
    --success-color: #34d399;
    --error-color: #f87171;
    --text-color: #f1f5f9;
    --text-light: #94a3b8;
    --border-color: #334155;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
}

/* Respect system preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary-color: #3b82f6;
        --primary-hover: #60a5fa;
        --secondary-color: #94a3b8;
        --success-color: #34d399;
        --error-color: #f87171;
        --text-color: #f1f5f9;
        --text-light: #94a3b8;
        --border-color: #334155;
        --bg-color: #0f172a;
        --card-bg: #1e293b;
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    padding: 20px 0;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-left {
    text-align: left;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

.tagline {
    color: var(--text-light);
    font-size: 0.875rem;
}

.user-greeting {
    color: var(--text-color);
    font-size: 0.875rem;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.nav-link:hover {
    text-decoration: underline;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Alerts / Messages */
.messages {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.875rem;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.alert-warning {
    background-color: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

/* Auth Forms */
.auth-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-light);
}

.auth-form {
    margin-bottom: 20px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

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

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    padding: 0 15px;
}

.anonymous-access {
    text-align: center;
}

.guest-note {
    margin-top: 10px;
    color: var(--text-light);
    font-size: 0.75rem;
}

.password-hint {
    margin-top: 5px;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Main Content */
main {
    flex: 1;
    padding: 20px 0;
}

/* Upload Container */
.upload-container,
.success-container,
.download-container,
.error-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Upload Mode Toggle */
.upload-mode-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-color);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.mode-link {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.mode-link:hover {
    color: var(--primary-color);
}

.mode-link.active {
    background: var(--primary-color);
    color: white;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.drop-zone.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.upload-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.drop-text {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.drop-text-or {
    color: var(--text-light);
    margin: 20px 0;
}

.file-info {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}

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

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

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

.btn-secondary:hover {
    background-color: #475569;
}

.btn-google {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background-color: #f8f8f8;
    border-color: #ccc;
}

.google-icon {
    flex-shrink: 0;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Upload Progress */
.upload-progress {
    margin-top: 30px;
}

/* Upload Options */
.upload-options {
    margin-top: 30px;
}

.upload-options .file-details {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.upload-options .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Password Form (Unlock Page) */
.password-form {
    max-width: 400px;
    margin: 30px auto;
}

.password-form .form-group {
    margin-bottom: 20px;
}

.password-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.125rem;
    text-align: center;
}

.password-form input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Encryption Notice */
.encryption-notice {
    margin-top: 10px;
    padding: 12px;
    background-color: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 8px;
}

.warning-text {
    color: #854d0e;
    font-size: 0.875rem;
    margin: 0;
}

/* Checkbox styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* E2EE indicator on download page */
.e2ee-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background-color: #dcfce7;
    color: #166534;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 10px;
}

.e2ee-badge svg {
    width: 14px;
    height: 14px;
}

.file-details {
    margin-bottom: 20px;
}

.file-details p {
    margin: 8px 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.progress-text {
    text-align: center;
    color: var(--text-light);
}

/* File Info Card */
.file-info-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.file-info-card h3 {
    color: var(--text-color);
    margin-bottom: 12px;
    word-break: break-all;
}

.file-info-card p {
    margin: 8px 0;
    color: var(--text-color);
}

/* Success Page */
.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 20px;
}

.link-section {
    margin: 30px 0;
}

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

.link-input-group {
    display: flex;
    gap: 8px;
}

.link-input-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: monospace;
}

.hint {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Download Page */
.file-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
}

.security-note {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Error Messages */
.error-message,
.error-container {
    background-color: #fef2f2;
    border: 1px solid var(--error-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.error-icon {
    width: 80px;
    height: 80px;
    background-color: var(--error-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
}

.error-container .error-message {
    background-color: transparent;
    border: none;
    padding: 0;
}

/* Actions */
.actions {
    margin-top: 30px;
    text-align: center;
}

/* Hidden */
.hidden {
    display: none !important;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding: 10px;
    }

    /* Header */
    header {
        padding: 16px 0;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .nav-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-right {
        gap: 8px;
        flex-wrap: wrap;
    }

    .nav-right .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .upload-container,
    .success-container,
    .download-container,
    .error-container {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .upload-container h2 {
        font-size: 1.5rem;
    }

    .upload-container .subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    /* Upload mode toggle - stack on very small screens */
    .upload-mode-toggle {
        flex-direction: column;
        gap: 2px;
    }

    .mode-link {
        padding: 10px;
        font-size: 0.9rem;
    }

    .drop-zone {
        padding: 30px 15px;
    }

    .upload-icon {
        width: 48px;
        height: 48px;
    }

    .drop-text {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
    }

    #file-select-btn {
        width: 100%;
    }

    .file-info {
        font-size: 0.8rem;
    }

    /* Upload options */
    .upload-options {
        padding: 16px;
    }

    .upload-options .file-details p {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 0.9rem;
    }

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

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    /* Link input group */
    .link-input-group {
        flex-direction: column;
    }

    .link-input-group input {
        width: 100%;
    }

    /* Cloud picker modal */
    .modal {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }

    .modal-content,
    .cloud-picker-modal {
        height: 100%;
        border-radius: 0;
    }

    .modal-header {
        padding: 16px;
        flex-shrink: 0;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .provider-tabs {
        overflow-x: auto;
        padding: 8px 16px;
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .tab-btn svg {
        width: 16px;
        height: 16px;
    }

    .file-list-container {
        flex: 1;
        overflow-y: auto;
        padding: 12px;
    }

    .modal-footer {
        padding: 16px;
        flex-shrink: 0;
    }

    .modal-footer .btn {
        width: auto;
    }

    /* Share buttons on success page */
    .share-buttons {
        flex-wrap: wrap;
    }

    .share-buttons .btn {
        flex: 1;
        min-width: calc(50% - 4px);
        justify-content: center;
    }

    .share-buttons .btn svg {
        width: 18px;
        height: 18px;
    }

    /* Billing cards */
    .billing-cards {
        grid-template-columns: 1fr;
    }

    /* Table responsive */
    .table-container {
        overflow-x: auto;
        margin: 0 -16px;
        padding: 0 16px;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 10px 12px;
    }

    /* Toast notifications */
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        width: 100%;
        box-sizing: border-box;
    }

    /* Footer */
    footer {
        padding: 20px 16px;
        font-size: 0.85rem;
    }
}

/* Dashboard */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin: 0 0 8px 0;
}

.dashboard-header p {
    color: var(--text-light);
    margin: 0;
}

/* Usage Cards */
.usage-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.usage-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.usage-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.usage-card.plan-card .usage-icon {
    background: #e8f5e9;
    color: #4caf50;
}

.usage-info h3 {
    margin: 0 0 4px 0;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.usage-value {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.plan-name {
    text-transform: capitalize;
}

.usage-note {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill.storage {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.progress-fill.files {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

/* Files Section */
.files-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    margin: 0;
    font-size: 1.125rem;
}

/* Files Table */
.files-table-container {
    overflow-x: auto;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
}

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

.files-table th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.files-table tbody tr:hover {
    background: var(--bg-light);
}

.files-table tbody tr:last-child td {
    border-bottom: none;
}

.filename-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

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

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-delete:hover {
    background: #ef5350;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    color: var(--text-light);
    opacity: 0.5;
    margin-bottom: 16px;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

.empty-state p {
    margin: 0 0 20px 0;
    color: var(--text-light);
}

/* Billing Section */
.billing-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 40px;
}

.billing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 24px;
}

.billing-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
}

.billing-info h3 {
    margin: 0 0 8px 0;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.billing-plan {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-transform: capitalize;
}

.billing-status {
    margin: 8px 0 0 0;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #e0e0e0;
    color: #666;
}

.status-badge.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.warning {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.inactive {
    background: #ffebee;
    color: #c62828;
}

.billing-features {
    padding: 24px;
}

.billing-features h3 {
    margin: 0 0 16px 0;
    font-size: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-light);
}

.features-list li.included {
    color: var(--text-dark);
}

.features-list li svg {
    color: #ccc;
}

.features-list li.included svg {
    color: #4caf50;
}

.verification-needed {
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
    .billing-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .billing-cards {
        grid-template-columns: 1fr;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-color: #000;
        --text-light: #333;
    }

    [data-theme="dark"] {
        --border-color: #fff;
        --text-color: #fff;
        --text-light: #ccc;
    }
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease-out;
}

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

.toast-error {
    background-color: var(--error-color);
    color: white;
}

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Share button styles */
.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-share svg {
    width: 18px;
    height: 18px;
}

/* Native share button (shown only when Web Share API is available) */
.native-share-btn {
    display: none;
}

@supports (navigator.share) {
    .native-share-btn {
        display: inline-flex;
    }
}

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

.btn-secondary .spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

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

