* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

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

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
}

section {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

h3 {
    color: #764ba2;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Upload Section */
.upload-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="file"],
input[type="text"] {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="file"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

#uploadStatus {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

#uploadStatus.success {
    background-color: #d4edda;
    color: #155724;
}

#uploadStatus.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Servers Section */
.add-server {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-server input {
    flex: 1;
}

.servers-list ul {
    list-style: none;
}

.servers-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

.servers-list li span {
    font-weight: 500;
}

.servers-list li button {
    background: #dc3545;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.servers-list li button:hover {
    background: #c82333;
}

/* Video Feed */
#videoFeed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.video-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #000;
}

.video-info {
    padding: 15px;
}

.video-info h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.video-info p {
    color: #666;
    font-size: 0.9rem;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .add-server {
        flex-direction: column;
    }
    
    #videoFeed {
        grid-template-columns: 1fr;
    }
}
