.material-icons-round {
  font-family: 'Material Symbols Rounded', sans-serif;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

:root {
    /* Base Variables */
    --font-family: 'Inter', sans-serif;
    --border-radius-sm: 8px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition-speed: 0.3s;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    
    /* Theme Light (Default but overridden by class) */
    --bg-color: #f4f5f7;
    --widget-bg: #ffffff;
    --text-primary: #1e1e1e;
    --text-secondary: #6b7280;
    --accent-color: #6d1b38; /* Bordô */
    --accent-hover: #8e2248;
    --border-color: #e5e7eb;
    --danger-color: #ef4444;
    --success-color: #10b981;
}

body.theme-dark {
    --bg-color: #1a080f; /* Dark bordô background */
    --widget-bg: #2b0b14; /* Slightly lighter widget bg */
    --text-primary: #ffffff;
    --text-secondary: #a09096;
    --accent-color: #e34c76; /* Lighter bordô for contrast in dark mode */
    --accent-hover: #f17898;
    --border-color: #4a1525;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--widget-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--accent-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: 50%;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--accent-color);
    background-color: rgba(0,0,0,0.05);
}
body.theme-dark .icon-btn:hover {
    background-color: rgba(255,255,255,0.05);
}

/* Dashboard Grid */
.dashboard-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    align-content: start;
}

/* Widgets Base */
.widget {
    background-color: var(--widget-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.widget-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.widget-header .material-icons-round {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed);
    z-index: 99999;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: var(--widget-bg);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform var(--transition-speed);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.modal-header h2 {
    font-size: 1.2rem;
}

/* Forms & Buttons */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

select, input[type="text"], input[type="number"], input[type="url"], textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    transition: border-color var(--transition-speed);
    outline: none;
}

select:focus, input:focus, textarea:focus {
    border-color: var(--accent-color);
}

.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    border: none;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: var(--bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* Utility Classes */
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Scrollbar styling for webkit */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}
body.theme-dark ::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
}

/* Screensaver */
#screensaver {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 999999;
    overflow: hidden;
}

#screensaver-ball {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 20px currentColor;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

/* Miniplayer Widget */
.miniplayer-iframe-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: #000;
}
.miniplayer-iframe-container iframe {
    width: 100%;
    height: 100%;
}
.miniplayer-list {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}
.miniplayer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(0,0,0,0.02);
    border-radius: var(--border-radius-sm);
    margin-bottom: 4px;
}
.miniplayer-item.active {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    border-left: 3px solid var(--accent-color);
}
body.theme-dark .miniplayer-item {
    background-color: rgba(255,255,255,0.02);
}
body.theme-dark .miniplayer-item.active {
    background-color: rgba(255,255,255,0.05);
}

