:root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --primary-color: #007bff;
    --input-bg: #2a2a2a;
    --border-color: #444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="url"],
input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 1rem;
}

input::placeholder {
    color: #888;
}

button {
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

#startButton {
    background-color: var(--primary-color);
    color: white;
}

#stopButton {
    background-color: #555;
    color: #ccc;
}

#startButton:hover {
    background-color: #0056b3;
}

#stopButton:hover:not(:disabled) {
    background-color: #c82333; /* Red on hover */
    color: white;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#status {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
}

#targetFrame {
    /* This hides the iframe completely */
    width: 0;
    height: 0;
    border: none;
    position: absolute;
    top: -9999px;
    left: -9999px;
}
