@font-face {
    font-family: 'IRANSansWeb';
    src: url('IRANSansWeb(FaNum).ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'IRANSansWeb', Tahoma, sans-serif;
    background: #f5f7fb;
    color: #1e293b;
    line-height: 1.6;
}

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

.site-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    border-bottom: 4px solid #3b82f6;
}

.site-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.search-box {
    background: white;
    padding: 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e2e8f0;
}

.search-input {
    width: 70%;
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'IRANSansWeb', sans-serif;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.reset-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: 'IRANSansWeb', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    margin-right: 10px;
    transition: 0.2s;
}

.reset-btn:hover {
    background: #dc2626;
}

.result-count {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #64748b;
}

.breadcrumb {
    padding: 20px 0 10px;
    font-size: 0.9rem;
    color: #475569;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.files-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 40px;
}

.file-item {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.file-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.file-info {
    flex: 3;
    min-width: 200px;
}

.file-name {
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.file-name .icon {
    font-size: 1.3rem;
}

.file-details {
    font-size: 0.8rem;
    color: #475569;
    margin-top: 6px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.file-details span {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
}

.file-actions {
    flex: 1;
    text-align: left;
    min-width: 100px;
}

.download-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'IRANSansWeb', sans-serif;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.folder-link {
    text-decoration: none;
    color: #0f172a;
    display: block;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 24px;
    color: #94a3b8;
}

.site-footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    font-size: 0.85rem;
}

@media (max-width: 700px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .file-actions {
        width: 100%;
        text-align: right;
    }
    .search-input {
        width: 100%;
        margin-bottom: 10px;
    }
    .reset-btn {
        width: 100%;
    }
}