/* ==========================================================================
   MultiTimer Online - 2012 Early Web 2.0 / Skeuomorphic Stylesheet
   Designed for fixed 100vh non-scrolling desktop experience
   ========================================================================== */

/* Reset & Box Sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-main: "Lucida Grande", "Lucida Sans Unicode", "Segoe UI", Tahoma, Verdana, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
  --panel-bg: #f7f9fa;
  --panel-border: #adb6c0;
  --border-radius: 4px;
  --text-dark: #2c3238;
  --text-muted: #5e6873;
  --link-blue: #0044cc;
}

html {
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--text-dark);
  background: #dce2e8;
  background-image: 
    linear-gradient(45deg, #d3d9e0 25%, transparent 25%), 
    linear-gradient(-45deg, #d3d9e0 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #d3d9e0 75%), 
    linear-gradient(-45deg, transparent 75%, #d3d9e0 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
  user-select: none;
}

/* App Wrapper */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Screen 1: Fixed 100vh Desktop Workstation Viewport */
.app-viewport-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  width: 100%;
  position: relative;
  flex-shrink: 0;
}

/* ==========================================================================
   Top Event Ribbon (Tactile Cotton Felt / Organic Fiber Grain Accent)
   ========================================================================== */
.event-ribbon {
  width: 100%;
  height: 10px;
  flex: 0 0 10px;
  position: relative;
  z-index: 20;
  box-sizing: border-box;
  /* 2012 Chiseled Inset Groove: Deep top shadow + bottom shadow cast onto chrome header */
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.65), 
    inset 0 -1px 1px rgba(0, 0, 0, 0.35), 
    0 1px 2px rgba(0, 0, 0, 0.25);
  transition: height 0.2s ease, opacity 0.2s ease;
  user-select: none;
}

/* Default / Everyday: Dyed Cotton Indigo / Denim Felt with Micro-Fiber Fuzz */
.event-ribbon.ribbon-default {
  background-color: #1b5291;
  background-image: 
    linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 30%, rgba(0, 0, 0, 0.12) 70%, rgba(0, 0, 0, 0.45) 100%),
    url("fabric-noise.png");
  background-size: 100% 100%, 48px 48px;
}

/* Event: Christmas / Holiday Red Wool Felt */
.event-ribbon.ribbon-christmas {
  background-color: #b31d1d;
  background-image: 
    linear-gradient(to bottom, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.04) 30%, rgba(0, 0, 0, 0.12) 70%, rgba(0, 0, 0, 0.5) 100%),
    url("fabric-noise.png");
  background-size: 100% 100%, 48px 48px;
}

/* Alternate Holiday Event: Festive Candy-Cane Fabric Ribbon with Fiber Grain */
.event-ribbon.ribbon-candy-cane {
  background-color: #b71c1c;
  background-image: 
    linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 30%, rgba(0, 0, 0, 0.12) 70%, rgba(0, 0, 0, 0.5) 100%),
    url("fabric-noise.png"),
    repeating-linear-gradient(
      -45deg,
      #b71c1c 0px,
      #b71c1c 10px,
      #ffffff 10px,
      #ffffff 16px,
      #b71c1c 16px,
      #b71c1c 20px,
      #f0f0f0 20px,
      #f0f0f0 23px
    );
  background-size: 100% 100%, 48px 48px, auto;
}

/* Event: New Year Celebratory Gold Shimmer Felt */
.event-ribbon.ribbon-newyear {
  background-color: #c49419;
  background-image: 
    linear-gradient(to bottom, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 30%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.45) 100%),
    url("fabric-noise.png");
  background-size: 100% 100%, 48px 48px;
}

/* Event: October Autumn / Pumpkin Spice Wool Felt */
.event-ribbon.ribbon-october,
.event-ribbon.ribbon-pumpkin {
  background-color: #cf5611;
  background-image: 
    linear-gradient(to bottom, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.05) 30%, rgba(0, 0, 0, 0.12) 70%, rgba(0, 0, 0, 0.5) 100%),
    url("fabric-noise.png");
  background-size: 100% 100%, 48px 48px;
}

/* Event: Halloween Midnight & Pumpkin Twill Ribbon */
.event-ribbon.ribbon-halloween {
  background-color: #cf5611;
  background-image: 
    linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 30%, rgba(0, 0, 0, 0.12) 70%, rgba(0, 0, 0, 0.55) 100%),
    url("fabric-noise.png"),
    repeating-linear-gradient(
      -45deg,
      #cf5611 0px,
      #cf5611 10px,
      #1c1c1e 10px,
      #1c1c1e 16px,
      #cf5611 16px,
      #cf5611 20px,
      #2c2c2e 20px,
      #2c2c2e 23px
    );
  background-size: 100% 100%, 48px 48px, auto;
}

/* Off: Hide ribbon when not in use */
.event-ribbon.ribbon-none {
  display: none;
}

/* ==========================================================================
   Top Header Bar (Classic 2012 Mac OS X / Chrome Brushed Metallic Bar)
   ========================================================================== */
