/* --- Pomodoro Wrapper (Matches Stopwatch Theme) --- */
#pm-wrapper {
    font-family: 'Press Start 2P', monospace; /* Fallback to monospace */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: #111827; /* Gray 900 */
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 2px solid #374151; /* Gray 700 */
    color: white;
}

/* --- Mode Indicators --- */
.pm-modes {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.pm-mode-badge {
    padding: 5px 10px;
    font-size: 0.7rem;
    border-radius: 4px;
    background-color: #1f2937;
    color: #6b7280;
    border: 1px solid #374151;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.pm-mode-badge.active.work {
    background-color: #7f1d1d; /* Dark Red */
    color: #f87171; /* Light Red */
    border-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.pm-mode-badge.active.break {
    background-color: #064e3b; /* Dark Green */
    color: #34d399; /* Light Green */
    border-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* --- Display Area --- */
.pm-display-container {
    background-color: #000;
    border: 4px solid #333;
    border-radius: 8px;
    padding: 30px 20px;
    margin-bottom: 25px;
    width: 100%;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}

/* Glass reflection effect */
.pm-display-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
}

.pm-time {
    font-size: 4rem;
    color: #ef4444; /* Default Red for Work */
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    letter-spacing: 4px;
    line-height: 1;
    transition: color 0.5s;
}

.pm-time.break-mode {
    color: #10b981; /* Green for Break */
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.pm-status {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #9ca3af;
    letter-spacing: 1px;
}

/* --- Controls --- */
.pm-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.pm-btn {
    padding: 15px 10px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 4px 0 rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pm-btn:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: none;
}

.pm-btn.start {
    background-color: #3b82f6; /* Blue */
    color: white;
    border-bottom: 4px solid #2563eb;
}

.pm-btn.pause {
    background-color: #f59e0b; /* Yellow */
    color: #78350f;
    border-bottom: 4px solid #d97706;
}

.pm-btn.reset {
    background-color: #4b5563; /* Gray */
    color: white;
    border-bottom: 4px solid #374151;
}

.pm-btn.skip {
    background-color: #8b5cf6; /* Purple */
    color: white;
    border-bottom: 4px solid #7c3aed;
}

/* --- Progress Bar --- */
.pm-progress-bg {
    width: 100%;
    height: 6px;
    background-color: #374151;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.pm-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #ef4444;
    transition: width 1s linear, background-color 0.5s;
}

.pm-progress-bar.break-mode {
    background-color: #10b981;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .pm-time { font-size: 3rem; }
    #pm-wrapper { padding: 15px; }
}