/* panels-clock.css */
/* Styles for the Icosmo Clock Panel and Matrix Box Display */

#panel1-clock-module-placeholder { 
    padding-top: 8px; 
    padding-bottom: 8px; 
    min-height: 150px; /* Ensure it has some base height */
}

/* Styles for the Icosmo Clock text overlays within the panel */
#icosmoClockDisplayArea .clock-text-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
}
#icosmoClockDisplayArea .panel-clock-date, 
#icosmoClockDisplayArea .panel-clock-time, 
#icosmoClockDisplayArea .panel-clock-zodiac {
  position: absolute;
  text-align: center;
  width: 100%;
  color: #111; /* Darker text for better contrast on potentially complex clock face */
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* A clean sans-serif */
  text-shadow: 0 0 2px rgba(255,255,255,0.5); /* Slight glow for readability */
  margin:0; padding:0;
}
#icosmoClockDisplayArea .panel-clock-date p, 
#icosmoClockDisplayArea .panel-clock-time p, 
#icosmoClockDisplayArea .panel-clock-zodiac p {
    margin: 0; padding: 0;
}

/* Scaled positions based on original 600px design, now for 300px view using scale factor var */
#icosmoClockDisplayArea .panel-clock-date {
  top: calc(50% - (600px * 0.135 * var(--clock-scale-factor, 0.5)));
  font-size: calc(21px * var(--clock-scale-factor, 0.5));
  font-weight: bolder;
}
#icosmoClockDisplayArea .panel-clock-time {
  top: calc(50% - (600px * 0.095 * var(--clock-scale-factor, 0.5)));
  font-size: calc(29px * var(--clock-scale-factor, 0.5));
  font-weight: bold;
}
#icosmoClockDisplayArea .panel-clock-zodiac {
  top: calc(50% + (600px * 0.06 * var(--clock-scale-factor, 0.5)));
  font-size: calc(23px * var(--clock-scale-factor, 0.5));
  font-weight: bold;
}


/* Matrix Box Display Styles */
.color-clock-boxes-row { 
    display: flex; 
    justify-content: center; 
    width: 100%; 
    margin-top: 8px; 
    margin-bottom: 10px; 
    gap: 8px; 
}
.panel-color-box { /* Used for hour, minute, second color boxes in matrix view */
    flex: 1; 
    aspect-ratio: 1 / 1; 
    max-height: 50px; 
    border: none; 
    box-shadow: none; 
    outline: none;
}
.digital-time-row { 
    display: flex; 
    justify-content: space-around; 
    width: 100%; 
    margin: 0 auto 10px auto; 
    font-family: 'Courier New', Courier, monospace; 
    font-size: 2em; 
    color: #e0e0e0; 
}
.digital-time-row > span { 
    flex-basis: 0; 
    flex-grow: 1; 
    text-align: center; 
}
.digital-time-row .digital-time-separator { 
    flex-grow: 0.2; 
    text-align: center; 
}
.musical-keys-row { 
    display: flex; 
    justify-content: space-around; 
    width: 100%; 
    margin: 0 auto; 
    font-family: 'Courier New', Courier, monospace; 
    font-size: 2em; 
    color: #b0b0b0; 
}
.musical-keys-row > span { 
    flex-basis: 0; 
    flex-grow: 1; 
    min-width: 2.5em; 
    text-align: center; 
}

hr.matrix-divider { 
    border: 0; 
    height: 1px; 
    background-color: #4f4f4f; 
    margin: 12px 0 10px 0; 
}
.matrix-extensions-row { 
    display: flex; 
    justify-content: space-around; 
    align-items: flex-start; 
    text-align: center; 
    width: 100%; 
    margin-top: 10px; 
    gap: 10px; 
}
.matrix-astro-item-group { /* For grouping Zodiac and its Element */
    display: flex; 
    flex-direction: column; /* Stack symbol over name */
    align-items: center; 
    gap: 4px; 
    min-width: 60px; 
    flex: 1;
}
.matrix-astro-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 4px; 
    min-width: 60px; 
    flex: 1; 
}
.matrix-astro-symbol { 
    font-family: 'Courier New', Courier, monospace; 
    font-size: 2em; 
    color: #e0e0e0; 
    line-height: 1; 
}
/*
 * LOG-BOOK
 * 2025-06-12: Corrected vertical alignment for the zodiac symbol.
 *             - Problem: The previous fix using a general container style broke the alignment of all symbols.
 *               The zodiac symbol, due to its font's metrics, was rendering higher than the other symbols.
 *             - Solution: Reverted the incorrect general style. Applied a new, highly targeted fix
 *               to ONLY the zodiac symbol. By setting its position to relative and adding a small
 *               top offset, it is nudged down into perfect vertical alignment with the other symbols
 *               without affecting their correct positioning.
 */
#matrix-current-zodiac-symbol {
    font-size: 2em; /* Override general class to match sibling element symbol size. */
    position: relative;
    top: 3px; /* Nudge the symbol down to align with the others. */
}

.matrix-astro-image { 
    width: 2em; 
    height: 2em; 
    object-fit: contain; 
    filter: drop-shadow(0 0 2px rgba(200,200,200,0.2));
    border-radius: 3px;
    padding: 2px; 
    box-sizing: border-box;
}
.matrix-astro-label { 
    font-size: 0.8em; 
    color: #b0b0b0; 
    margin-top: 2px; 
    line-height: 1.2;
}