.top-header {
  height: 44px;
  flex: 0 0 44px;
  background: linear-gradient(to bottom, #ffffff 0%, #ebebeb 48%, #dbdbdb 50%, #cecece 100%);
  border-bottom: 1px solid #8e959d;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22), inset 0 1px 0 #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 10;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-icon {
  width: 26px;
  height: 26px;
  background: radial-gradient(circle at 35% 35%, #55a8f5, #1b63bd);
  border: 1px solid #134d96;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.7), 0 1px 3px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 0 -1px 0 #0f3f7d;
}

.brand-header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.brand-header-link:hover .brand-title {
  color: #1a569b;
}

.brand-title {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: bold;
  color: #2b333e;
  text-shadow: 0 1px 0 #ffffff;
  letter-spacing: -0.2px;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.brand-title .brand-domain {
  font-size: 12px;
  font-weight: normal;
  color: #556272;
  text-shadow: 0 1px 0 #ffffff;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-controls .header-control-label {
  font-size: 11px;
  font-weight: bold;
  color: #444444;
}

.header-controls .btn-2012 {
  height: 24px;
  padding: 0 9px;
  font-size: 11px;
  line-height: 22px;
  box-sizing: border-box;
  vertical-align: middle;
}

.header-controls select.btn-2012 {
  height: 24px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 22px;
  box-sizing: border-box;
  vertical-align: middle;
}

.live-clock-badge {
  height: 24px;
  background: #202428;
  border: 1px solid #48525e;
  border-radius: 3px;
  padding: 0 8px;
  color: #66e3ff;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 1px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.8), 0 1px 0 #fff;
  text-shadow: 0 0 6px rgba(102, 227, 255, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}


/* ==========================================================================
   2012 Glossy Skeuomorphic Buttons
   ========================================================================== */
.btn-2012 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #9ba2aa;
  border-radius: 3px;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 49%, #e2e2e2 50%, #d8d8d8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  outline: none;
  transition: all 0.05s ease;
}

.btn-2012:hover {
  background: linear-gradient(to bottom, #ffffff 0%, #f7f7f7 49%, #eaeaea 50%, #e2e2e2 100%);
  border-color: #848c95;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-2012:active {
  background: linear-gradient(to bottom, #dadada 0%, #e4e4e4 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  transform: translateY(1px);
}

.btn-green {
  color: #fff;
  background: linear-gradient(to bottom, #7acc52 0%, #57ba2a 49%, #4aa720 50%, #5ec22f 100%);
  border-color: #3b8818;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-green:hover {
  background: linear-gradient(to bottom, #86d65f 0%, #61c731 49%, #52b325 50%, #69d038 100%);
  border-color: #317214;
}
.btn-green:active {
  background: linear-gradient(to bottom, #3f901a 0%, #4da321 100%);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5);
}

.btn-blue {
  color: #fff;
  background: linear-gradient(to bottom, #5cb0eb 0%, #3290d9 49%, #227fc8 50%, #449de0 100%);
  border-color: #19639e;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-blue:hover {
  background: linear-gradient(to bottom, #6cbaf0 0%, #419be2 49%, #2f8bd3 50%, #56a7e7 100%);
  border-color: #145284;
}

.btn-red {
  color: #fff;
  background: linear-gradient(to bottom, #f26b68 0%, #e23d38 49%, #cf2924 50%, #e04440 100%);
  border-color: #a41c18;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-red:hover {
  background: linear-gradient(to bottom, #f67c79 0%, #ea4c47 49%, #da332f 50%, #ea534f 100%);
  border-color: #8c1410;
}

.btn-orange {
  color: #ffffff;
  background: linear-gradient(to bottom, #ffa233 0%, #f5840c 49%, #e07200 50%, #f88c17 100%);
  border-color: #b35700;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-orange:hover {
  color: #ffffff;
  background: linear-gradient(to bottom, #ffb34d 0%, #fa9323 49%, #ee7d07 50%, #ff9a2b 100%);
  border-color: #9c4c00;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 4px rgba(224, 114, 0, 0.4);
}

.btn-orange:active {
  color: #ffffff;
  background: linear-gradient(to bottom, #c76100 0%, #db7104 100%);
  border-color: #853f00;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5);
  transform: translateY(1px);
}


.btn-preset {
  padding: 5px 9px;
  font-size: 11px;
  border-radius: 4px;
}

.btn-small {
  padding: 2px 6px;
  font-size: 10px;
}

/* ==========================================================================
   Three Column Main Container
   ========================================================================== */
.main-viewport {
  flex: 1;
  min-height: 0; /* Critical for inner scrolling */
  display: flex;
  gap: 8px;
  padding: 8px;
  box-sizing: border-box;
}

/* Column Base Panel */
.col-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 4px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header-bar {
  background: linear-gradient(to bottom, #f2f4f7 0%, #dfe4ea 100%);
  border-bottom: 1px solid #bcc4cd;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: bold;
  color: #3b444e;
  text-shadow: 0 1px 0 #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}

.panel-subtitle {
  font-size: 10px;
  color: #5a6470;
  font-weight: normal;
}

.panel-subtag {
  font-size: 9px;
  color: #666677;
  font-weight: normal;
}

.header-control-label {
  font-size: 11px;
  font-weight: bold;
  color: #444444;
}

.custom-label-tag {
  font-size: 11px;
  font-weight: bold;
  color: #404953;
}

.panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

/* Custom 2012 Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #ebeef2;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.15);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #c0c6cf, #a7b0bb);
  border: 1px solid #8e98a5;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to right, #abb3be, #939ca8);
}

/* ==========================================================================
   COLUMN 1: Left Sponsored Banners & Blogroll (Early 2012 Blog Sidebar)
   ========================================================================== */
.col-left-ad {
  width: 188px;
  flex: 0 0 188px;
  background: #edf0f4;
}

.sponsor-sidebar-body {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.sponsor-subhead {
  font-size: 9px;
  font-weight: bold;
  color: #5b6675;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  border-bottom: 1px solid #c9d0d8;
  padding-bottom: 2px;
}

.sponsor-banner-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Retro Rectangular Glossy Sponsor Banners */
.retro-banner-box {
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  position: relative;
  overflow: hidden;
}

.retro-banner-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* HostGator Style Green / Yellow */
.gator-banner {
  background: linear-gradient(135deg, #1d8230 0%, #0d521b 100%);
  border: 1px solid #083812;
  color: #fff;
}
.gator-banner .banner-top-tag {
  font-size: 8px;
  font-weight: bold;
  color: #ffde59;
  letter-spacing: 0.5px;
}
.gator-banner .banner-main-title {
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.gator-banner .banner-sub-text {
  font-size: 10px;
  color: #d7f5db;
  margin: 2px 0 4px 0;
  line-height: 1.25;
}
.gator-banner .banner-btn-pill {
  align-self: flex-start;
  font-size: 8px;
  font-weight: bold;
  background: linear-gradient(to bottom, #ffe600, #ffb700);
  color: #332200;
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid #b38000;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

/* ThemeForest Envato Dark & Neon Leaf Style */
.themeforest-banner {
  background: linear-gradient(135deg, #2b3137 0%, #171b1f 100%);
  border: 1px solid #0d1012;
  color: #fff;
}
.themeforest-banner .banner-top-tag {
  font-size: 8px;
  font-weight: bold;
  color: #8cd03f;
  letter-spacing: 0.5px;
}
.themeforest-banner .banner-main-title {
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
}
.themeforest-banner .banner-sub-text {
  font-size: 10px;
  color: #b0bec5;
  margin: 2px 0 4px 0;
  line-height: 1.25;
}
.themeforest-banner .banner-btn-pill {
  align-self: flex-start;
  font-size: 8px;
  font-weight: bold;
  background: linear-gradient(to bottom, #93cf47, #6ea32f);
  color: #fff;
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid #4a751a;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
}

/* Dropbox Cloud Blue Style */
.dropbox-banner {
  background: linear-gradient(135deg, #007ee5 0%, #0053a6 100%);
  border: 1px solid #003e80;
  color: #fff;
}
.dropbox-banner .banner-top-tag {
  font-size: 8px;
  font-weight: bold;
  color: #cce6ff;
  letter-spacing: 0.5px;
}
.dropbox-banner .banner-main-title {
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.dropbox-banner .banner-sub-text {
  font-size: 10px;
  color: #e6f2ff;
  margin: 2px 0 4px 0;
  line-height: 1.25;
}
.dropbox-banner .banner-btn-pill {
  align-self: flex-start;
  font-size: 8px;
  font-weight: bold;
  background: linear-gradient(to bottom, #ffffff, #d9ebff);
  color: #004d99;
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid #80bfff;
  text-shadow: 0 1px 0 #fff;
}

/* Pages, Google Preferred Source & Classic Blogroll */
.pages-section,
.google-pref-section,
.blogroll-section {
  background: #ffffff;
  border: 1px solid #ccd3dc;
  border-radius: 4px;
  padding: 6px;
  box-shadow: inset 0 1px 0 #ffffff;
}

.google-pref-desc {
  font-size: 10px;
  color: #556272;
  margin-bottom: 6px;
  line-height: 1.35;
}

.google-pref-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 32px;
}

.btn-google-pref {
  width: 100%;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  font-weight: bold;
  color: #333333;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  background: linear-gradient(to bottom, #ffffff 0%, #f6f8fa 48%, #e9ecf0 50%, #dfe3e8 100%);
  border: 1px solid #9aa5b5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.08s ease;
}

.btn-google-pref:hover {
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 48%, #f0f3f6 50%, #e6ebf1 100%);
  border-color: #7b8899;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-google-pref:active {
  background: linear-gradient(to bottom, #d5dae2 0%, #e2e6ed 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  transform: translateY(1px);
}

.google-g-icon {
  flex-shrink: 0;
}

.blogroll-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.blogroll-list li {
  font-size: 11px;
  line-height: 1.2;
}

.blogroll-list a {
  color: #0044cc;
  font-weight: bold;
  text-decoration: none;
}
.blogroll-list a:hover {
  text-decoration: underline;
  color: #cc0000;
}

.blogroll-desc {
  display: block;
  font-size: 9px;
  color: #6d7885;
}

/* 80x15 Pixel Micro Badges */
.retro-badges-section {
  background: #ffffff;
  border: 1px solid #ccd3dc;
  border-radius: 4px;
  padding: 6px;
}

.retro-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.micro-badge {
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  font-weight: bold;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid #444;
  box-shadow: 0 1px 1px rgba(0,0,0,0.15);
  line-height: 11px;
}
.micro-badge .badge-l {
  background: #2b3137;
  color: #fff;
  padding: 1px 3px;
}
.micro-badge .badge-r {
  padding: 1px 3px;
  color: #fff;
}
.badge-html5 .badge-r { background: #e34c26; }
.badge-css3 .badge-r { background: #264de4; }
.badge-rss .badge-r { background: #f26522; }
.badge-firefox .badge-r { background: #e66000; }

.buysellads-tag {
  text-align: center;
  margin-top: 5px;
  font-size: 9px;
}
.buysellads-tag a {
  color: #7b8896;
  text-decoration: none;
}
.buysellads-tag a:hover {
  text-decoration: underline;
}


/* ==========================================================================
   COLUMN 2: Center Main Content (Multi-Timer Engine)
   ========================================================================== */
.col-center-timer {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Section: Custom Timer Form */
.custom-timer-section {
  background: linear-gradient(to bottom, #f3f5f8 0%, #e6ebf0 100%);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0,0,0,0.07);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
}

.custom-inputs-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.time-input-box {
  display: flex;
  align-items: center;
  gap: 2px;
}

.time-input-box input[type="number"] {
  width: 44px;
  height: 26px;
  border: 1px solid #8e98a5;
  border-radius: 3px;
  background: #ffffff;
  padding: 2px 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  color: #1a1e24;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
  outline: none;
}
.time-input-box input[type="number"]:focus {
  border-color: #3b88c3;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 4px rgba(59, 136, 195, 0.5);
}

.time-sep {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: bold;
  color: #66727f;
}

.label-input {
  height: 26px;
  border: 1px solid #8e98a5;
  border-radius: 3px;
  padding: 2px 8px;
  font-family: var(--font-main);
  font-size: 12px;
  color: #1a1e24;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
  width: 140px;
  outline: none;
}
.label-input:focus {
  border-color: #3b88c3;
}

.quick-batch-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Active Timers Deck Area */
.active-timers-deck {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.timers-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: max-content;
  gap: 8px;
  background: #e9edf1;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Individual Timer Card - Clickable Preset */
.timer-card {
  background: linear-gradient(to bottom, #ffffff 0%, #f4f6f8 100%);
  border: 1px solid #a2acb7;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 5px rgba(0, 0, 0, 0.12);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.timer-card:hover {
  border-color: #2b7bc2;
  box-shadow: inset 0 1px 0 #ffffff, 0 4px 10px rgba(0, 0, 0, 0.18);
}

.timer-card.is-idle {
  background: linear-gradient(to bottom, #ffffff 0%, #f7f9fb 100%);
}

.timer-card.is-running {
  border-color: #3b9e28;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px rgba(59, 158, 40, 0.25);
}

.timer-card.is-paused {
  border-color: #f0a33c;
  background: linear-gradient(to bottom, #fffdf8 0%, #fbf4ea 100%);
}

.timer-card.is-finished {
  border-color: #d12f2f;
  animation: pulse-ring 1s infinite alternate;
  background: linear-gradient(to bottom, #fff5f5 0%, #ffebeb 100%);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 6px rgba(220, 40, 40, 0.4), inset 0 1px 0 #fff; }
  100% { box-shadow: 0 0 14px rgba(220, 40, 40, 0.8), inset 0 1px 0 #fff; }
}

@keyframes pulse-red {
  0% { opacity: 0.7; }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0.7; }
}

.timer-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timer-label-display {
  font-size: 11px;
  font-weight: bold;
  color: #2a323d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.timer-tag-badge {
  font-size: 9px;
  background: #e2e7ec;
  border: 1px solid #bdc6d0;
  border-radius: 3px;
  padding: 1px 4px;
  color: #55606d;
  font-weight: bold;
}

/* 2012 LCD Digital Bezel Screen */
.lcd-screen-container {
  background: #14171a;
  border: 2px solid #282e36;
  border-radius: 4px;
  padding: 6px 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), 0 1px 0 #ffffff;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

/* Glass reflection sheen line across top half */
.lcd-screen-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
}

/* Digits: White when not running, Neon Green when running */
.lcd-digits {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.7), 0 0 1px #ffffff;
  line-height: 1;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

/* Turns green when running */
.lcd-screen-container.running .lcd-digits,
.timer-card.is-running .lcd-digits {
  color: #33ff33;
  text-shadow: 0 0 8px rgba(51, 255, 51, 0.85);
}

.lcd-screen-container.alarm .lcd-digits,
.timer-card.is-finished .lcd-digits {
  color: #ff3333;
  text-shadow: 0 0 10px rgba(255, 51, 51, 0.9);
  animation: blink 0.6s step-start infinite;
}


@keyframes blink {
  50% { opacity: 0.25; }
}

/* 2012 Animated Aqua/Cyan Progress Bar */
.progress-track {
  height: 12px;
  background: #252a30;
  border: 1px solid #14171a;
  border-radius: 7px;
  padding: 1px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.6), 0 1px 0 #ffffff;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(to bottom, #5ce2f8 0%, #20b0e9 49%, #0994d1 50%, #1ab2ed 100%);
  background-image: 
    linear-gradient(45deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.25) 75%, transparent 75%, transparent),
    linear-gradient(to bottom, #6be6fa 0%, #25b4ec 49%, #0b97d4 50%, #20b8f2 100%);
  background-size: 16px 16px, 100% 100%;
  animation: aqua-stripes 1s linear infinite;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 0 4px rgba(26, 178, 237, 0.85);
  transition: width 0.2s linear;
}

@keyframes aqua-stripes {
  from { background-position: 0 0, 0 0; }
  to { background-position: 16px 0, 0 0; }
}

.progress-fill.paused {
  background-image: 
    linear-gradient(45deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.25) 75%, transparent 75%, transparent),
    linear-gradient(to bottom, #ffa742 0%, #f68916 49%, #e27602 50%, #fa9022 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 0 3px rgba(226, 118, 2, 0.5);
  animation: none;
}

.progress-fill.done {
  background: linear-gradient(to bottom, #ee5f5b 0%, #bd362f 100%);
  animation: none;
  width: 100% !important;
}

/* Timer Control Buttons Row */
.timer-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.timer-btn-group-left {
  display: flex;
  gap: 4px;
}

.btn-main-action {
  min-width: 32px;
  font-size: 11px;
  padding: 3px 6px;
}

.btn-reset {
  min-width: 28px;
  font-size: 13px;
  font-weight: bold;
  padding: 2px 6px;
}


/* ==========================================================================
   COLUMN 3: Right Column (History & Stats Log)
   ========================================================================== */
.col-right-history {
  width: 188px;
  flex: 0 0 188px;
  background: #edf0f4;
}

.history-sidebar-body {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.history-stats-box {
  background: #ffffff;
  border: 1px solid #ccd3dc;
  border-radius: 4px;
  padding: 6px 8px;
  box-shadow: inset 0 1px 0 #ffffff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 0 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 9px;
  font-weight: bold;
  color: #5b6675;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-val {
  font-size: 15px;
  font-weight: bold;
  color: #2c3238;
  font-family: var(--font-mono);
}

.history-list-well {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #ccd3dc;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 #ffffff;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-empty-message {
  text-align: center;
  padding: 24px 6px;
  color: #6d7885;
  font-size: 11px;
}

.history-entry-card {
  background: linear-gradient(to bottom, #ffffff 0%, #f6f8fa 100%);
  border: 1px solid #ccd3dc;
  border-radius: 3px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.history-entry-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-entry-label {
  font-weight: bold;
  color: #2c3238;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 105px;
}

.history-entry-time {
  font-size: 10px;
  color: #6d7885;
  font-family: var(--font-mono);
}

.history-entry-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #555;
}

.history-status-badge {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: bold;
}
.history-status-badge.completed {
  background: #e2f4db;
  color: #2b7519;
  border: 1px solid #b6e2ab;
}
.history-status-badge.stopped {
  background: #fff0d6;
  color: #9c6000;
  border: 1px solid #f6d194;
}

.history-actions-footer {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

/* ==========================================================================
   Bottom Status Bar (Classic 2012 Windows 7 / Mac OS Status Bar)
   ========================================================================== */
.bottom-status-bar {
  height: 24px;
  flex: 0 0 24px;
  background: linear-gradient(to bottom, #e3e6ea 0%, #cbcfd6 100%);
  border-top: 1px solid #9aa2ac;
  box-shadow: inset 0 1px 0 #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  color: #4b5460;
  text-shadow: 0 1px 0 #ffffff;
  z-index: 10;
}

.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #39b54a;
  border: 1px solid #238431;
  border-radius: 50%;
  box-shadow: 0 0 4px #39b54a;
  margin-right: 4px;
}

.status-visitors {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #4b5460;
}

.status-visitors strong {
  font-family: var(--font-mono);
  color: #165ba5;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

.status-btn-link {
  background: transparent;
  border: 1px solid transparent;
  color: #1a569b;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.status-btn-link:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: #adb6c0;
  text-decoration: none;
}

/* Modal Overlay for Audio / Info */
.retro-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.retro-modal-overlay.active {
  display: flex;
}

.retro-modal-window {
  width: 360px;
  background: #eceff2;
  border: 1px solid #737c86;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 #fff;
  overflow: hidden;
}

.retro-modal-header {
  background: linear-gradient(to bottom, #ffffff 0%, #dedede 100%);
  border-bottom: 1px solid #a3abb5;
  padding: 6px 12px;
  font-weight: bold;
  font-size: 12px;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.retro-modal-body {
  padding: 14px;
  font-size: 12px;
  line-height: 1.4;
  color: #333;
}

.retro-modal-footer {
  background: #e2e5e8;
  border-top: 1px solid #b5bdc6;
  padding: 8px 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ==========================================================================
   Screen 2: Crawlable SEO Content Section (Below 100vh)
   ========================================================================== */
.seo-content-section {
  width: 100%;
  max-width: 980px;
  margin: 24px auto 40px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.seo-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.seo-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
}

.seo-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: bold;
  color: #3b444e;
  text-shadow: 0 1px 0 #ffffff;
}

.seo-body {
  padding: 24px 28px;
  user-select: text;
  background: #fdfdfd;
}

.seo-footer-bar {
  background: #eceff2;
  border-top: 1px solid #c8d1db;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #555;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-footer-copy {
  color: #5a6470;
}

.seo-footer-bar a {
  color: var(--link-blue);
  text-decoration: underline;
}

.back-to-timers-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #2c3238;
}

.back-to-top-link {
  font-weight: bold;
}

.status-jump-link {
  color: #1a4d8f;
  text-decoration: none;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.12);
  margin-right: 8px;
  transition: background 0.15s, color 0.15s;
}

.status-jump-link:hover {
  background: rgba(0, 0, 0, 0.12);
  text-decoration: underline;
}

.faq-modal-window {
  width: 580px;
  max-width: 94vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.faq-modal-body {
  overflow-y: auto;
  max-height: calc(85vh - 90px);
  padding: 16px 20px;
  user-select: text;
}

.faq-content h2 {
  font-size: 15px;
  font-weight: bold;
  color: #1a4d8f;
  margin-bottom: 8px;
}

.faq-content h3 {
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin: 16px 0 10px 0;
  border-bottom: 1px solid #c9d2dc;
  padding-bottom: 4px;
}

.faq-content .faq-item {
  margin-bottom: 12px;
}

.faq-content h4 {
  font-size: 12px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 3px;
}

.faq-content p {
  font-size: 12px;
  line-height: 1.5;
  color: #4b5563;
}

.faq-content a {
  color: #0044cc;
  text-decoration: underline;
}

.faq-content ul,
.faq-content ol {
  margin: 6px 0 8px 18px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #4b5563;
}

.faq-content li {
  margin-bottom: 4px;
}

.modal-close-x {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}

.modal-close-x:hover {
  color: #d9534f;
}

/* ==========================================================================
   Dark Mode Theme (2012 Obsidian / Pro App Skeuomorphic Aesthetic)
   ========================================================================== */
body.dark-mode,
html.dark-mode body {
  color: #dbe2ea;
  background: #14171c;
  background-image:
    linear-gradient(45deg, #1b2027 25%, transparent 25%),
    linear-gradient(-45deg, #1b2027 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1b2027 75%),
    linear-gradient(-45deg, transparent 75%, #1b2027 75%);
  background-size: 8px 8px;
}

body.dark-mode .top-header,
html.dark-mode .top-header {
  background: linear-gradient(to bottom, #2e343e 0%, #22272f 48%, #1b1f26 50%, #15191e 100%);
  border-bottom: 1px solid #0d1014;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dark-mode .brand-title,
html.dark-mode .brand-title {
  color: #f1f5f9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

body.dark-mode .brand-title .brand-domain,
html.dark-mode .brand-title .brand-domain {
  color: #8d99a8;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}

body.dark-mode .brand-header-link:hover .brand-title,
html.dark-mode .brand-header-link:hover .brand-title {
  color: #63b3ff;
}

body.dark-mode .header-control-label,
html.dark-mode .header-control-label,
body.dark-mode .header-controls label,
html.dark-mode .header-controls label {
  color: #b0bcc8 !important;
}

body.dark-mode select#soundSelect,
html.dark-mode select#soundSelect {
  background: linear-gradient(to bottom, #39404c 0%, #2d333e 49%, #232832 50%, #1f232b 100%);
  color: #e5ebf2;
  border: 1px solid #14171d;
}

body.dark-mode select#soundSelect option,
html.dark-mode select#soundSelect option {
  background: #1a1e26;
  color: #e5ebf2;
}

body.dark-mode .btn-2012,
html.dark-mode .btn-2012 {
  background: linear-gradient(to bottom, #39404c 0%, #2d333e 49%, #232832 50%, #1f232b 100%);
  border: 1px solid #14171d;
  color: #e5ebf2;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.35);
}

body.dark-mode .btn-2012:hover,
html.dark-mode .btn-2012:hover {
  background: linear-gradient(to bottom, #444c5a 0%, #363d4a 49%, #2a303b 50%, #242a34 100%);
  border-color: #0f1217;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.5);
}

body.dark-mode .btn-2012:active,
html.dark-mode .btn-2012:active {
  background: linear-gradient(to bottom, #181b21 0%, #22262f 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.65);
}

/* Theme Toggle Button Highlight */
.theme-toggle-btn {
  font-size: 11px;
}

body.dark-mode .theme-toggle-btn.btn-dark-active,
html.dark-mode .theme-toggle-btn.btn-dark-active {
  background: linear-gradient(to bottom, #443e2f 0%, #353023 49%, #272318 50%, #1f1b12 100%);
  border-color: #554516;
  color: #ffd866;
  box-shadow: inset 0 1px 0 rgba(255, 216, 102, 0.25), 0 1px 2px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Keep colored buttons vibrant with deep dark shadows */
body.dark-mode .btn-green,
html.dark-mode .btn-green {
  background: linear-gradient(to bottom, #6cb846 0%, #4da724 49%, #41961c 50%, #52ad28 100%);
  border-color: #2b6811;
  color: #fff;
}

body.dark-mode .btn-blue,
html.dark-mode .btn-blue {
  background: linear-gradient(to bottom, #4f9ed7 0%, #2c81c4 49%, #1d70b0 50%, #3a8cc9 100%);
  border-color: #124976;
  color: #fff;
}

body.dark-mode .btn-orange,
html.dark-mode .btn-orange {
  background: linear-gradient(to bottom, #e88d22 0%, #d86f05 49%, #c46200 50%, #db750b 100%);
  border-color: #8c4200;
  color: #fff;
}

body.dark-mode .btn-red,
html.dark-mode .btn-red {
  background: linear-gradient(to bottom, #dc5653 0%, #cc2b26 49%, #ba1914 50%, #cc3430 100%);
  border-color: #7d120e;
  color: #fff;
}

/* Base Panels */
body.dark-mode .col-panel,
html.dark-mode .col-panel {
  background: #1b1f25;
  border-color: #2e353f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 4px rgba(0, 0, 0, 0.45);
}

body.dark-mode .panel-header-bar,
html.dark-mode .panel-header-bar {
  background: linear-gradient(to bottom, #272d36 0%, #1e232b 100%);
  border-bottom: 1px solid #14171d;
  color: #ccd4de;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.8);
}

body.dark-mode .panel-subtitle,
html.dark-mode .panel-subtitle {
  color: #9cb0c4;
}

body.dark-mode .panel-subtag,
html.dark-mode .panel-subtag {
  color: #8c9cb0;
}

/* Custom Timer Form in Dark Mode */
body.dark-mode .custom-timer-section,
html.dark-mode .custom-timer-section {
  background: linear-gradient(to bottom, #252b34 0%, #1c2128 100%);
  border-color: #2e353f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .custom-label-tag,
html.dark-mode .custom-label-tag,
body.dark-mode .custom-inputs-group span,
html.dark-mode .custom-inputs-group span {
  color: #c4d0dc !important;
}

body.dark-mode .time-input-box input[type="number"],
body.dark-mode .label-input,
html.dark-mode .time-input-box input[type="number"],
html.dark-mode .label-input {
  background: #111419;
  border-color: #2f3642;
  color: #66e3ff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

body.dark-mode .label-input::placeholder,
html.dark-mode .label-input::placeholder {
  color: #657588;
}

body.dark-mode .time-input-box input[type="number"]:focus,
body.dark-mode .label-input:focus,
html.dark-mode .time-input-box input[type="number"]:focus,
html.dark-mode .label-input:focus {
  border-color: #3b88c3;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 5px rgba(102, 227, 255, 0.4);
}

body.dark-mode .time-sep,
html.dark-mode .time-sep {
  color: #8da0b4;
}

/* Timers Grid & Cards in Dark Mode */
body.dark-mode .timers-grid,
html.dark-mode .timers-grid {
  background: #13161b;
}

body.dark-mode .timer-card,
html.dark-mode .timer-card {
  background: linear-gradient(to bottom, #232831 0%, #191c22 100%);
  border-color: #333b46;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 5px rgba(0, 0, 0, 0.35);
}

body.dark-mode .timer-card:hover,
html.dark-mode .timer-card:hover {
  border-color: #3d88cf;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .timer-card.is-idle,
html.dark-mode .timer-card.is-idle {
  background: linear-gradient(to bottom, #232831 0%, #191c22 100%);
}

body.dark-mode .timer-card.is-running,
html.dark-mode .timer-card.is-running {
  border-color: #3da42a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 8px rgba(61, 164, 42, 0.35);
}

body.dark-mode .timer-card.is-paused,
html.dark-mode .timer-card.is-paused {
  border-color: #e09430;
  background: linear-gradient(to bottom, #2c251a 0%, #1f1a12 100%);
}

body.dark-mode .timer-card.is-finished,
html.dark-mode .timer-card.is-finished {
  border-color: #cf2f2f;
  background: linear-gradient(to bottom, #2f1b1b 0%, #201212 100%);
}

/* Timer Card Labels & Badges */
body.dark-mode .timer-label-display,
html.dark-mode .timer-label-display {
  color: #f1f5f9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

body.dark-mode .timer-tag-badge,
html.dark-mode .timer-tag-badge {
  background: #252b35;
  border: 1px solid #3a4452;
  color: #a4b5c6;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7);
}

body.dark-mode .timer-card:hover .timer-tag-badge,
html.dark-mode .timer-card:hover .timer-tag-badge {
  border-color: #4b5869;
  color: #c8d6e5;
}

body.dark-mode .lcd-screen-container,
html.dark-mode .lcd-screen-container {
  background: #090b0e;
  border-color: #1a1e24;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.07);
}

body.dark-mode .progress-track,
html.dark-mode .progress-track {
  background: #101317;
  border-color: #080a0c;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Left Column (Partners / Ads) in Dark Mode */
body.dark-mode .col-left-ad,
html.dark-mode .col-left-ad {
  background: #171a1f;
}

body.dark-mode .sponsor-subhead,
html.dark-mode .sponsor-subhead {
  color: #9aa7b7;
  border-bottom-color: #2b323d;
}

body.dark-mode .pages-section,
html.dark-mode body .pages-section,
body.dark-mode .google-pref-section,
html.dark-mode body .google-pref-section,
body.dark-mode .blogroll-section,
html.dark-mode .blogroll-section {
  background: #1f242c;
  border-color: #2e353f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .google-pref-desc,
html.dark-mode body .google-pref-desc {
  color: #9aa7b7;
}

body.dark-mode .btn-google-pref,
html.dark-mode body .btn-google-pref {
  color: #e2e8f0;
  background: linear-gradient(to bottom, #2d333b 0%, #252b33 48%, #1c2128 50%, #161b22 100%);
  border-color: #444c56;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.4);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6);
}

body.dark-mode .btn-google-pref:hover,
html.dark-mode body .btn-google-pref:hover {
  background: linear-gradient(to bottom, #373e48 0%, #2d333b 48%, #22272e 50%, #1c2128 100%);
  border-color: #586372;
}

body.dark-mode .btn-google-pref:active,
html.dark-mode body .btn-google-pref:active {
  background: linear-gradient(to bottom, #13171d 0%, #1c2128 100%);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.7);
}

body.dark-mode .blogroll-list a,
html.dark-mode .blogroll-list a {
  color: #63a9ff;
}

body.dark-mode .blogroll-list a:hover,
html.dark-mode .blogroll-list a:hover {
  color: #ff857f;
}

body.dark-mode .blogroll-desc,
html.dark-mode .blogroll-desc {
  color: #9aa6b6;
}

/* Web 2.0 Badges Inset Container in Dark Mode */
body.dark-mode .retro-badges-section,
html.dark-mode .retro-badges-section {
  background: #1f242c;
  border: 1px solid #2e353f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .buysellads-tag a,
html.dark-mode .buysellads-tag a {
  color: #8391a1;
}

body.dark-mode .buysellads-tag a:hover,
html.dark-mode .buysellads-tag a:hover {
  color: #63b3ff;
}

/* Right Column (History & Stats) in Dark Mode */
body.dark-mode .col-right-history,
html.dark-mode .col-right-history {
  background: #171a1f;
}

body.dark-mode .history-stats-box,
html.dark-mode .history-stats-box {
  background: #1f242c;
  border: 1px solid #2e353f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .stat-label,
html.dark-mode .stat-label {
  color: #9aa7b7;
}

body.dark-mode .stat-val,
html.dark-mode .stat-val {
  color: #f1f5f9;
}

body.dark-mode .history-list-well,
html.dark-mode .history-list-well {
  background: #1f242c;
  border: 1px solid #2e353f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .history-empty-message,
html.dark-mode .history-empty-message {
  color: #9aa6b6;
}

/* History Cards in Dark Mode */
body.dark-mode .history-entry-card,
html.dark-mode .history-entry-card {
  background: linear-gradient(to bottom, #252b34 0%, #1c2128 100%);
  border: 1px solid #2e353f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark-mode .history-entry-label,
html.dark-mode .history-entry-label {
  color: #f1f5f9;
}

body.dark-mode .history-entry-time,
html.dark-mode .history-entry-time {
  color: #9aa6b6;
}

body.dark-mode .history-entry-bottom,
html.dark-mode .history-entry-bottom {
  color: #a4b3c4;
}

body.dark-mode .history-status-badge.completed,
html.dark-mode .history-status-badge.completed {
  background: #15391c;
  color: #6ee66a;
  border: 1px solid #285e31;
}

body.dark-mode .history-status-badge.stopped,
html.dark-mode .history-status-badge.stopped {
  background: #3a270f;
  color: #ffb852;
  border: 1px solid #63431a;
}

/* Bottom Status Bar & Scrollbars in Dark Mode */
body.dark-mode .bottom-status-bar,
html.dark-mode .bottom-status-bar {
  background: linear-gradient(to bottom, #252a32 0%, #1b1e24 100%);
  border-top: 1px solid #101317;
  color: #8c98a6;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .status-visitors,
html.dark-mode .status-visitors {
  color: #8c98a6;
}

body.dark-mode .status-visitors strong,
html.dark-mode .status-visitors strong {
  color: #66e3ff;
  background: rgba(0, 0, 0, 0.45);
  border-color: #27303c;
  text-shadow: 0 0 5px rgba(102, 227, 255, 0.5);
}

body.dark-mode ::-webkit-scrollbar-track,
html.dark-mode ::-webkit-scrollbar-track {
  background: #14171c;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode ::-webkit-scrollbar-thumb,
html.dark-mode ::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #39414e, #2c323d);
  border: 1px solid #1f242c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover,
html.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to right, #454d5b, #353b47);
}

body.dark-mode .status-btn-link,
html.dark-mode body .status-btn-link {
  color: #60a5fa;
}

body.dark-mode .status-btn-link:hover,
html.dark-mode body .status-btn-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #475569;
}

body.dark-mode .retro-modal-window,
html.dark-mode body .retro-modal-window {
  background: #1e242c;
  border-color: #404b5a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark-mode .retro-modal-header,
html.dark-mode body .retro-modal-header {
  background: linear-gradient(to bottom, #2b3340 0%, #1e2530 100%);
  border-bottom-color: #384250;
  color: #e2e8f0;
}

body.dark-mode .retro-modal-body,
html.dark-mode body .retro-modal-body {
  color: #cbd5e1;
}

body.dark-mode .retro-modal-footer,
html.dark-mode body .retro-modal-footer {
  background: #181d24;
  border-top-color: #2e3744;
}

body.dark-mode .faq-content h2,
html.dark-mode body .faq-content h2 {
  color: #60a5fa;
}

body.dark-mode .faq-content h3,
html.dark-mode body .faq-content h3 {
  color: #e2e8f0;
  border-bottom-color: #334155;
}

body.dark-mode .faq-content h4,
html.dark-mode body .faq-content h4 {
  color: #93c5fd;
}

body.dark-mode .faq-content p,
html.dark-mode body .faq-content p,
body.dark-mode .faq-content ul,
html.dark-mode body .faq-content ul,
body.dark-mode .faq-content ol,
html.dark-mode body .faq-content ol {
  color: #94a3b8;
}

body.dark-mode .faq-content a,
html.dark-mode body .faq-content a {
  color: #38bdf8;
}

body.dark-mode .seo-card,
html.dark-mode body .seo-card {
  background: #1e242c;
  border-color: #404b5a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark-mode .seo-header-title,
html.dark-mode body .seo-header-title {
  color: #e2e8f0;
  text-shadow: 0 1px 0 #000000;
}

body.dark-mode .seo-body,
html.dark-mode body .seo-body {
  background: #161b22;
}

body.dark-mode .seo-footer-bar,
html.dark-mode body .seo-footer-bar {
  background: #14181f;
  border-top-color: #2e3744;
  color: #94a3b8;
}

body.dark-mode .seo-footer-copy,
html.dark-mode body .seo-footer-copy {
  color: #94a3b8;
}

body.dark-mode .seo-footer-bar a,
html.dark-mode body .seo-footer-bar a {
  color: #38bdf8;
}

body.dark-mode .status-jump-link,
html.dark-mode body .status-jump-link {
  color: #60a5fa;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .status-jump-link:hover,
html.dark-mode body .status-jump-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #93c5fd;
}

body.dark-mode .back-to-timers-btn,
html.dark-mode body .back-to-timers-btn {
  color: #e2e8f0;
}

body.dark-mode .modal-close-x,
html.dark-mode body .modal-close-x {
  color: #94a3b8;
}

body.dark-mode .modal-close-x:hover,
html.dark-mode body .modal-close-x:hover {
  color: #f87171;
}

/* ==========================================================================
   Responsive Adaptability & Mobile Optimization
   ========================================================================== */
@media (max-width: 1050px) and (min-width: 821px) {
  .timers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .col-right-history {
    width: 188px;
    flex: 0 0 188px;
  }
}

/* Mobile & Tablet Portrait View */
@media (max-width: 820px) {
  /* Natural vertical scrolling on mobile */
  html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app-container {
    height: auto;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .app-viewport-screen {
    height: auto;
    min-height: auto;
  }

  .seo-content-section {
    margin: 14px auto 32px auto;
    padding: 0 8px;
  }

  .seo-body {
    padding: 18px 14px;
  }

  /* 1. Simplify Header: Show title only, hide other header controls */
  .top-header {
    height: 42px;
    flex: 0 0 42px;
    padding: 0 10px;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .brand-wrapper {
    width: 100%;
    justify-content: center;
  }

  .brand-header-link {
    justify-content: center;
    text-align: center;
  }

  .brand-title {
    font-size: 14px;
    white-space: nowrap;
  }

  /* Hide audio dropdown, test button, toggle, and live clock on mobile */
  .header-controls {
    display: none !important;
  }

  /* Main Viewport: Vertical Column Flow */
  .main-viewport {
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 8px;
    gap: 10px;
  }

  /* Main Content First (Custom Timer & Presets Deck) */
  .col-center-timer {
    order: 1;
    width: 100%;
    flex: none;
  }

  .active-timers-deck {
    flex: none;
    min-height: auto;
    overflow: visible;
  }

  .timers-grid {
    flex: none;
    min-height: auto;
    overflow-y: visible;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  /* Hide Custom Add Timer on Mobile */
  .custom-inputs-group {
    display: none !important;
  }

  .custom-timer-section {
    padding: 6px 8px;
    justify-content: center;
  }

  .quick-batch-actions {
    display: flex;
    width: 100%;
    gap: 6px;
  }

  .quick-batch-actions .btn-2012 {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 11px;
  }

  /* Hide desktop-only history sidebar on mobile */
  .col-right-history {
    display: none !important;
  }

  /* 2. Ads Area: Shows in the bottom after the content */
  .col-left-ad {
    order: 2;
    display: flex !important;
    width: 100%;
    flex: none;
    overflow: visible;
    margin-top: 4px;
    margin-bottom: 8px;
  }

  .col-left-ad .sponsor-sidebar-body {
    overflow: visible;
    padding: 10px;
    gap: 12px;
  }

  .pages-section,
  .google-pref-section,
  .blogroll-section {
    width: 100%;
  }

  .blogroll-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 6px 12px;
  }

  .retro-badges-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Status Bar at Bottom */
  .bottom-status-bar {
    height: auto;
    min-height: 28px;
    flex: 0 0 auto;
    padding: 4px 10px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .status-left, .status-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* Extra Small Mobile Devices (e.g. iPhone SE / < 360px) */
@media (max-width: 360px) {
  .brand-title {
    font-size: 12px;
  }

  .brand-logo-icon {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .timers-grid {
    grid-template-columns: 1fr;
  }
}


