body {
    margin: 0;
    overflow: hidden;
    background-color: transparent;
    /* Transparent for OBS, but we will add a fallback for config view */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Widget Styles --- */
.container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    /* Centering for widget mode */
    justify-content: center;
    align-items: center;
    /* In widget mode, we want the body to be flex centered usually, 
       but we handle that by making .container behave well or centering body.
       Let's center the body content if in widget mode. See JS.
    */
}

.progress-ring {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s linear;
}

#time-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: red;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
}

/* --- Configuration View Styles --- */
/* When in config mode, we want a visible background */
body.config-mode {
    background-color: #1a1a1a;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: auto;
    /* Allow scrolling if needed */
}

.config-card {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.config-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ff4444;
    /* Match red theme */
}

.config-card p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #333;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

input[type="number"]:focus {
    outline: none;
    border-color: #ff4444;
}

button {
    background: #ff4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    font-weight: bold;
}

button:hover {
    background: #ff6666;
}

.hidden {
    display: none;
}

#result-area {
    margin-top: 2rem;
    border-top: 1px solid #444;
    padding-top: 1rem;
}

.url-box {
    display: flex;
    gap: 10px;
    margin-top: 0.5rem;
}

#url-output {
    flex-grow: 1;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #222;
    color: #888;
}

#copy-btn {
    width: auto;
    padding: 8px 16px;
    background: #444;
}

#copy-btn:hover {
    background: #555;
}