/* Sidebar layout inherited from shared-sidebar-layout.css */

body {
    user-select: none;
}

/* Main content layout inherited from shared-sidebar-layout.css */
.main-content {
    justify-content: center;
    align-items: center;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.clock-wrapper {
    position: relative;
    width: min(960px, 90vmin);
    height: min(960px, 90vmin);
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 8px 20px rgba(0,0,0,0.3);
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Sidebar content styling */

.section-header {
    font-size: 0.66rem;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E0E0E0;
}

.sidebar-section:last-child {
    border-bottom: none;
}

/* Toggle switches - redesigned for sidebar */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #F5F5F5;
    border-radius: 8px;
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333333;
}

.toggle-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #E8E8E8;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-switch.active {
    background: linear-gradient(135deg, #B900FF 0%, #832EC5 100%);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
    left: 22px;
}

.toggle-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #666666;
    min-width: 24px;
}

/* Color controls */
.color-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 10px;
    background: #F5F5F5;
    border-radius: 8px;
}

.color-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333333;
    margin-right: auto;
}

.color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #CCCCCC;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: #FFC700;
    box-shadow: 0 0 0 2px rgba(255, 199, 0, 0.3);
}

.color-btn.black { background: #000; }
.color-btn.coral-red { background: #FF5A44; }
.color-btn.bright-blue { background: #3479FF; }
.color-btn.lime-green { background: #59C42F; }

/* Format switch */
.format-switch {
    display: flex;
    background: #E8E8E8;
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.format-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #666666;
    cursor: pointer;
    transition: all 0.15s;
}

.format-btn.active {
    background: #FFFFFF;
    color: #333333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Clock SVG */
.clock-svg {
    width: 100%;
    height: 100%;
}

.clock-face {
    fill: white;
    stroke: #832EC5;
    stroke-width: 12;
}

.center-dot {
    fill: #000;
}

.hour-number {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: central;
    fill: #333333;
}

.minute-marker {
    stroke: #CCCCCC;
    stroke-width: 1;
}

.minute-marker.major {
    stroke: #999999;
    stroke-width: 2;
}

.minute-label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    text-anchor: middle;
    dominant-baseline: central;
    fill: #999999;
}

.clock-hand {
    cursor: grab;
    transition: fill 0.2s, stroke 0.2s;
}

.clock-hand:active {
    cursor: grabbing;
}

.clock-hand.hour-hand {
    fill: #000;
}

.clock-hand.minute-hand {
    fill: #000;
}

.clock-hand.second-hand {
    fill: #F44336;
    cursor: grab;
}

.clock-hand.second-hand:active {
    cursor: grabbing;
}

/* Action buttons */
.action-btn {
    background: linear-gradient(135deg, #B900FF 0%, #832EC5 100%);
    color: #FFFFFF;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.1s;
    width: 100%;
}

.action-btn:hover {
    opacity: 0.9;
}

.action-btn:active {
    transform: scale(0.98);
}

.action-btn.playing,
.action-btn.secondary.playing {
    background: #22C55E;
    color: #FFFFFF;
}

.action-btn.secondary {
    background: #E8E8E8;
    color: #333333;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-row {
    display: flex;
    gap: 8px;
}

.action-row .action-btn {
    flex: 1;
}

/* Time input */
.time-input-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #E8E8E8;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 4px 4px 4px 2px;
    transition: border-color 0.3s;
}

.time-input-box.invalid {
    border-color: #F44336 !important;
}

.time-input-box input {
    width: 70px;
    padding: 6px 8px;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-family: 'Poppins', monospace;
    text-align: center;
    color: #333333;
}

.time-input-box input::placeholder {
    color: #999999;
}

.time-input-box input:focus {
    outline: none;
}

.time-input-box:focus-within {
    border-color: #832EC5;
}

.time-input-box button {
    padding: 6px 12px;
    background: #832EC5;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.time-input-box button:hover {
    opacity: 0.9;
}

.digital-display {
    font-family: 'Poppins', monospace;
    font-size: 22px;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: central;
    fill: #333333;
}

.dash-guide {
    fill: none;
    stroke: #B900FF;
    stroke-width: 2;
    stroke-dasharray: 8, 4;
    opacity: 0.6;
}

.hidden {
    display: none;
}

/* Responsive - sidebar width breakpoints inherited from shared-sidebar-layout.css */
@media (max-width: 768px) {
    .clock-wrapper {
        width: min(750px, 90vmin);
        height: min(750px, 90vmin);
    }
}