/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* Top Banner */
.top-banner {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 5px 0;
    font-size: 0.85rem;
    border-bottom: 3px solid #e74c3c;
}

.top-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-warning {
    color: #e74c3c; /* Red warning color */
    font-weight: bold;
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Header */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 20px 0;
    margin-bottom: 30px;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.main-header h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.main-header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-header nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.main-header nav a.active {
    background-color: #3498db;
    color: #fff;
}

.main-header nav a.disabled {
    color: #aaa;
    cursor: not-allowed;
    background-color: #eee;
}

/* Main Content */
.content-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.upload-section {
    flex: 2;
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #e0e0e0;
}

.sidebar {
    flex: 1;
}

h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.description {
    margin-bottom: 25px;
    color: #666;
}

code {
    background: #f8f9fa;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
    color: #e74c3c;
}

/* Status Panel */
.status-panel {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    flex-direction: column;
}

.status-item .label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-item .value {
    font-weight: bold;
    color: #333;
}

.status-item .value.online {
    color: #27ae60;
}

.status-item .value.outdated {
    color: #e74c3c;
}

/* Form */
.config-form {
    margin-bottom: 30px;
}

.config-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #444;
}

.config-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 15px;
    resize: vertical;
    background: #fafafa;
}

.config-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.alert.error {
    background-color: #fde8e7;
    color: #c0392b;
    border: 1px solid #fadbd8;
}

.alert.success {
    background-color: #eafaf1;
    color: #27ae60;
    border: 1px solid #d5f5e3;
}

.alert pre {
    background: rgba(255,255,255,0.5);
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    overflow-x: auto;
}

/* Sidebar Widgets */
.widget {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.widget h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.news-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-list .date {
    font-size: 0.75rem;
    color: #999;
    display: block;
    margin-bottom: 3px;
}

.sidebar-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 10px;
    opacity: 0.8;
}

/* Footer */
.main-footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 30px 0;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

.main-footer .small {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #aaa;
}

.main-footer a {
    color: #aaa;
    text-decoration: none;
}
