/* style.css */
body {
    background-color: #1a1a2e;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 { text-align: center; color: #e94560; }

.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tv-card {
    background-color: #16213e;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #0f3460;
    position: relative;
    transition: 0.3s;
}

.tv-card.active { border-color: #2ecc71; box-shadow: 0 0 15px rgba(46, 204, 113, 0.3); }
.tv-card.paused { border-color: #f1c40f; }
.tv-card.available { border-color: #95a5a6; }

.tv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tv-status {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.status-avail { background: #95a5a6; color: #000; }
.status-active { background: #2ecc71; color: #000; }
.status-paused { background: #f1c40f; color: #000; }

.timer {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    color: #e94560;
}

.btn-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

button, .btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    text-align: center;
}

.btn-start { background-color: #2ecc71; width: 100%; }
.btn-stop { background-color: #e74c3c; }
.btn-pause { background-color: #f39c12; }
.btn-move { background-color: #3498db; }
.btn-off { background-color: #7f8c8d; }

/* Modal Pindah TV */
.modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); }
.modal-content { background:#16213e; margin: 15% auto; padding: 20px; width: 300px; border-radius: 10px; text-align: center; }