/* TempFile Main Page Styles - Minimalistic Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
            background-color: #ffffff;
            color: #000000;
            line-height: 1.6;
            min-height: 100vh;
            transition: all 0.3s ease;
        }

        .container {
            max-width: 900px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Header */
        .header {
            background: #ffffff;
            border-bottom: 1px solid #e5e5e5;
            padding: 20px 0;
            margin-bottom: 30px;
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .logo-section {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

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

        .logo-icon {
            width: 28px;
            height: 28px;
            fill: none;
            stroke: #000000;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .logo h1 {
            font-size: 1.5rem;
            font-weight: 600;
            color: #000000;
            letter-spacing: -0.025em;
        }

        .tagline {
            font-size: 0.9rem;
            color: #666666;
            font-weight: 500;
            letter-spacing: 0.025em;
        }

        .nav-section {
            display: flex;
            flex-direction: column;
            gap: 15px;
            align-items: flex-end;
        }

        .nav-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .nav-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            background: rgba(0, 0, 0, 0.05);
            border: 2px solid transparent;
            border-radius: 8px;
            text-decoration: none;
            color: #333333;
            font-weight: 500;
            font-size: 0.9rem;
            transition: all 0.2s ease;
        }

        .nav-btn.active,
        .nav-btn:hover {
            background: rgba(0, 0, 0, 0.1);
            border-color: #000000;
            color: #000000;
            transform: translateY(-1px);
        }

        .nav-icon {
            width: 16px;
            height: 16px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .limits-info {
            font-size: 0.8rem;
            color: #666666;
            display: flex;
            align-items: center;
            gap: 6px;
            text-align: right;
        }
        
        /* Mobile Responsive */
        @media (max-width: 768px) {
            .container {
                padding: 12px;
            }

            .header-top {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }

            .nav-section {
                align-items: center;
                width: 100%;
            }

            .nav-buttons {
                justify-content: center;
            }
            
            .nav-btn {
                padding: 10px 6px;
            }


            .limits-info {
                text-align: center;
                font-size: 0.75rem;
                display: inline-block;
            }

            .logo h1 {
                font-size: 1.5rem;
            }
        }

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background-color: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    font-feature-settings: 'tnum';
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #666666;
    font-weight: 500;
    margin-top: 4px;
}

/* Page Content */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Cards */
.card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

        /* Upload Section */
        .upload-section {
            margin-bottom: 30px;
        }

        .upload-tabs {
            display: flex;
            gap: 5px;
            margin-bottom: 25px;
            background: #f8f8f8;
            padding: 5px;
            border-radius: 8px;
            border: 1px solid #e5e5e5;
        }

        .tab {
            flex: 1;
            padding: 12px 20px;
            background: transparent;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            font-size: 0.95rem;
            color: #666666;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .tab.active,
        .tab:hover {
            background: #ffffff;
            color: #000000;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        /* Forms */
        .upload-form {
            display: none;
        }

        .upload-form.active {
            display: block;
        }

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

        .form-group label {
            display: block;
            font-weight: 600;
            color: #000000;
            margin-bottom: 8px;
            font-size: 0.95rem;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e5e5e5;
            border-radius: 8px;
            font-size: 0.95rem;
            background: #ffffff;
            color: #000000;
            transition: all 0.2s ease;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #000000;
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
        }

.size-warning {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 5px;
    font-style: italic;
    font-weight: 500;
}

/* File Drop Zone */
.file-drop-zone {
    border: 2px dashed #cccccc;
    border-radius: 10px;
    padding: 63px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.file-drop-zone:hover {
    border-color: #000000;
    background-color: #f8f8f8;
}

.file-drop-zone.dragover {
    border-color: #000000;
    background-color: #f0f8ff;
}

.file-drop-zone.has-files {
    border-color: #28a745;
    background-color: #f8fff8;
}

/* Upload Progress */
.upload-progress {
    display: none;
    margin: 20px 0;
}

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

.progress-fill {
    height: 100%;
    background-color: #000000;
    transition: width 0.3s ease;
    width: 0%;
}

.chunk-info {
    font-size: 0.9rem;
    color: #666666;
    word-break: break-all;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.btn:hover {
    background-color: #333333;
    border-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
    background-color: dimgrey;
    border-color: dimgrey;
    cursor: not-allowed;
    transform: none;
}

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

.btn-copy {
    background-color: #ffffff;
    color: #000000;
    border-color: #cccccc;
}

.btn-copy:hover {
    background-color: #f8f8f8;
    border-color: #999999;
}

.btn-delete {
    background-color: #ffffff;
    color: #dc3545;
    border-color: #dc3545;
}

.btn-delete:hover {
    background-color: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

/* Alerts */
#alerts {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

/* Files List */
.files-list {
    margin-top: 30px;
}


#searchInput {
    padding: 8px 35px 8px 12px;
    border: 2px solid #e0e6ed;
    border-radius: 20px;
    font-size: 16px;
    width: 180px;
    padding-left: 35px;
    background: #ffffff;
}

#sortSelect,
#perPageSelect {
    padding: 8px 12px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
}

#filesContainer {
    background: #f8f8f8;
    border-radius: 8px;
    color: #666666;
}

#filesContainer:has(.file-item) {
    background: #ffffff;
    border-radius: 8px;
    color: #666666;
}

.file-item {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.5s ease;
    border-left: 4px solid #000;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    font-size: 1rem;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-details {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 8px;
}

.file-url {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    word-break: break-all;
    border: 1px solid #bbdefb;
}

.file-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 20px;
}

/* user content*/

/* Extracted CSS Classes */

/* File selection info styling */
.selected-files-info {
    background: #f0f8ff;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Drop zone styling when files are selected */
.drop-zone-instructions {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 10px;
}

/* Pagination container */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

/* Pagination button */
.pagination-btn {
    padding: 8px 12px;
    border: none;
    background: #000;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

/* Pagination button current page */
.pagination-btn-current {
    padding: 8px 12px;
    border: none;
    background: #000;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Pagination button inactive */
.pagination-btn-inactive {
    padding: 8px 12px;
    border: none;
    background: white;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    font-weight: normal;
    border: 1px solid #ddd;
}

/* Pagination ellipsis */
.pagination-ellipsis {
    padding: 8px 12px;
    color: #666;
}

/* Pagination info text */
.pagination-info {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Empty state text */
.empty-state {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* No results state text */
.no-results {
    text-align: center;
    color: #666;
    padding: 40px;
}

/* Live countdown animations and styles */
.live-countdown.expires-critical {
    animation: pulse 1s infinite;
}

/* SVG icon styling */
.action-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.status-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.alert-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.arrow-icon {
    width: 12px;
    height: 12px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
}

.warning-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: text-bottom;
    margin: 0 4px;
}

.live-countdown {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}
.expires-safe {
    background: #d4edda;
    color: #155724;
}
.expires-soon {
    background: #fff3cd;
    color: #856404;
}
.expires-critical {
    background: #f8d7da;
    color: #721c24;
}
.expired {
    background: #6c757d;
    color: white;
}
.file-expired {
    opacity: 0.6;
    background: #f8f9fa !important;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Search controls styling */
.search-controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-actions-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-container {
    position: relative;
}

.search-input {
    padding: 8px 35px 8px 12px;
    border: 2px solid #e0e6ed;
    border-radius: 20px;
    font-size: 16px;
    width: 180px;
    padding-left: 35px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgb(153, 153, 153);
}

.sort-select, .per-page-select {
    padding: 8px 12px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

/* Files container initial state */
.files-container-empty {
    text-align: center;
    color: #666;
    padding: 20px;
}


        /* Homepage Content */
        .homepage-content {
            margin: 40px 0;
        }
        
        .homepage-content a {
            color: #000000;
            text-decoration: none;
            font-weight: 500;
         }

        .hero-section {
            text-align: center;
            margin-bottom: 40px;
        }

        .hero-section h1 {
            font-size: 2rem;
            font-weight: 600;
            color: #000000;
            margin-bottom: 15px;
        }

        .hero-section p {
            font-size: 1.1rem;
            color: #666666;
            max-width: 800px;
            margin: 0 auto;
        }

        /* Upload Methods */
        .upload-methods {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin: 40px 0;
        }

        .method-card {
            background: #f8f8f8;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            padding: 25px;
        }

        .method-card h4 {
            font-size: 1.1rem;
            font-weight: 600;
            color: #000000;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .method-card p {
            color: #666666;
            font-size: 0.95rem;
        }

        /* Features Grid */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 40px 0;
        }

        .feature-card {
            background: #f8f8f8;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            padding: 20px;
        }
        
        .feature-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.12);
        }

        .feature-card h3 {
            font-size: 1.1rem;
            font-weight: 600;
            color: #000000;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .feature-card p {
            color: #666666;
            font-size: 0.9rem;
        }

        /* Security Badge */
        .security-badge {
            background: #f8f8f8;
            border: 2px solid #e5e5e5;
            border-radius: 8px;
            padding: 20px;
            margin: 30px 0;
            text-align: center;
        }

        .security-badge p {
            color: #333333;
            font-size: 0.95rem;
            align-items: center;
            justify-content: center;
        }

        /* Key Benefits */
        .key-benefits {
            background: #f8f8f8;
            border: 1px solid #e5e5e5;
            border-radius: 12px;
            padding: 25px;
            margin: 30px 0;
        }

        .key-benefits h3 {
            font-size: 1.3rem;
            font-weight: 600;
            color: #000000;
            margin-bottom: 20px;
        }

        .benefits-list {
            list-style: none;
            padding: 0;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 10px;
        }

        .benefits-list li {
            padding: 8px 0;
            padding-left: 25px;
            position: relative;
            color: #333333;
        }

        .benefits-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #000000;
            font-weight: 600;
        }

        /* Sections */
        .sections {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin: 40px 0;
        }

        .section {
            background: #f8f8f8;
            border: 1px solid #e5e5e5;
            border-radius: 12px;
            padding: 25px;
        }

        .section h2 {
            font-size: 1.2rem;
            font-weight: 600;
            color: #000000;
            margin-bottom: 20px;
        }

        .nav-links {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .nav-links a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 6px;
            text-decoration: none;
            color: #333333;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .nav-links a:hover {
            background: rgba(0, 0, 0, 0.1);
            color: #000000;
        }
        
        /* Telegram Bot Styles */
        .telegram-bot {
            background: #f8f8f8;
            text-align: center;
            margin-bottom: 20px;
            transition: all 0.3s ease;
        }
        
        .telegram-bot:hover {
            transform: translateY(-2px);
        }
        
        .telegram-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 12px 24px;
            background: #000000;
            color: #ffffff;
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            border-radius: 8px;
            transition: all 0.2s ease;
            margin-bottom: 10px;
            border: 2px solid #000000;
        }
        
        .telegram-btn:hover {
            background: #333333;
            border-color: #333333;
            transform: translateY(-1px);
        }
        
        .telegram-icon {
            width: 20px;
            height: 20px;
        }
        
        .telegram-desc {
            color: #666666;
            font-size: 0.9rem;
            margin: 0;
            font-weight: 500;
        }
        
        .bot-username {
            font-family: monospace;
            font-weight: 600;
            color: #000000;
        }
        


        /* Store Buttons */
        .store-buttons {
            display: flex;
            flex-direction: row;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        /* Store section updates */
        .store-btn {
            display: inline-block;
            cursor: default;
        }
        
        .store-btn:hover {
            transform: none;
        }
        
        .store-message {
            margin-top: 10px;
            font-size: 0.9rem;
            color: #666666;
            font-weight: 500;
        }


        /*.store-btn {*/
        /*    display: block;*/
        /*    transition: all 0.2s ease;*/
        /*}*/

        /*.store-btn:hover {*/
        /*    transform: translateY(-1px);*/
        /*}*/

        .store-btn img {
            width: 150px;
            height: auto;
            border-radius: 8px;
        }

        .crypto {
            font-size: 0.8rem;
            color: #666666;
            margin: 15px 0;
            word-break: break-all;
            font-family: monospace;
            background: rgba(0, 0, 0, 0.05);
            padding: 8px;
            border-radius: 4px;
        }

        .buymeacoffee {
            display: inline-block;
            margin-bottom: 10px;
            transition: all 0.2s ease;
        }

        .buymeacoffee:hover {
            transform: translateY(-1px);
        }

        .buymeacoffee img {
            width: 120px;
            height: auto;
            border-radius: 6px;
        }

        /* Footer */
        .footer {
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #e5e5e5;
            text-align: center;
            color: #666666;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .footer p {
            margin-bottom: 10px;
            align-items: center;
            justify-content: center;
        }

        /* Theme Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: rgba(0, 0, 0, 0.1);
            border: 2px solid #e5e5e5;
            border-radius: 50px;
            padding: 12px 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            font-weight: 500;
            color: #000000;
            z-index: 1000;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .theme-toggle:hover {
            background: rgba(0, 0, 0, 0.05);
            border-color: #000000;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }

        .theme-icon {
            width: 18px;
            height: 18px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }



/* Mobile Responsive */
        @media (max-width: 768px) {
            .hero-section h1 {
                font-size: 1.6rem;
            }
    
    .stats {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 5px;
    }
    
    .stat-card {
        min-width: 100px;
        padding: 10px 6px;
    }
    
    .stat-number {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    
    .file-actions {
        flex-direction: row;
        margin-left: 0;
        justify-content: stretch;
        width: 100%;
    }
    
    .file-actions .btn {
        flex: 1;
    }
    
    .form-group input, .form-group select {
        font-size: 16px;
    }

            .upload-methods,
            .features-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .sections {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            /* Keep store buttons horizontal */
                .store-buttons {
                    flex-wrap: nowrap;
                    overflow-x: auto;
                    padding: 5px 0;
                    flex-direction: row;
                }

            .theme-toggle {
                bottom: 15px;
                right: 15px;
                padding: 10px 14px;
                font-size: 0.85rem;
            }
        }

@media (max-width: 480px) {
    .hero-section {
        padding: 30px 16px;
    }
    
    .hero-section h1 {
        font-size: 1.4rem;
    }
    
    .card {
        padding: 13px;
    }
    
    .stats {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 4px;
    }
    
    .stat-card {
        min-width: 90px;
        padding: 8px 5px;
    }
    
    .stat-number {
        font-size: 1rem;
        margin-bottom: 2px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card,
    .stat-card,
    .file-item,
    .hero-section,
    .method-card,
    .feature-card,
    .key-benefits,
    .section {
        background-color: #f0f0f0;
        border-color: #000000;
    }
    
    .security-badge {
        background-color: #f0f0f0;
        border-color: #000000;
    }
    
    .upload-tabs {
        border-color: #000000;
    }
    
    .tab {
        border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .tab,
    .nav-btn,
    input,
    select,
    .file-drop-zone {
        transition: none;
    }
}

/* Print styles */
@media print {
    .container {
        margin: 0;
        padding: 20px;
    }
    
    .btn,
    .tab,
    .nav-btn,
    .file-actions {
        display: none;
    }
    
    .security-badge,
    .card,
    .file-item {
        background-color: transparent;
        border: 1px solid #000000;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-btn:hover,
    .btn:hover {
        transform: none;
    }
    
    .nav-btn:active,
    .btn:active {
        transform: scale(0.98);
    }
}

/* Ad Container Styles */
.ad-container {
    margin: 30px 0;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.ad-label {
    font-size: 0.75rem;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Mobile spacing */
@media (max-width: 768px) {
    .ad-container {
        margin: 20px 0;
        padding: 15px 0;
    }
}

/* Dark Theme Styles for Index Page */
body.dark-theme {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Header */
body.dark-theme .header {
    background: #1a1a1a;
    border-bottom: 1px solid #404040;
}

body.dark-theme .logo h1 {
    color: #ffffff;
}

body.dark-theme .logo-icon {
    stroke: #ffffff;
}

body.dark-theme .tagline {
    color: #cccccc;
}

body.dark-theme .nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
    border-color: transparent;
}

body.dark-theme .nav-btn.active,
body.dark-theme .nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
}

body.dark-theme .limits-info {
    color: #cccccc;
}

/* Stats */
body.dark-theme .stat-card {
    background-color: #2d2d2d;
    border: 1px solid #404040;
}

body.dark-theme .stat-number {
    color: #ffffff;
}

body.dark-theme .stat-label {
    color: #cccccc;
}

/* Cards */
body.dark-theme .card {
    background-color: #2d2d2d;
    border: 1px solid #404040;
}

/* Upload Section */
body.dark-theme .upload-tabs {
    background: #2d2d2d;
    border: 1px solid #404040;
}

body.dark-theme .tab {
    color: #cccccc;
}

body.dark-theme .tab.active,
body.dark-theme .tab:hover {
    background: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Forms */
body.dark-theme .form-group label {
    color: #ffffff;
}

body.dark-theme .form-group input,
body.dark-theme .form-group select {
    background: #1a1a1a;
    color: #ffffff;
    border: 2px solid #404040;
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

body.dark-theme .size-warning {
    color: #dc3545; /* Keep red warning color */
}

/* File Drop Zone */
body.dark-theme .file-drop-zone {
    border: 2px dashed #666666;
    background-color: #2d2d2d;
    color: #cccccc;
}

body.dark-theme .file-drop-zone:hover {
    border-color: #ffffff;
    background-color: #404040;
}

body.dark-theme .file-drop-zone.dragover {
    border-color: #ffffff;
    background-color: #404040;
}

body.dark-theme .file-drop-zone.has-files {
    border-color: #28a745; /* Keep green success color */
    background-color: #1a2e1a;
}

/* Upload Progress */
body.dark-theme .progress-bar {
    background-color: #404040;
}

body.dark-theme .progress-fill {
    background-color: #ffffff;
}

body.dark-theme .chunk-info {
    color: #cccccc;
}

/* Buttons */
body.dark-theme .btn {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

body.dark-theme .btn:hover {
    background-color: #cccccc;
    border-color: #cccccc;
}

body.dark-theme .btn:disabled {
    background-color: #666666;
    border-color: #666666;
    color: #999999;
}

body.dark-theme .btn-copy {
    background-color: #2d2d2d;
    color: #ffffff;
    border-color: #666666;
}

body.dark-theme .btn-copy:hover {
    background-color: #404040;
    border-color: #999999;
}

body.dark-theme .btn-delete {
    background-color: #2d2d2d;
    color: #dc3545; /* Keep red delete color */
    border-color: #dc3545;
}

body.dark-theme .btn-delete:hover {
    background-color: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

/* Alerts */
body.dark-theme .alert-success {
    background-color: #d4edda; /* Keep success colors */
    color: #155724;
    border-color: #c3e6cb;
}

body.dark-theme .alert-error {
    background-color: #f8d7da; /* Keep error colors */
    color: #721c24;
    border-color: #f5c6cb;
}

body.dark-theme .alert-warning {
    background-color: #fff3cd; /* Keep warning colors */
    color: #856404;
    border-color: #ffeaa7;
}

/* Files List */
body.dark-theme #searchInput {
    background: #2d2d2d;
    border: 2px solid #404040;
    color: #ffffff;
}

body.dark-theme #sortSelect,
body.dark-theme #perPageSelect {
    background: #2d2d2d;
    border: 2px solid #404040;
    color: #ffffff;
}

body.dark-theme #filesContainer {
    background: #1a1a1a;
    color: #cccccc;
}

body.dark-theme #filesContainer:has(.file-item) {
    background: #2d2d2d;
    color: #cccccc;
}

body.dark-theme .file-item {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-left: 4px solid #ffffff;
}

body.dark-theme .file-name {
    color: #ffffff;
}

body.dark-theme .file-details {
    color: #cccccc;
}

body.dark-theme .file-url {
    background: #1a2e3a;
    border: 1px solid #2d5a7b;
    color: #ffffff;
}

body.dark-theme .file-expired {
    opacity: 0.6;
    background: #404040 !important;
}

/* Homepage Content */
body.dark-theme .hero-section h1 {
    color: #ffffff;
}

body.dark-theme .hero-section p {
    color: #cccccc;
}

body.dark-theme .method-card,
body.dark-theme .feature-card,
body.dark-theme .key-benefits,
body.dark-theme .section {
    background: #2d2d2d;
    border: 1px solid #404040;
}

body.dark-theme .method-card h4,
body.dark-theme .feature-card h3,
body.dark-theme .key-benefits h3,
body.dark-theme .section h2 {
    color: #ffffff;
}

body.dark-theme .method-card p,
body.dark-theme .feature-card p {
    color: #cccccc;
}

body.dark-theme .benefits-list li {
    color: #cccccc;
}

body.dark-theme .benefits-list li::before {
    color: #ffffff;
}

body.dark-theme .nav-links a {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

body.dark-theme .nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.dark-theme .security-badge {
    background: #2d2d2d;
    border: 2px solid #404040;
}

body.dark-theme .security-badge p {
    color: #cccccc;
}

body.dark-theme .crypto {
    color: #cccccc;
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
body.dark-theme .footer {
    border-top: 1px solid #404040;
    color: #cccccc;
}

/* Theme Toggle */
body.dark-theme .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #404040;
    color: #ffffff;
}

body.dark-theme .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* Pagination */
body.dark-theme .pagination-container {
    background: #2d2d2d;
}

body.dark-theme .pagination-btn {
    background: #ffffff;
    color: #000000;
}

body.dark-theme .pagination-btn-current {
    background: #ffffff;
    color: #000000;
}

body.dark-theme .pagination-btn-inactive {
    background: #2d2d2d;
    color: #cccccc;
    border: 1px solid #404040;
}

body.dark-theme .pagination-ellipsis {
    color: #cccccc;
}

body.dark-theme .pagination-info {
    color: #cccccc;
}

/* Empty states */
body.dark-theme .empty-state,
body.dark-theme .no-results,
body.dark-theme .files-container-empty {
    color: #cccccc;
}

/* Search controls */
body.dark-theme .search-input {
    background: #2d2d2d;
    border: 2px solid #404040;
    color: #ffffff;
}

body.dark-theme .search-icon {
    color: #999999;
}

body.dark-theme .sort-select, 
body.dark-theme .per-page-select {
    background: #2d2d2d;
    border: 2px solid #404040;
    color: #ffffff;
}

/* Live countdown - keep the original colors for visibility */
body.dark-theme .expires-safe {
    background: #d4edda;
    color: #155724;
}

body.dark-theme .expires-soon {
    background: #fff3cd;
    color: #856404;
}

body.dark-theme .expires-critical {
    background: #f8d7da;
    color: #721c24;
}

body.dark-theme .expired {
    background: #6c757d;
    color: white;
}

/* Selected files info */
body.dark-theme .selected-files-info {
    background: #1a2e3a;
    color: #ffffff;
}

/* Dark theme support for store message */
body.dark-theme .store-message {
    color: #cccccc;
}

body.dark-theme .homepage-content a {
color: #ffffff;
}

/* Dark theme support */
body.dark-theme .telegram-bot {
    background: #2d2d2d;
}

body.dark-theme .telegram-btn {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

body.dark-theme .telegram-btn:hover {
    background: #cccccc;
    border-color: #cccccc;
}

body.dark-theme .telegram-desc {
    color: #cccccc;
}

body.dark-theme .bot-username {
    color: #ffffff;
}

/* Dark theme */
body.dark-theme .ad-container {
    border-top: 1px solid #404040;
    border-bottom: 1px solid #404040;
}

body.dark-theme .ad-label {
    color: #666666;
}