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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 28px;
}

.subtitle {
    color: #888;
    margin-bottom: 30px;
    font-size: 14px;
}

.error-message {
    background-color: #2d1515;
    border: 1px solid #8b2020;
    color: #ff6b6b;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Dashboard */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

header h1 {
    color: #fff;
    font-size: 24px;
}

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

.user-email {
    color: #888;
    font-size: 14px;
}

/* Cards */
.card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    color: #b0b0b0;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 12px;
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #4a9eff;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-small {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #4a9eff;
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background-color: #3a8eef;
}

.btn-secondary {
    background-color: #333;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background-color: #444;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-success:disabled {
    background-color: #1a5a2a;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-danger:disabled {
    background-color: #6a1a24;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    margin: 0 4px;
}

.button-group {
    display: flex;
    gap: 10px;
}

.button-group button {
    flex: 1;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    padding: 15px;
    background-color: #0a0a0a;
    border-radius: 4px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.dot.running {
    background-color: #28a745;
}

.dot.stopped {
    background-color: #dc3545;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Messages */
.message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.message.success {
    background-color: #1a3d1a;
    border: 1px solid #28a745;
    color: #4ade80;
    display: block;
}

.message.error {
    background-color: #2d1515;
    border: 1px solid #dc3545;
    color: #ff6b6b;
    display: block;
}

/* Logs */
.logs-card {
    grid-column: 1 / -1;
}

.logs-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.logs-output {
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 15px;
    height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #00ff00;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.logs-output::-webkit-scrollbar {
    width: 8px;
}

.logs-output::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.logs-output::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.logs-output::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Files Table */
.files-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.files-table th {
    background-color: #0a0a0a;
    color: #b0b0b0;
    padding: 12px;
    text-align: left;
    font-weight: 500;
    border-bottom: 1px solid #333;
    font-size: 14px;
}

.files-table td {
    padding: 12px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 14px;
}

.files-table tr:hover {
    background-color: #222;
}

.file-actions {
    white-space: nowrap;
}

.no-files {
    text-align: center;
    color: #666;
    padding: 30px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .files-table {
        font-size: 12px;
    }
    
    .files-table th,
    .files-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .files-table th:nth-child(2),
    .files-table td:nth-child(2),
    .files-table th:nth-child(3),
    .files-table td:nth-child(3) {
        display: none;
    }
}
