:root {
    --color-primary: #10b981;
    /* Emerald 500 */
    --color-secondary: #064e3b;
    --color-accent: #3b82f6;
    /* Blue 500 */
    --color-danger: #ef4444;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-bg-light: #f8fafc;
    --color-glass-bg: rgba(255, 255, 255, 0.7);
    --color-glass-border: rgba(255, 255, 255, 0.3);
    --sidebar-width: 280px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --spacing-lg: 32px;
    --spacing-md: 20px;
    --glass-blur: 16px;
    --shadow-premium: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

body.dark-theme {
    --color-text: #f1f5f9;
    --color-text-light: #94a3b8;
    --color-bg-light: #0f172a;
    --color-glass-bg: rgba(15, 23, 42, 0.7);
    --color-glass-border: rgba(255, 255, 255, 0.1);
    --color-secondary: #065f46;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--color-text);
    min-height: 100vh;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hidden {
    display: none !important;
}

/* --- APP LAYOUT --- */
.app-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--color-glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-right: 1px solid var(--color-glass-border);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 40px;
}

.sidebar-header h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.sidebar-header p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.sidebar nav ul {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    transform: translateX(8px);
}

#sidebar-logout-btn {
    margin-top: auto;
    color: var(--color-danger);
    font-weight: 700;
    padding: 16px 20px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}

#sidebar-logout-btn:hover {
    transform: scale(1.05);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    padding-bottom: 80px;
    z-index: 10;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.top-bar h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* CARDS & GLASSMORPHISM */
.card {
    background: var(--color-glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-premium);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.clock-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 350px;
    text-align: center;
}

.digital-clock {
    font-size: 8rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -4px;
    text-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    margin-bottom: 10px;
}

.date-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-light);
}

/* DASHBOARD LIST */
.break-list {
    list-style: none;
    margin-top: 20px;
}

.break-item {
    padding: 24px;
    margin-bottom: 16px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.break-item:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.2);
}

.status-active {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
    animation: activePulse 2s infinite ease-in-out;
}

@keyframes activePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
        border-color: #fff;
    }

    100% {
        transform: scale(1);
    }
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #10b981);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
}

.btn-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* FOOTER */
.app-footer {
    position: fixed;
    bottom: 24px;
    left: calc(var(--sidebar-width) + 32px);
    right: 32px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 50;
}

/* ACTIVE BELL OVERLAY - MORE PROFESSIONAL */
.active-bell-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.active-bell-card {
    background: var(--color-glass-bg);
    border: 2px solid var(--color-primary);
    padding: 40px;
    border-radius: 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: bellPopup 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bellPopup {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.active-bell-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.active-bell-info {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.seekbar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

input[type="range"] {
    flex: 1;
    height: 10px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.1);
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-text-light);
}

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    color: var(--color-text);
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.8);
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.modal-content {
    background: var(--color-glass-bg);
    padding: 40px;
    border-radius: 32px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-glass-border);
}

/* LOGIN */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

/* MANAGE LIST */
.manage-list {
    padding: 0;
    list-style: none;
}

.manage-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.manage-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* STATUS COLORS */
.status-upcoming {
    border-left: 8px solid var(--color-success) !important;
}

.status-active {
    border-left: 8px solid var(--color-danger) !important;
}

.status-passed {
    border-left: 8px solid #94a3b8 !important;
    opacity: 0.6;
}

/* UTILS */
.row {
    display: flex;
    gap: 20px;
}

.toolbar {
    margin-bottom: 24px;
}

.mini-form .form-group {
    margin-bottom: 12px;
}

.simple-list {
    list-style: none;
    padding: 0;
}

.simple-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-glass-border);
}

.hint {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 8px;
}