.widget.fullscreen .miniplayer-content {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.widget.fullscreen .miniplayer-iframe-container {
    width: 90%;
    max-width: 1400px;
    max-height: 50vh;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-shrink: 0;
}
.widget.fullscreen .miniplayer-form {
    display: none;
}
.widget.fullscreen .miniplayer-playlist-container {
    width: 90%;
    max-width: 1400px;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.widget.fullscreen .miniplayer-list {
    flex: 1 1 0;
    max-height: none;
    overflow-y: auto;
}


/* Calendar Widget */
.calendar-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.cal-day-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-bottom: var(--spacing-sm);
}

.cal-day {
    padding: 8px 4px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    transition: background-color var(--transition-speed);
}

.cal-day:not(.empty):hover {
    background-color: rgba(0,0,0,0.05);
    cursor: default;
}
body.theme-dark .cal-day:not(.empty):hover {
    background-color: rgba(255,255,255,0.05);
}

.cal-day.today {
    background-color: var(--accent-color);
    color: white;
    font-weight: bold;
}


/* Weather Widget */
.weather-content {
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.weather-temp {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.weather-desc {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.weather-city {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.spinning {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.weather-state {
    width: 100%;
}


/* Clock Widget */
.clock-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.main-clock {
    text-align: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.clock-time {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
    margin-bottom: var(--spacing-sm);
}

.clock-date {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: capitalize;
}

.tz-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.tz-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(0,0,0,0.02);
    border-radius: var(--border-radius-sm);
}
body.theme-dark .tz-item {
    background-color: rgba(255,255,255,0.02);
}

.tz-name {
    font-weight: 500;
}

.tz-time {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: auto;
    margin-right: 12px;
}

.tz-form {
    padding-top: var(--spacing-sm);
}


/* Timer Widget */
.timer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.timer-display {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    transition: color var(--transition-speed);
}

.timer-finished {
    color: var(--danger-color);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.timer-quick-btns {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.timer-quick {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.timer-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.02);
    padding: 8px;
    border-radius: var(--border-radius-sm);
}
body.theme-dark .timer-custom {
    background: rgba(255,255,255,0.02);
}

.timer-custom input {
    width: 60px;
    text-align: center;
    padding: 6px;
}

.timer-controls {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.timer-controls .btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
}


/* Stopwatch Widget */
.stopwatch-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.sw-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.sw-controls {
    display: flex;
    gap: var(--spacing-sm);
}

.sw-controls .btn {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    padding: 0;
}

.sw-laps {
    width: 100%;
    max-height: 120px;
    overflow-y: auto;
    margin-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-sm);
}

.sw-laps ul {
    list-style: none;
}

.sw-laps li {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
body.theme-dark .sw-laps li {
    border-bottom-color: rgba(255,255,255,0.05);
}


/* Todo Widget */
.todo-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.todo-form {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.todo-form input {
    flex: 1;
}

.todo-list-container {
    flex: 1;
    overflow-y: auto;
    max-height: 250px;
}

.todo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.todo-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: rgba(0,0,0,0.02);
    border-radius: var(--border-radius-sm);
    border: 1px solid transparent;
    transition: all var(--transition-speed);
}
body.theme-dark .todo-list li {
    background-color: rgba(255,255,255,0.02);
}

.todo-list li:hover {
    border-color: var(--border-color);
}

.todo-list li.done {
    opacity: 0.6;
}
.todo-list li.done .todo-text {
    text-decoration: line-through;
}

.todo-item-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.todo-check {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}


/* Notes Widget */
.notes-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 250px;
}

.notes-controls {
    display: flex;
    gap: 4px;
}

.notes-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: var(--spacing-sm);
    scrollbar-width: thin;
    flex-shrink: 0;
}

.note-tab {
    padding: 6px 12px;
    background-color: rgba(0,0,0,0.05);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-speed);
}
body.theme-dark .note-tab {
    background-color: rgba(255,255,255,0.05);
}

.note-tab:hover {
    background-color: rgba(0,0,0,0.1);
    color: var(--text-primary);
}
body.theme-dark .note-tab:hover {
    background-color: rgba(255,255,255,0.1);
}

.note-tab.active {
    background-color: var(--accent-color);
    color: white;
}

.notes-textarea {
    flex: 1;
    resize: none;
    min-height: 150px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
}


/* Weather Extra Cities CSS */
.weather-cities-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.weather-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(0,0,0,0.02);
    border-radius: var(--border-radius-sm);
}
body.theme-dark .weather-list-item {
    background-color: rgba(255,255,255,0.02);
}

.weather-list-info {
    display: flex;
    flex-direction: column;
}

.weather-list-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.weather-list-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.weather-list-temp {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: auto;
    margin-right: 12px;
}

.weather-form {
    padding-top: var(--spacing-sm);
}

/* Toast Notification */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.app-footer {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
}

.app-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.app-footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* RSS Widget */
.rss-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 250px;
}

.rss-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background-color: rgba(0,0,0,0.02);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: all var(--transition-speed);
}

body.theme-dark .rss-item {
    background-color: rgba(255,255,255,0.02);
}

.rss-item:hover {
    border-color: var(--border-color);
    background-color: rgba(0,0,0,0.04);
}

body.theme-dark .rss-item:hover {
    background-color: rgba(255,255,255,0.04);
}

.rss-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background-color: rgba(0,0,0,0.05);
}

.rss-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.rss-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rss-item-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.rss-item-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Widget Footer for Drag and Hide */
.widget-footer {
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: opacity var(--transition-speed);
    margin-top: auto;
    padding-top: var(--spacing-sm);
    margin-bottom: -10px;
    margin-left: -10px;
    margin-right: -10px;
}
.widget:hover .widget-footer {
    opacity: 1;
}
.drag-handle {
    cursor: grab;
    color: var(--text-secondary);
}
.drag-handle:active {
    cursor: grabbing;
}
.hide-widget-btn {
    color: var(--text-secondary);
}


