/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e4e6ea;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-btn {
    background: rgba(100, 181, 246, 0.1);
    color: #64b5f6;
    border: 1px solid rgba(100, 181, 246, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.version-btn:hover {
    background: rgba(100, 181, 246, 0.2);
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.2);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #64b5f6;
}

/* ===================== BANDEAU MIGRATION DOMAINE ===================== */
.migration-banner {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.18) 0%, rgba(255, 87, 34, 0.18) 100%);
    border-bottom: 1px solid rgba(255, 152, 0, 0.35);
    padding: 0.65rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    backdrop-filter: blur(8px);
    animation: slideBannerDown 0.4s ease forwards;
    overflow: hidden;
}

@keyframes slideBannerDown {
    from { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
    to   { max-height: 80px; opacity: 1; padding-top: 0.65rem; padding-bottom: 0.65rem; }
}

.migration-banner.migration-banner-hiding {
    animation: slideBannerUp 0.4s ease forwards;
}

@keyframes slideBannerUp {
    from { max-height: 80px; opacity: 1; }
    to   { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
}

.migration-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    flex-wrap: wrap;
}

.migration-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.migration-text {
    font-size: 0.9rem;
    color: #ffcc80;
    line-height: 1.5;
}

.migration-text strong {
    color: #ffa726;
}

.migration-text code {
    background: rgba(0, 0, 0, 0.25);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: #ffab40;
}

.migration-link {
    color: #64b5f6;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(100, 181, 246, 0.5);
    transition: color 0.2s ease;
}

.migration-link:hover {
    color: #90caf9;
}

.migration-close {
    background: none;
    border: none;
    color: rgba(255, 204, 128, 0.6);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.migration-close:hover {
    color: #ffcc80;
    background: rgba(255, 152, 0, 0.15);
}

/* Contenu principal */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===================== TOAST NOTIFICATIONS ===================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 250px;
    max-width: 350px;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    pointer-events: auto;
    animation: slideInRight 0.3s ease forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.toast-hiding {
    opacity: 0;
    transform: translateX(100%);
}

.toast-success {
    background: rgba(76, 175, 80, 0.85);
    color: #fff;
    border-left: 4px solid #4CAF50;
}

.toast-error, .toast-danger {
    background: rgba(244, 67, 54, 0.85);
    color: #fff;
    border-left: 4px solid #F44336;
}

.toast-info {
    background: rgba(33, 150, 243, 0.85);
    color: #fff;
    border-left: 4px solid #2196F3;
}

.toast-warning {
    background: rgba(255, 152, 0, 0.85);
    color: #fff;
    border-left: 4px solid #FF9800;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    display: flex;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #fff;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===================== CARTE DE STOCKAGE COMPACTE ===================== */
.storage-card {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.storage-card:hover {
    border-color: rgba(100, 181, 246, 0.2);
}

.storage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.storage-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.storage-header h3 {
    color: #78909c;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.storage-mini-bar {
    flex: 1;
    max-width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.storage-mini-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 50%, #ffc107 75%, #ff5722 100%);
    background-size: 300% 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.storage-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.storage-mini-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #78909c;
}

.storage-mini-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.storage-mini-stat .value {
    color: #b0bec5;
    font-weight: 500;
}

.storage-toggle {
    background: none;
    border: none;
    color: #64b5f6;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storage-toggle:hover {
    color: #90caf9;
}

.storage-card.expanded .storage-toggle {
    transform: rotate(180deg);
}

.storage-content {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: slideDown 0.3s ease;
}

.storage-card.expanded .storage-content {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.storage-warning {
    font-size: 0.75rem;
    color: #ffa726;
    background: rgba(255, 167, 38, 0.1);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 167, 38, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.storage-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.storage-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.storage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 50%, #ffc107 75%, #ff5722 100%);
    background-size: 300% 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.storage-percent {
    font-size: 0.8rem;
    color: #b0bec5;
    white-space: nowrap;
}

.storage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(20, 20, 35, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-icon {
    font-size: 1.1rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e4e6ea;
}

.stat-label {
    font-size: 0.7rem;
    color: #78909c;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===================== BANNIÈRE D'EXPIRATION ===================== */
.expiration-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.15) 0%, rgba(255, 87, 34, 0.15) 100%);
    border: 1px solid rgba(255, 167, 38, 0.3);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.expiration-icon {
    font-size: 1.5rem;
}

.expiration-text {
    color: #ffa726;
    font-size: 0.95rem;
}

.expiration-text strong {
    color: #ff7043;
}

/* ===================== ONGLETS ===================== */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px 12px 0 0;
    background: rgba(30, 30, 50, 0.5);
    color: #b0bec5;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
}

.tab-btn:hover {
    background: rgba(30, 30, 50, 0.8);
    color: #64b5f6;
}

.tab-btn.active {
    background: rgba(30, 30, 50, 0.9);
    color: #64b5f6;
    border-color: rgba(100, 181, 246, 0.3);
    box-shadow: 0 -5px 20px rgba(100, 181, 246, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grille d'actions */
.actions-grid {
    margin-bottom: 2rem;
}

/* Cartes d'action */
.action-card {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(100, 181, 246, 0.3);
}

.action-card h2 {
    color: #64b5f6;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #b0bec5;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(20, 20, 35, 0.8);
    color: #e4e6ea;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
    font-family: 'Courier New', monospace;
}

/* ===================== ZONE DE DROP ===================== */
.drop-zone {
    position: relative;
    border: 2px dashed rgba(100, 181, 246, 0.4);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: rgba(20, 20, 35, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone:hover {
    border-color: #64b5f6;
    background: rgba(100, 181, 246, 0.05);
}

.drop-zone.drag-over {
    border-color: #64b5f6;
    background: rgba(100, 181, 246, 0.1);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(100, 181, 246, 0.3);
}

.drop-zone.has-file {
    border-color: #81c784;
    background: rgba(76, 175, 80, 0.1);
}

.drop-zone.has-file .drop-zone-content {
    display: none;
}

.drop-zone.has-file .file-selected {
    display: block;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-zone-content {
    pointer-events: none;
}

.drop-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.drop-text {
    font-size: 1.1rem;
    color: #64b5f6;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.drop-hint {
    font-size: 0.9rem;
    color: #78909c;
}

.file-selected {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    width: 100%;
    text-align: left;
}

.file-selected .file-icon {
    font-size: 2rem;
}

.file-selected .file-name {
    font-size: 1.1rem;
    color: #81c784;
    font-weight: 600;
    word-break: break-all;
}

.file-selected .file-size {
    font-size: 0.9rem;
    color: #78909c;
}

/* Liste de fichiers sélectionnés */
.selected-files-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.selected-file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: rgba(129, 199, 132, 0.08);
    border-radius: 6px;
    font-size: 0.82rem;
}

.selected-file-row-name {
    color: #a5d6a7;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.selected-file-row-size {
    color: #78909c;
    white-space: nowrap;
    flex-shrink: 0;
}

.selected-file-more {
    color: #78909c;
    font-style: italic;
    justify-content: center;
}

.selected-files-total {
    display: block;
    font-size: 0.8rem;
    color: #81c784;
    font-weight: 600;
    text-align: center;
    padding-top: 4px;
    border-top: 1px solid rgba(129, 199, 132, 0.2);
    width: 100%;
}

.upload-hint {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #78909c;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 181, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e6ea;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Page de paste */
.paste-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.paste-header h1 {
    color: #64b5f6;
    margin: 0;
}

.paste-actions {
    display: flex;
    gap: 1rem;
}

.paste-content {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.paste-content pre {
    background: rgba(20, 20, 35, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #64b5f6;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #e4e6ea;
}

/* ===================== PAGE FICHIER ===================== */
.file-header .file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-header .file-icon {
    font-size: 2.5rem;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-card {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.detail-card h3 {
    color: #64b5f6;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.85rem;
    color: #78909c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    color: #e4e6ea;
    font-weight: 500;
}

.file-extension {
    display: inline-block;
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Prévisualisation image */
.preview-card {
    border-color: rgba(100, 181, 246, 0.3);
}

.image-preview {
    display: flex;
    justify-content: center;
    background: rgba(20, 20, 35, 0.5);
    border-radius: 8px;
    padding: 1rem;
}

.image-preview img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Section partage */
.share-section {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.share-section h3 {
    color: #64b5f6;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.share-link-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.share-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(20, 20, 35, 0.8);
    color: #e4e6ea;
}

.share-input:focus {
    outline: none;
    border-color: #64b5f6;
}

.share-hint {
    font-size: 0.9rem;
    color: #78909c;
}

.share-hint strong {
    color: #81c784;
}

/* Footer */
.footer {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 1rem;
    color: #78909c;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================== SECTION HISTORIQUE ===================== */
.history-section {
    margin-bottom: 1.5rem;
}

.history-card {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.history-header h3 {
    color: #78909c;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-clear-btn {
    background: none;
    border: none;
    color: #78909c;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.history-clear-btn:hover {
    color: #ef5350;
    background: rgba(239, 83, 80, 0.1);
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.2);
    border-radius: 6px;
    color: #90caf9;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: rgba(100, 181, 246, 0.2);
    border-color: rgba(100, 181, 246, 0.4);
    transform: translateY(-1px);
}

.history-item.file {
    background: rgba(129, 199, 132, 0.1);
    border-color: rgba(129, 199, 132, 0.2);
    color: #a5d6a7;
}

.history-item.file:hover {
    background: rgba(129, 199, 132, 0.2);
    border-color: rgba(129, 199, 132, 0.4);
}

.history-item .icon {
    font-size: 0.9rem;
}

.history-empty {
    color: #546e7a;
    font-size: 0.8rem;
    font-style: italic;
    padding: 0.5rem 0;
}

/* ===================== ANIMATION UPLOAD ===================== */
.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 30, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    animation: fadeInOverlay 0.3s ease;
}

.upload-overlay.active {
    display: flex;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.upload-modal {
    background: rgba(30, 30, 50, 0.95);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(100, 181, 246, 0.1);
    max-width: 400px;
    width: 90%;
    animation: slideUpModal 0.4s ease;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.upload-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(100, 181, 246, 0.2);
    border-top-color: #64b5f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.upload-title {
    color: #64b5f6;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-subtitle {
    color: #78909c;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.upload-progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #64b5f6, #81c784);
    border-radius: 8px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressPulse 1.5s ease infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.upload-progress-text {
    color: #b0bec5;
    font-size: 0.85rem;
}

.upload-file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(100, 181, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.upload-file-info .icon {
    font-size: 1.2rem;
}

.upload-file-info .name {
    color: #90caf9;
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .tab-grid {
        grid-template-columns: 1fr;
    }

    .tabs-container {
        flex-direction: column;
    }

    .tab-btn {
        border-radius: 8px;
    }

    .paste-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .paste-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .share-link-container {
        flex-direction: column;
    }

    .file-header .file-info {
        flex-direction: column;
        text-align: center;
    }

    .storage-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .storage-header-left {
        flex-direction: column;
        width: 100%;
    }

    .storage-mini-bar {
        max-width: 100%;
        width: 100%;
    }

    .storage-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .storage-mini-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .storage-bar-container {
        flex-direction: column;
    }

    .expiration-banner {
        flex-direction: column;
        text-align: center;
    }

    .history-list {
        flex-direction: column;
    }

    .history-item {
        width: 100%;
        justify-content: center;
    }
}

/* ===================== MODALS ===================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(30, 30, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.modal-header h2 {
    color: #64b5f6;
    margin: 0;
    font-size: 1.4rem;
}

.modal-close {
    background: none;
    border: none;
    color: #b0bec5;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    color: #e4e6ea;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 1rem;
}

.changelog-section {
    margin-bottom: 1.5rem;
}

.changelog-section:last-child {
    margin-bottom: 0;
}

.changelog-title {
    color: #90caf9;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.changelog-list {
    list-style-type: none;
    padding-left: 0.5rem;
}

.changelog-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #e4e6ea;
}

.changelog-list li::before {
    content: "•";
    color: #64b5f6;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.changelog-list li strong {
    color: #fff;
    font-weight: 600;
}