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

body {
    font-family: 'Courier New', Courier, monospace;
    background: #1e1e1e;
    color: #d4d4d4;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: #61dafb;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #252526;
    border: 1px solid #3e3e42;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #858585;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #61dafb;
}

.controls {
    background: #252526;
    border: 1px solid #3e3e42;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-group label {
    font-size: 0.9rem;
    color: #858585;
}

.control-group select,
.control-group input {
    padding: 8px 12px;
    background: #1e1e1e;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
}

.control-group select:focus,
.control-group input:focus {
    outline: none;
    border-color: #61dafb;
}

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

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Courier New', Courier, monospace;
}

.btn-primary {
    background: #61dafb;
    color: #1e1e1e;
}

.btn-primary:hover {
    background: #4fa8c5;
}

.btn-secondary {
    background: #3e3e42;
    color: #d4d4d4;
}

.btn-secondary:hover {
    background: #4e4e52;
}

.btn-secondary.active {
    background: #28a745;
    color: white;
}

.log-container {
    background: #252526;
    border: 1px solid #3e3e42;
    border-radius: 8px;
    overflow: hidden;
}

.log-header {
    background: #2d2d30;
    padding: 15px 20px;
    border-bottom: 1px solid #3e3e42;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-header span {
    font-weight: bold;
    color: #61dafb;
}

.log-count {
    font-size: 0.9rem;
    color: #858585;
}

.log-content {
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.6;
}

.log-content::-webkit-scrollbar {
    width: 10px;
}

.log-content::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.log-content::-webkit-scrollbar-thumb {
    background: #3e3e42;
    border-radius: 5px;
}

.log-content::-webkit-scrollbar-thumb:hover {
    background: #4e4e52;
}

.log-line {
    padding: 4px 0;
    border-bottom: 1px solid #2d2d30;
}

.log-line:hover {
    background: #2d2d30;
}

.log-line.error {
    color: #f48771;
    background: rgba(244, 135, 113, 0.1);
}

.log-line.warning {
    color: #dcdcaa;
    background: rgba(220, 220, 170, 0.1);
}

.log-line.info {
    color: #4ec9b0;
}

.log-line.webhook {
    color: #c586c0;
    background: rgba(197, 134, 192, 0.1);
}

.loading {
    text-align: center;
    color: #858585;
    padding: 40px;
}

.empty-state {
    text-align: center;
    color: #858585;
    padding: 40px;
}

.message-box {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message-box.success {
    background-color: #28a745;
}

.message-box.error {
    background-color: #dc3545;
}

.message-box.info {
    background-color: #17a2b8;
}

.highlight {
    background-color: #ffd700;
    color: #1e1e1e;
    padding: 2px 4px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .button-group {
        margin-left: 0;
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
