
/* The dock container */
#iconDock {
    position: fixed;
    top: 0;
    left: 50vw;                 /* always the middle of the viewport */
    width: 400px;
    height: 80px;
    margin-left: -150px;        /* half of width = perfect centering */
    z-index: 1000;
    overflow: visible;
}

/* The sliding panel */
#iconDock .dock-inner {
    position: absolute;
    top: -70px;                 /* hides all but 20px */
    width: 100%;
    height: 80px;
    background: rgb(187, 104, 3);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: top 0.3s ease;
}

/* Hover reveal */
#iconDock:hover .dock-inner {
    top: 0;
}

/* Icons */
#iconDock img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#iconDock img:hover {
    transform: scale(1.15);
}

#open-calendar {
    background-color: transparent;
    border: none;
    cursor: pointer;
   
  }

#open-calculator {
    background-color: transparent;
    border: none;
    cursor: pointer;
   
  }

#open-email {
    background-color: transparent;
    border: none;
    cursor: pointer;
   
  }

#open-stopwatch {
    background-color: transparent;
    border: none;
    cursor: pointer;
   
  }

#app-flex{
  display: flex;
  justify-content: space-around;
  flex-wrap: nowrap;
  
}


/* Calendar Style */

#calendar-panel {
    position: relative;
    top: 100px;
    width: 330px;
    left:0  ;
    transform: translate(calc(25vw), -700px);
    transition: all 0.4s ease;
    z-index: 900;
  }

  #calendar-panel.active {
    position: relative;
    transform: translate(0,0);            /* Slides into view */
  }


.calendar {
  width: 300px;
  font-family: Arial, sans-serif;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background: rgba(237,232,208,0.9);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-header button {
  background: #0078D7;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.calendar-header button:hover {
  background: #005ea6;
}

.calendar-weekdays, .calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-top: 10px;
}

.calendar-weekdays div {
  font-weight: bold;
  padding: 5px 0;
}

.calendar-days div {
  padding: 8px 0;
  margin: 2px 0;
  border-radius: 4px;
  cursor: pointer;
}

.calendar-days div:hover {
  background: #eee;
}

.calendar-days .today {
  background: #0078D7;
  color: white;
  border-radius: 4px;
}

/*-- End Calendar Style -->*/


/*<!-- Stopeatch Style -->*/

:root {
  --size: 200px; /* 🔧 change this to scale everything */
}
#stopwatch-panel {
  position: relative;
  top: 100px;
  left:0;
  transform: translate(calc(-25vw), -360px);
  transition: all 0.4s ease;
  z-index: 900;
}

  #stopwatch-panel.active3 {
    transform: translate(0,0);            /* Slides into view */  
  }

/* WATCH */
.watch {
  position:relative;
  width:var(--size);
  height:var(--size);
  border-radius:50%;
  background: radial-gradient(circle, #222 60%, #000);
  border: calc(var(--size) * 0.04) outset #444;
  box-shadow: inset 0 0 calc(var(--size)*0.09) #000;
  margin: 20px;
}

/* DISPLAY */
.display {
  position:absolute;
  top:32%;
  left:50%;
  transform:translateX(-50%);
  width:72%;
  height:22%;
  background:#001a00;
  border-radius: calc(var(--size)*0.04);
  border: calc(var(--size)*0.01) solid #555;
  box-shadow: inset 0 0 calc(var(--size)*0.04) #000;
  overflow:hidden;
  z-index:1;
}

/* GLASS */
.display::after {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.25),
    rgba(255,255,255,0.05) 30%,
    transparent 60%
  );
  pointer-events:none;
}

/* DIGITS */
.digits {
  display:flex;
  justify-content:center;
  gap:3%;
  margin-top:6%;
}

svg {
  width: calc(var(--size) * 0.10);
  height: calc(var(--size) * 0.16);
}

.seg { fill:#033; }
.on {
  fill:#00ffcc;
  filter: drop-shadow(0 0 3px #00ffcc);
}

/* BUTTONS */
.btn {
  position:absolute;
  width:26%;
  height:10%;
  border-radius:999px;
  border:1px solid #999;
  background: linear-gradient(#ddd, #888);
  box-shadow:
    inset 0 2px 3px #fff,
    inset 0 -2px 3px #666,
    0 2px 4px #000;
  font-size: calc(var(--size)*0.035);
  cursor:pointer;
  z-index:10;
}

.btn:active {
  box-shadow:
    inset 0 3px 6px #444,
    inset 0 -1px 2px #222;
}

/* BUTTON POSITIONS (scaled) */
.go    { top:-5%; left:50%; transform:translateX(-50%); color: green;}
.reset  { top:4%; left:6%; rotate: -30deg; color: red; }
.lap   { top:4%; right:6%; rotate: +30deg; }
.stop { top:65%; left:50%; transform:translateX(-50%); }

/* LAPS */

/* LAP BOX – positioned to the right of the stopwatch */
.laps {
  position: absolute;
  top: 0;
  left: calc(100% + 20px);   /* 20px to the right of the watch */
  width: 180px;
  max-height: var(--size);
  overflow-y: auto;
  padding: 10px;
  background: #0044aa;
  color: yellow;
  border-radius: 6px;
  box-shadow: inset 0 0 8px #000;
  display: none;             /* Hidden until first lap */
}

.lap-item {
  border-bottom: 1px solid rgba(255,255,0,0.4);
  padding: 4px 0;
}

/* 7‑segment digit (no SVG) */
.digit {
  position: relative;
  width: calc(var(--size) * 0.10);
  height: calc(var(--size) * 0.16);
  display: inline-block;
}

.seg {
  position: absolute;
  background: rgb(1, 163, 163);
  opacity: 0.25;
  transition: opacity 0.15s;
  border-radius: 4px;
}

.seg.on {
  background: #00ffcc;
  opacity: 1;
  filter: drop-shadow(0 0 3px #00ffcc);
}

/* Horizontal segments */
.seg.a, .seg.d, .seg.g {
  width: 70%;
  height: 12%;
  left: 15%;
}

.seg.a { top: 0; }
.seg.g { top: 41%; }
.seg.d { bottom: 0; }

/* Vertical segments */
.seg.b, .seg.c, .seg.e, .seg.f {
  width: 17%;
  height: 40%;
}

.seg.b { right: 0; top: 10%; }
.seg.c { right: 0; bottom: 10%; }
.seg.e { left: 0; bottom: 10%; }
.seg.f { left: 0; top: 10%; }




/* <!-- End of Stopwatch Stytle --> */
