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

.container-fluid {
    flex: 1;
}

.footer {
    margin-top: auto;
}

/* Logs Container */
.logs-container {
    height: 600px;
    overflow-y: auto;
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    padding: 15px;
}

.logs-container pre {
    color: #d4d4d4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Status Indicator */
#status-indicator {
    min-width: 80px;
    display: inline-block;
    text-align: center;
}

.status-running {
    background-color: #28a745 !important;
    animation: pulse 2s infinite;
}

.status-stopped {
    background-color: #dc3545 !important;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Upload Progress */
#upload-progress {
    height: 30px;
}

/* Stream Indicator */
#stream-indicator {
    font-size: 10px;
    margin-right: 5px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.3;
    }
}

/* Alert Animations */
.alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logs-container {
        height: 400px;
    }
}

/* Log levels coloring */
.logs-container pre {
    line-height: 1.4;
}

.log-error {
    color: #f48771;
}

.log-warn {
    color: #dcdcaa;
}

.log-info {
    color: #4ec9b0;
}

.log-debug {
    color: #9cdcfe;
}

/* Sidebar Navigation */
.sidebar {
    background-color: #f8f9fa;
    min-height: calc(100vh - 100px);
    padding: 20px 0;
    border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
    color: #495057;
    padding: 12px 20px;
    margin-bottom: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #212529;
}

.sidebar .nav-link.active {
    background-color: #007bff;
    color: white;
}

.sidebar .nav-link i {
    margin-right: 8px;
    width: 20px;
    display: inline-block;
}

/* View Transitions */
.view-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome View */
#view-welcome h1 {
    color: #343a40;
}

#view-welcome .welcome-card {
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

#view-welcome .welcome-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Player Management */
#players-tbody code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #495057;
}

#players-restart-warning {
    position: sticky;
    bottom: 20px;
    z-index: 100;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Forms */
#add-player-form input:valid {
    border-color: #28a745;
}

#add-player-form input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding: 10px 0;
    }

    .sidebar .nav {
        flex-direction: row;
        justify-content: space-around;
    }

    .sidebar .nav-link {
        padding: 8px 12px;
        text-align: center;
        font-size: 0.85rem;
    }

    .sidebar .nav-link i {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
        font-size: 1.2rem;
    }

    #view-welcome h1 {
        font-size: 1.75rem;
    }
}