/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 60px;
    right: var(--spacing-lg);
    background-color: var(--widget-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    min-width: 220px;
    padding: var(--spacing-sm);
}
.dropdown-header {
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-sm);
}
.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px var(--spacing-md);
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-speed);
}
.dropdown-item:hover {
    background-color: rgba(0,0,0,0.05);
}
body.theme-dark .dropdown-item:hover {
    background-color: rgba(255,255,255,0.05);
}
.dropdown-item label {
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dropdown-item input[type='checkbox'] {
    width: auto;
    cursor: pointer;
}

/* Todo List Drag and Drop */
.todo-list li.drag-over {
    border-top: 2px solid var(--accent-color);
    padding-top: 6px; /* offset the border to avoid jump if possible, or just accept the tiny jump */
}
.todo-list li .drag-handle:hover {
    color: var(--text-primary);
}

/* Fullscreen Widget */
.widget.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--widget-bg);
}

.widget.fullscreen .widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Scaling text for fullscreen */
.widget.fullscreen .clock-time,
.widget.fullscreen .timer-display,
.widget.fullscreen .sw-display {
    font-size: 15vw;
    line-height: 1;
    margin-top: 5vh;
}

.widget.fullscreen .clock-date {
    font-size: 5vw;
}

/* Hide some elements when fullscreen */
.widget.fullscreen .timer-quick-btns,
.widget.fullscreen .timer-custom,
.widget.fullscreen .tz-remove,
.widget.fullscreen .tz-form,
.widget.fullscreen #clock-add-tz-btn,
.widget.fullscreen .widget-footer {
    display: none !important;
}

/* Larger secondary clocks and laps in fullscreen */
.widget.fullscreen .tz-list,
.widget.fullscreen .sw-laps {
    width: 60%;
    max-width: 800px;
    margin-top: 2rem;
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    margin-bottom: 2rem;
    overflow-y: auto;
}
.widget.fullscreen .tz-item,
.widget.fullscreen .sw-laps li {
    padding: 1rem 2rem;
    margin-bottom: 0.5rem;
    background-color: rgba(0,0,0,0.02);
    border-radius: var(--border-radius-sm);
    border-bottom: none;
}
body.theme-dark .widget.fullscreen .tz-item,
body.theme-dark .widget.fullscreen .sw-laps li {
    background-color: rgba(255,255,255,0.02);
}
.widget.fullscreen .tz-name,
.widget.fullscreen .sw-laps li span:first-child {
    font-size: 1.5rem;
}
.widget.fullscreen .tz-time,
.widget.fullscreen .sw-laps li span:last-child {
    font-size: 2rem;
    color: var(--accent-color);
}

/* Enlarge controls in fullscreen */
.widget.fullscreen .timer-controls button,
.widget.fullscreen .sw-controls button {
    width: 80px;
    height: 80px;
}
.widget.fullscreen .timer-controls button .material-icons-round,
.widget.fullscreen .sw-controls button .material-icons-round {
    font-size: 2.5rem;
}

/* Widget Fullscreen */
.widget.widget-fullscreen {
    position: fixed;
    top: 5%;
    left: 10%;
    width: 80%;
    height: 90%;
    z-index: 9999;
    background-color: var(--widget-bg);
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    max-height: none;
    max-width: none;
}

.widget.widget-fullscreen .todo-list-container,
.widget.widget-fullscreen .notes-content,
.widget.widget-fullscreen .rss-content,
.widget.widget-fullscreen .rss-feed-container {
    max-height: none;
    flex: 1;
    min-height: 0;
}

.widget.widget-fullscreen .todo-text,
.widget.widget-fullscreen .notes-textarea {
    font-size: 1.2rem;
}

/* Ocultar icones de rodapé em modo expandido */
.widget.widget-fullscreen .widget-footer {
    display: none;
}

/* Screensaver Close Button */
#screensaver-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10000;
    color: white;
    opacity: 0.5;
    background: transparent;
    border: none;
    cursor: pointer;
}

#screensaver-close:hover {
    opacity: 1;
}

#screensaver-close .material-icons-round {
    font-size: 2rem;
}


#screensaver-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
}

