:root {
    --primary: #000;
    --primary-light: #000;
    --background: #f8fafc;
    --card-bg: #fff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --border-radius: 20px;
    --shadow: 0 10px 30px #0000000d;
    --shadow-hover: 0 20px 40px #0000001a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -ms-tap-highlight-color: transparent;
    -moz-tap-highlight-color: transparent;
    -o-tap-highlight-color: transparent
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Styles */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

header h1 {
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    cursor: pointer;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5;
}

/* File Grid */
main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.file-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: var(--card-bg);
    transition: var(--transition);
    opacity: 0;
}

.file-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: var(--transition);
    content: "";
    opacity: 0;
}

.file-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.file-card:hover::before {
    opacity: 1;
}

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

.file-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 56px - 20px);
}

.file-icon {
    display: flex;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-right: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    font-size: 1.4rem;
}

.file-icon.json {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.file-icon.apk {
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

.file-icon.exe {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.file-icon.zip {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.file-icon.other {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.file-info {
    flex-grow: 1;
}

.file-name {
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.file-meta {
    display: flex;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-type {
    font-weight: 500;
}

.file-desc {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.file-details {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.download-btn {
    display: flex;
    width: 100%;
    height: 52px;
    gap: 8px;
    padding: 14px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.download-btn:hover {
    box-shadow: 0 8px 20px #0000004d;
    transform: translateY(-2px);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.preview-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.3);
}

.no-files {
    text-align: center;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: var(--card-bg);
    transition: var(--transition);
}

/* Animation */
@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.file-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.file-card:nth-child(1) {
    animation-delay: 0.1s;
}

.file-card:nth-child(2) {
    animation-delay: 0.2s;
}

.file-card:nth-child(3) {
    animation-delay: 0.3s;
}

.file-card:nth-child(4) {
    animation-delay: 0.4s;
}

.file-card:nth-child(5) {
    animation-delay: 0.5s;
}

.file-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 16px;
    }

    header {
        margin-bottom: 40px;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1.1rem;
    }

    .file-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .file-card {
        padding: 24px;
    }

    .file-header {
        margin-bottom: 16px;
    }

    .file-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .file-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }

    .file-card {
        padding: 20px;
    }

    .file-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }

    .download-btn {
        padding: 12px;
    }
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--background);
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}