/* ------------------
Base Styles 
---------------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
    transition: background 0.3s, color 0.3s;
    padding-top: 3.5rem; 
}
h1, h2, h3, h4, h5, h6 {

    margin: 0;
    padding: 24px 0 12px 0; 
    color: #0072c6; 
    font-family: 'Segoe UI', Arial, sans-serif; 
    font-size: 1.5rem; 
    line-height: 1.4; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    text-align: center; 
}
p {
    text-align: center;
    font-family: 'Segoe UI', Arial, sans-serif; 
    font-size: 1rem; 
    margin: 0;
    padding: 0;
    line-height: 1.6; 
    color: #7aaa20; 
}
a {
    color: #007BFF; 
    text-decoration: none;
    transition: color 0.2s;
}

/* --------------------
 Container Styling 
-------------------- */
.container {
    width: 100%;
    max-width: 600px;
    margin: 5rem auto 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    text-align: center;
}

/*-----------------------
Responsive container and timer for mobile 
-------------------------*/

@media (max-width: 600px) {
    .container {
        width: 98vw;
        min-width: unset;
        max-width: 100vw;
        padding: 1rem 0.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }
    .timer-container {
        margin-bottom: 1rem;
        width: 90vw;
        max-width: 320px;
    }
    .timer-svg {
        width: 90vw !important;
    }
    .timer-display {
        font-size: 1.3rem;
        padding: 0.2rem 0.5rem;
    }
    .controls button {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
        margin: 0.2rem;
    }
    .checkpoint-list li {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Make SVG responsive on all screens */
.timer-svg {
    width: 300px;
    height: 300px;
    max-width: 90vw;
    max-height: 90vw;
    display: block;
    margin: 0 auto;
    transform: rotate(-90deg);
}

.timer-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 10;
}

.circle-hour,
.circle-minute {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke 0.5s;
}

.circle-hour {
    stroke: #ff8c00;
    stroke-dasharray: 628.3;
    stroke-dashoffset: 628.3;
}

.circle-minute {
    stroke: #007BFF;
    stroke-dasharray: 534.1;
    stroke-dashoffset: 534.1;
}

.timer-display {
    position: absolute;
    top: 60%;
    left: 42%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.controls {
    margin-bottom: 1rem;
}

.controls button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    margin: 0.3rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.controls button:hover:not(:disabled) {
    background-color: #0056b3;
}

.controls button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkpoint-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    max-height: 150px;
    overflow-y: auto;
    text-align: left;
}

.checkpoint-list li {
    background: #f1f1f1;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.3rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* --------------------
 Dark Mode Styling
-------------------- */
.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .container {
    background: #1e1e1e;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .analog-clock {
    border-color: #333;
    background: #2c2c2c;
}

.dark-mode .hand {
    background: #e0e0e0;
}

.dark-mode .hand.hour {
    background: #ffb300;
}

.dark-mode .hand.minute {
    background: #3399ff;
}

.dark-mode .hand.second {
    background: #ff6666;
}

.dark-mode .center-dot {
    background: #e0e0e0;
}

.dark-mode .timer-display {
    color: #e0e0e0;
}

.dark-mode .controls button {
    background-color: #007BFF;
}

.dark-mode .controls button:hover:not(:disabled) {
    background-color: #0056b3;
}

.dark-mode .alarm-set input[type="time"] {
    background: #333;
    color: #e0e0e0;
    border: 1px solid #555;
}

.dark-mode #alarmList li {
    background: #2c2c2c;
    border: 1px solid #444;
}

.dark-mode #alarmList .remove-btn {
    background: #e74c3c;
}

.dark-mode #alarmList .remove-btn:hover {
    background: #c0392b;
}

/* ------------------
Additional body-specific dark styling 
--------------------------------*/
body.dark-mode {
    background-color: #181a1b;
    color: #e0e0e0;
}
body.dark-mode .container {
    background: #23272a;
}
body.dark-mode .analog-clock {
    background: #23272a;
}
body.dark-mode .timer-display {
    color: #e0e0e0;
}
body.dark-mode .controls button {
    background-color: #444;
}
body.dark-mode .controls button:hover:not(:disabled) {
    background-color: #222;
}
body.dark-mode .alarm-schedule h3 {
    color: #66aaff;
}
body.dark-mode #alarmList li {
    background: #23272a;
}
body.dark-mode #alarmList .remove-btn {
    background: #c0392b;
}
body.dark-mode #alarmList .remove-btn:hover {
    background: #a93226;
}
body.dark-mode .hand.hour {
    background: #ffb347;
}
body.dark-mode .hand.minute {
    background: #66aaff;
}
body.dark-mode .hand.second {
    background: #ff7675;
}
body.dark-mode .center-dot {
    background: #e0e0e0;
}

/* --------------------
 Navigation Bar (fixed at top)
-------------------- */
.navbar {
    width: 100vw;
    background: #007BFF;
    color: #fff;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
}

.navbar-brand {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.navbar-links li {
    display: inline;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.navbar-links a:hover {
    color: #ffd700;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* ---------------------
Responsive Navbar
--------------------- */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.7rem 0.5rem;
    }

    .navbar-links {
        width: 100%;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .navbar-links a {
        font-size: 0.95rem;
        padding: 0.3rem 0.6rem;
    }
}

/* --------------------
Dark Mode Navigation Styling
-------------------- */
body.dark-mode .navbar {
    background: #23272a;
}
body.dark-mode .navbar-links a {
    color: #e0e0e0;
}
body.dark-mode .navbar-links a:hover {
    color: #66aaff;
}

/* --------------------
header & Breadcrumb Navigation
-------------------- */
.header {
    background: #007BFF;
    padding: 1.2rem 1.5rem 0.7rem 1.5rem;
    font-size: 1.7rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff;
}
.breadcrumb-nav {
    background: #007BFF;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    border-radius: 0 0 8px 8px;
}

.breadcrumb {
    color: #fff;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.3em;
    padding: 0;
    margin: 0;
}

.breadcrumb li:last-child {
    color: #ffd700;
    font-weight: bold;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: none;
    color: #ffd700;
}

/* --------------------
Dark Mode Toggle Button
-------------------- */
.dark-toggle-btn {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 1000;
    padding: 0.7rem 1.2rem;
    border-radius: 2rem;
    background: #007BFF;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
}

.dark-toggle-btn:hover {
    background: #0056b3;
}

/* -------------------------------------------
   SOCIAL MEDIA ICON STYLES
------------------------------------------- */
.social-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.social-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon span.tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e91e63;
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.social-icon:hover span.tooltip {
    opacity: 1;
}

.social-icon:hover svg {
    fill: #e91e63;
}

/* --------------------
MODAL STYLES
-------------------- */
.modal {
    display: none; /* Default hidden */
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    color: #000;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    text-align: center;
    max-width: 300px;
}

body.dark-mode .modal-content {
    background: #23272a;
    color: #e0e0e0;
}

