/* ====== Global Reset & Body ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1b1b1b, #2c2c2c);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 70px;
    color: #fff;
}

/* ====== Navbar ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    padding: 12px 0;
    z-index: 10;
}

.navbar button {
    background: linear-gradient(135deg, #fc2d49, #ff9800);
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 6px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.navbar button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ff9800, #ff3d58);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.6);
}

/* ====== Sections ====== */
.section {
    display: none;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #ffeb3b;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.8);
}

/* ====== Clock Styling ====== */
.container {
    position: relative;
    text-align: center;
    margin-top: 20px;
}

.clock {
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.clock span {
    position: absolute;
    transform: rotate(calc(30deg * var(--i)));
    inset: 20px;
    text-align: center;
}

.clock span b {
    transform: rotate(calc(-30deg * var(--i)));
    font-size: 20px;
    display: inline-block;
    color: #fff;
}

.clock::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #fff, #ff3d58);
    box-shadow: 0 0 10px #ff3d58;
    border-radius: 50%;
    z-index: 10;
}

.hand {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transform-origin: bottom center;
    bottom: 50%;
}

.hand i {
    background-color: var(--clr);
    width: 4px;
    height: var(--h);
    border-radius: 8px;
    transform-origin: buttom center;
}

/* Digital Time & Date */
#digital-time {
    margin-top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #0d0c0c;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.8);
}

#date {
    margin-top: 5px;
    font-size: 18px;
    color: #151414;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

/* ====== Input Fields ====== */
input[type="number"] {
    width: 80px;
    padding: 10px;
    margin: 5px;
    font-size: 18px;
    text-align: center;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.3);
    outline: none;
}

/* ====== Buttons (Timer/Stopwatch) ====== */
.section button {
    background: linear-gradient(135deg, #03a9f4, #00e676);
    color: white;
    font-size: 16px;
    border: none;
    padding: 10px 18px;
    margin: 8px;
    cursor: pointer;
    border-radius: 25px;
    transition: 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 230, 118, 0.5);
}

.section button:hover {
    background: linear-gradient(135deg, #91a19a, #03a9f4);
    box-shadow: 0 4px 15px rgba(3, 169, 244, 0.6);
    transform: scale(1.05);
}

/* ====== Displays ====== */
#timer-display {
    margin-top: 15px;
    font-size: 40px;
    font-weight: bold;
    color: #ff9800;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.8);
}

#stopwatch-display {
    margin-top: 15px;
    font-size: 40px;
    font-weight: bold;
    color: #ff3d58;
    text-shadow: 0 0 10px rgba(255, 61, 88, 0.8);
}
