/* Custom styles for TGFiles Download */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Gradient background for user header */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* Ensure only left column text in gradient background is white */
.gradient-bg .col-lg-6:first-child h1,
.gradient-bg .col-lg-6:first-child h2,
.gradient-bg .col-lg-6:first-child h3,
.gradient-bg .col-lg-6:first-child h4,
.gradient-bg .col-lg-6:first-child h5,
.gradient-bg .col-lg-6:first-child h6,
.gradient-bg .col-lg-6:first-child p,
.gradient-bg .col-lg-6:first-child .lead {
    color: white !important;
}

.gradient-bg .col-lg-6:first-child .text-warning {
    color: #ffeaa7 !important;
}

/* Add text shadow for better readability on left column */
.gradient-bg .col-lg-6:first-child h1,
.gradient-bg .col-lg-6:first-child .display-6 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-purple {
    color: #6f42c1 !important;
}

.text-orange {
    color: #fd7e14 !important;
}

/* Loading states */
.htmx-request .spinner-border {
    display: inline-block !important;
}

.htmx-request .btn-text {
    display: none;
}

/* File type specific colors */
.file-type-document { color: #007bff; }
.file-type-photo { color: #28a745; }
.file-type-video { color: #dc3545; }
.file-type-audio { color: #ffc107; }
.file-type-voice { color: #17a2b8; }
.file-type-animation { color: #6f42c1; }
.file-type-sticker { color: #fd7e14; }

/* Hero section for landing page */
.hero-section {
    display: flex;
    align-items: center;
}

/* Feature icons styling */
.feature-icon {
    color: #667eea;
    margin-bottom: 1rem;
}

/* File card styles */
.file-card {
    transition: transform 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.file-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Download button styles */
.download-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(45deg, #20c997, #28a745);
    transform: scale(1.05);
}

/* Navigation brand styling */
.navbar-brand {
    font-weight: 700;
}

/* Stats card for user pages */
.stats-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .file-icon {
        font-size: 2rem;
    }
}

/* Animation for file cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Bootstrap Icons fallback */
.bi-download::before {
    content: "\f1c6";
}

/* Fallback for when Bootstrap Icons don't load */
@supports not (font-family: "bootstrap-icons") {
    .bi-download::before {
        content: "⬇";
        font-family: inherit;
    }
}