/* Estilos gerais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Programação */
.programacao {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline {
    position: relative;
    margin-top: 20px;
    overflow-x: auto;
}

.time-slots {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 10px;
}

.time-slot {
    min-width: 100px;
    text-align: center;
    padding: 5px;
    font-size: 0.9rem;
    color: #6c757d;
}

.now-indicator {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #dc3545;
    z-index: 1;
}

.channels {
    display: flex;
    flex-direction: column;
}

.channel {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.channel-info {
    width: 150px;
    display: flex;
    align-items: center;
    padding-right: 15px;
}

.channel-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.channel-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.programs {
    flex: 1;
    position: relative;
    height: 60px;
}

.program {
    position: absolute;
    height: 100%;
    background-color: #e9ecef;
    border-radius: 4px;
    padding: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.program:hover {
    background-color: #dee2e6;
    transform: scale(1.02);
    z-index: 1;
}

.program-info {
    font-size: 0.8rem;
}

.program-info h5 {
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.program-info p {
    margin: 5px 0 0;
    color: #6c757d;
}

/* Filtros */
.filters {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-bar {
    margin-bottom: 20px;
}

.list-group-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Cards de Categoria */
.category-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.category-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #212529;
}

.category-card .card-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0b5ed7;
    color: white;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: #212529;
    color: #fff;
    padding: 3rem 0;
    margin-top: 3rem;
}

footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

footer p {
    color: #adb5bd;
    line-height: 1.6;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #adb5bd;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

/* Responsividade */
@media (max-width: 768px) {
    .channel-info {
        width: 120px;
    }
    
    .time-slot {
        min-width: 80px;
    }
    
    .program-info h5 {
        font-size: 0.8rem;
    }
    
    .program-info p {
        font-size: 0.7rem;
    }
    
    .category-card {
        margin-bottom: 1rem;
    }
    
    footer {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}