/* Clock Tool Container */
#clock-tool {
    width: 250px;
}

/* Clock Container */
#clock-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

/* Clock Face */
#clock-face {
    position: relative;
    width: 200px;
    height: 200px;
    background-color: #f5f5f5;
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

/* Clock Border - separate element for perfect circle */
#clock-face::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    background-color: #333;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none; /* Prevent hover effects on this element */
}

/* Prevent debug hover effects on the clock face */
.debug-layout #clock-face:hover::before,
.debug-layout #clock-face:hover::after,
.debug-layout #clock-face::before:hover::before,
.debug-layout #clock-face::before:hover::after {
    display: none !important;
}

/* Prevent hover debug info for clock-related elements */
.debug-layout #hour-hand:hover::before,
.debug-layout #hour-hand:hover::after,
.debug-layout #minute-hand:hover::before,
.debug-layout #minute-hand:hover::after,
.debug-layout #second-hand:hover::before,
.debug-layout #second-hand:hover::after,
.debug-layout #clock-center:hover::before,
.debug-layout #clock-center:hover::after,
.debug-layout .clock-number:hover::before,
.debug-layout .clock-number:hover::after {
    display: none !important;
}

/* Clock Center */
#clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: #333;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Clock Hands */
#hour-hand, #minute-hand, #second-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    z-index: 5;
}

#hour-hand {
    width: 6px;
    height: 60px;
    background-color: #333;
    border-radius: 3px;
}

#minute-hand {
    width: 4px;
    height: 80px;
    background-color: #555;
    border-radius: 2px;
}

#second-hand {
    width: 2px;
    height: 90px;
    background-color: #f44336;
    border-radius: 1px;
}

/* Debug visualization elements */
.clock-debug-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.debug-circle {
    position: absolute;
    border: 1px dashed rgba(255, 0, 0, 0.5);
    border-radius: 50%;
}

.debug-radial-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 1px;
    background-color: rgba(0, 255, 0, 0.5);
    transform-origin: left center;
}

.debug-point {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: red;
    transform: translate(-50%, -50%);
}

/* Clock Numbers with debug outline */
.clock-number {
    position: absolute;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    width: 20px;
    height: 20px;
}

.debug-mode .clock-number {
    background-color: rgba(255, 255, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.5);
}

/* Options panel specific styles */
.toggle-switch + select {
    padding: 5px;
    width: 100%;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}