:root {
    --bg-dark: #1a1d21;
    --card-dark: #242729;
    --text-dark: #e9ecef;
    --border-dark: #2d3235;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
}

.brand-link {
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    margin-bottom: 20px;
}

.brand-link:hover {
    color: #0d6efd;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.form-control {
    background-color: var(--card-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.form-control:focus {
    background-color: var(--card-dark);
    border-color: #0d6efd;
    color: var(--text-dark);
    box-shadow: none;
}

.files-list {
    max-width: 800px;
    margin: 30px auto;
}

.file-item {
    background-color: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-info {
    flex: 1;
    overflow: hidden;
}

.file-name {
    margin-bottom: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 0.95rem;
    line-height: 1.4;
}

.file-size {
    color: #6c757d;
    font-size: 14px;
}

.buttons-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-row {
    display: flex;
    gap: 10px;
}

.btn-action {
    flex: 1;
    min-width: 120px;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action i {
    font-size: 1.1rem;
}

.btn-action.download {
    background: linear-gradient(45deg, #fceabb, #f8b500);
}

.btn-action.filepress {
    background: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);
}

.btn-action.xfile {
    background: linear-gradient(45deg, #6441A5, #2a0845);
}

.btn-action.gdtot {
    background: linear-gradient(45deg, #FF5F6D, #FFC371);
}

.btn-action:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-action.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.file-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.file-icon.video { color: #ff4444; }
.file-icon.document { color: #4285f4; }
.file-icon.image { color: #0f9d58; }

.badge {
    font-weight: normal;
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
}

.bg-primary {
    background: linear-gradient(45deg, #2193b0, #6dd5ed);
}

.bg-info {
    background: linear-gradient(45deg, #4e54c8, #8f94fb);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Desktop layout */
@media (min-width: 769px) {
    .buttons-group {
        min-width: 300px;
    }
    
    .btn-action {
        min-width: 130px;
    }
}

/* Mobile layout */
@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        padding: 12px;
    }

    .file-info {
        width: 100%;
        margin-bottom: 12px;
    }

    .buttons-group {
        width: 100%;
    }

    .first-row,
    .second-row {
        flex: 1;
    }

    .btn-action {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .btn-action {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .btn-action i {
        font-size: 0.9rem;
    }
}

/* Telegram button styles */
.telegram-container {
    display: flex;
    justify-content: center;
    margin: 25px auto;
    max-width: 600px;
    padding: 0 15px;
}

.telegram-button {
    background: linear-gradient(135deg, #0088cc 0%, #0056a3 100%);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.2);
    position: relative;
    overflow: hidden;
}

.telegram-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.telegram-button i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.telegram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
    color: white;
    text-decoration: none;
}

.telegram-button:hover::before {
    opacity: 1;
}

.telegram-button:hover i {
    transform: scale(1.1);
}

.telegram-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.2);
}























