* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
    margin-bottom: 30px;
}

header h1 {
    color: #667eea;
    font-size: 1.8em;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.time {
    background: #f0f0f0;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

.card .status {
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

/* Buttons */
.btn, .btn-logout, .btn-small {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover, .btn-logout:hover, .btn-small:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.btn-logout {
    background: #e74c3c;
    color: white;
}

.btn-logout:hover {
    background: #c0392b;
}

.btn-small {
    padding: 5px 15px;
    font-size: 0.85em;
    margin-top: 10px;
}

/* Messages */
.success {
    background: #2ecc71;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Logs Section */
.logs-section {
    margin: 30px 0;
}

.logs-section h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.log-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-right: 4px solid #667eea;
}

.log-container h3 {
    margin-bottom: 15px;
    color: #555;
}

.log-content {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.8;
}

.log-line {
    margin: 5px 0;
    padding: 5px;
    border-bottom: 1px solid #34495e;
}

.log-full {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    white-space: pre-wrap;
}

.no-data {
    color: #999;
    text-align: center;
    padding: 20px;
}

/* File List */
.file-list {
    margin: 30px 0;
}

.file-list h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.files {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.files h4 {
    color: #555;
    margin-bottom: 10px;
}

.files ul {
    list-style: none;
}

.files li {
    padding: 10px;
    background: #f9f9f9;
    margin-bottom: 8px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.files li a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.files li a:hover {
    text-decoration: underline;
}

.file-size {
    color: #999;
    font-size: 0.85em;
}

/* Footer */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    text-align: center;
    color: #777;
}

footer a {
    color: #667eea;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.login-container h2 {
    color: #667eea;
    margin-bottom: 30px;
}

.login-container input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
}

.login-container input:focus {
    outline: none;
    border-color: #667eea;
}

.login-container button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.login-container button:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .files {
        grid-template-columns: 1fr;
    }
}