/* YouTube Audio Extractor - Downloads Page Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    margin: 0;
    padding-top: 80px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 154, 158, 0.2);
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #ff6b6b;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: rgba(255, 154, 158, 0.1);
    color: #ff6b6b;
}

.nav-link.active {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #ff6b6b;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.controls {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.search-box {
    flex: 1;
    min-width: 200px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: #ff9a9e;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-controls label {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.pagination-controls select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: white;
    font-size: 14px;
    outline: none;
}

.pagination-controls select:focus {
    border-color: #ff9a9e;
}

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

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #ff9a9e;
    background: #ff9a9e;
    color: white;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    font-weight: 600;
    color: #333;
    padding: 0 15px;
}

.refresh-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.refresh-btn:hover {
    transform: translateY(-2px);
}

.bulk-actions {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 15px;
}

.bulk-actions.show {
    display: flex;
}

.selection-info {
    font-weight: 500;
    color: #1976d2;
}

.bulk-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.bulk-download {
    background: #4caf50;
    color: white;
}

.bulk-download:hover {
    background: #45a049;
}

.bulk-delete {
    background: #f44336;
    color: white;
}

.bulk-delete:hover {
    background: #da190b;
}

.bulk-clear {
    background: #9e9e9e;
    color: white;
}

.bulk-clear:hover {
    background: #757575;
}

.files-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.file-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.file-card:hover {
    border-color: #ff9a9e;
    transform: translateY(-2px);
}

.file-card.selected {
    border-color: #2196f3;
    background: #e3f2fd;
}

.file-checkbox {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.file-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.file-icon {
    font-size: 2em;
    margin-right: 15px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-meta {
    color: #666;
    font-size: 0.85em;
}

.file-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-download {
    background: #28a745;
    color: white;
}

.btn-download:hover {
    background: #218838;
}

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

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

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

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

.empty-state h3 {
    margin-bottom: 10px;
    color: #999;
}

.format-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #ff9a9e;
    color: white;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .files-grid {
        grid-template-columns: 1fr;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
}