/* General Body and Container Styling */
body {
    background-color: #f8f9fa;
    color: #212529;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 0;
}

/* Titles and Headers - Full Width */
.plugin-subtitle {
    width: 100%;
    text-align: center;
    color: #212529;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 40px;
}

/* Zen Z Section with Gradient and Icons */
.zen-z-section {
    width: 100%;
    background: linear-gradient(135deg, #0d324d, #7f5a83); /* Darker shade on top, diagonal gradient */
    border-radius: 12px;
    padding: 40px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    margin-top: 10px; /* Reduced gap */
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Subtle shapes for Zen Z background - now with lighter color */
.zen-z-section .shape {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.15); /* Lighter color for contrast */
    pointer-events: none;
    animation: float 10s infinite ease-in-out;
}

.zen-z-section .shape1 {
    width: 60px; height: 60px;
    top: 10%; left: 15%;
    border-radius: 50%;
    animation-delay: 0s;
}

.zen-z-section .shape2 {
    width: 40px; height: 40px;
    bottom: 20%; right: 10%;
    border-radius: 50%;
    animation: float 8s infinite reverse ease-in-out;
    animation-delay: 2s;
}

.zen-z-section .shape3 {
    width: 80px; height: 80px;
    top: 30%; right: 5%;
    transform: rotate(45deg);
    border-radius: 20%;
    animation: float 12s infinite ease-in-out;
    animation-delay: 4s;
}

.zen-z-section .shape4 {
    width: 50px; height: 50px;
    bottom: 5%; left: 20%;
    border-radius: 50%;
    animation: float 9s infinite reverse ease-in-out;
    animation-delay: 6s;
}

.zen-z-section .shape5 {
    width: 30px; height: 30px;
    top: 50%; left: 5%;
    border-radius: 50%;
    animation: float 7s infinite ease-in-out;
    animation-delay: 1s;
}

.zen-z-section .shape6 {
    width: 45px; height: 45px;
    top: 20%; left: 80%;
    border-radius: 30%;
    transform: rotate(-30deg);
    animation: float 11s infinite reverse ease-in-out;
    animation-delay: 5s;
}

.zen-z-section .shape7 {
    width: 25px; height: 25px;
    top: 80%; right: 25%;
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
    animation-delay: 3s;
}

.zen-z-section .shape8 {
    width: 70px; height: 70px;
    top: 60%; left: 70%;
    border-radius: 40%;
    transform: rotate(60deg);
    animation: float 13s infinite reverse ease-in-out;
    animation-delay: 7s;
}

.zen-z-section .shape9 {
    width: 35px; height: 35px;
    top: 5%; left: 45%;
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
    animation-delay: 9s;
}

.zen-z-section .shape10 {
    width: 55px; height: 55px;
    bottom: 15%; right: 40%;
    border-radius: 30%;
    animation: float 10s infinite ease-in-out;
    animation-delay: 1s;
}

.zen-z-section .shape11 {
    width: 30px; height: 30px;
    top: 40%; left: 60%;
    border-radius: 50%;
    animation: float 9s infinite reverse ease-in-out;
    animation-delay: 3s;
}

.zen-z-section .shape12 {
    width: 90px; height: 90px;
    bottom: 30%; left: 50%;
    border-radius: 50%;
    animation: float 14s infinite ease-in-out;
    animation-delay: 8s;
}

.zen-z-section .shape13 {
    width: 40px; height: 40px;
    top: 75%; left: 10%;
    border-radius: 30%;
    animation: float 11s infinite ease-in-out;
    animation-delay: 2s;
}

.zen-z-section .shape14 {
    width: 65px; height: 65px;
    top: 25%; left: 40%;
    border-radius: 50%;
    animation: float 13s infinite reverse ease-in-out;
    animation-delay: 6s;
}

.zen-z-section .shape15 {
    width: 80px; height: 80px;
    bottom: 5%; right: 70%;
    border-radius: 20%;
    transform: rotate(-15deg);
    animation: float 10s infinite ease-in-out;
    animation-delay: 4s;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Calculator Container */
#effective-hours-calculator {
    width: 100%;
    max-width: 600px;
    padding: 30px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    background-color: transparent;
}

.plugin-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    white-space: nowrap;
    color: #fff; /* Changed font color for better contrast */
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #fff; /* Changed font color for better contrast */
    font-size: 1.2rem; /* Adjusted for aesthetic uniformity */
}

/* Input Elements */
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    color: #212529;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
    outline: none;
}

/* Custom Scroll Time Picker */
.time-picker-scroll {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.wheel-scroll-container {
    height: 120px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    flex: 1;
    text-align: center;
    font-size: 1rem; /* Adjusted for aesthetic uniformity */
    font-weight: bold;
    color: #6c757d;
    position: relative;
}

.wheel-scroll-container::before,
.wheel-scroll-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
    z-index: 10;
}

.wheel-scroll-container::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.wheel-scroll-container::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.scroll-list {
    list-style: none;
    margin: 0;
    padding: 40px 0;
}

.scroll-list li {
    scroll-snap-align: center;
    height: 40px;
    line-height: 40px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.scroll-list li.active {
    color: #212529;
    transform: scale(1.2);
}

.separator {
    font-size: 1.1rem; /* Adjusted for aesthetic uniformity */
    font-weight: bold;
    color: #212529;
}

/* Button Styling */
button {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

button:hover {
    background-color: #0056b3;
}

button:active {
    transform: scale(0.99);
}

/* Result Display */
#result {
    margin-top: 25px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
}

#result span {
    font-weight: 700;
}

.text-yellow-600 { color: #cc8400; }
.text-green-600 { color: #198754; }

/* Clock Grid Layout - Full width for better display */
.clock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    justify-items: center;
    width: 100%;
    margin: 40px auto;
    padding: 20px;
    box-sizing: border-box;
}

.clock-container {
    text-align: center;
    padding: 15px;
    position: relative;
}

.clock-container h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #212529;
}

.am-pm-label {
    position: absolute;
    bottom: 25px;
    right: 25px;
    font-size: 1rem;
    font-weight: bold;
    color: #555;
}

/* Clock Canvas Styling */
.analog-clock {
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
}
