/* Playlist Assignments Styles */
.playlist-assignments-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.assignment-controls {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.assignment-controls .form-group {
    flex: 1;
    min-width: 300px;
}

.assignment-actions {
    display: flex;
    gap: 10px;
}

.player-assignments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.player-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.player-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
}

.frame-assignments {
    display: grid;
    gap: 15px;
}

.frame-assignment {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    align-items: center;
}

.frame-assignment label {
    font-weight: 600;
    color: #34495e;
    margin: 0;
}

.frame-playlist-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.frame-playlist-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.assignment-info {
    grid-column: 1 / -1;
    margin-top: 5px;
}

.assignment-info small {
    color: #7f8c8d;
    font-size: 12px;
}

.analytics-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analytics-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-grid {
    min-height: 200px;
}

.loading {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 40px;
}

.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.analytics-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-header {
    background: #3498db;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h4 {
    margin: 0;
    font-size: 16px;
}

.usage-count {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.card-body {
    padding: 15px;
}

.stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.stat:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.stat label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.stat span {
    color: #6c757d;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .player-assignments {
        grid-template-columns: 1fr;
    }
    
    .assignment-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .assignment-controls .form-group {
        min-width: auto;
    }
    
    .assignment-actions {
        justify-content: center;
    }
    
    .frame-assignment {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .frame-assignment label {
        text-align: left;
    }
    
    .analytics-cards {
        grid-template-columns: 1fr;
    }
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Control Styles */
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background: #27ae60;
}

.status-inactive {
    background: #e74c3c;
}

.status-pending {
    background: #f39c12;
}





