 /* * COUNTER-APP
 * Copyright (C) 2026 AlphexOne
 * SPDX-License-Identifier: GPL-3.0-or-later */



/* =========================
    IPHONE 15 PRO SIMULATION
========================= */

:root {

  --bg-card-primary: #1f1f25;
  --bg-card-hover: #222228;

  --text-muted: #9a9ca0;

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  --btn-bg: #673ab7;
}

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

body{

  margin:0;

  min-height:100vh;

  display:flex;
  justify-content:center;
  align-items:center;

  background:#bdbdbd;

  font-family:-apple-system,
  BlinkMacSystemFont,
  sans-serif;
}


/* =========================
    IPHONE FRAME
========================= */


.app{

  width:393px;

  height:852px;
  max-height:100vh;

  background:#000;

  border-radius:55px;

  padding:12px;

  position:relative;

  overflow:hidden;

  box-shadow:
    0 0 0 2px #222,
    0 30px 80px rgba(0,0,0,.35);
}

/* =========================
    DISPLAY
========================= */

.screen{

  width:100%;
  height:100%;

  background:white;

  border-radius:42px;

  overflow:hidden;

  position:relative;

  display:flex;
  flex-direction:column;
}


/* =========================
    DYNAMIC ISLAND
========================= */

.island{

  position:absolute;

  top:14px;
  left:50%;

  transform:translateX(-50%);

  width:125px;
  height:35px;

  background:black;

  border-radius:999px;

  z-index:1000;
}


/* =========================
    STATUSBAR
========================= */

.statusbar{

  height:55px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:0 28px;

  font-size:14px;
  font-weight:600;

  flex-shrink:0;
}


/* =========================
    CONTENT
========================= */

.content{

  flex:1;

  overflow-y:auto;
  overflow-x:hidden;

  padding-left:20px;
  padding-right:20px;

  /* obere iPhone Safe Area */
  padding-top: calc(50px + env(safe-area-inset-top));

  /* untere Safe Area + Footer */
  /* padding-bottom:
    calc(110px + env(safe-area-inset-bottom)); */

  min-height:0;

  -webkit-overflow-scrolling:touch;
}


/* =========================
    TITEL
========================= */

h1{

  font-size:32px;

  margin-bottom:20px;
}


/* =========================
    BUTTONS
========================= */

button{

  width:100%;

  padding:17px;

  border:none;

  border-radius:18px;

  background:black;
  color:white;

  font-size:17px;
  font-weight:600;

  cursor:pointer;
}


/* =========================
    INPUT
========================= */

input{

  width:100%;

  padding:16px;

  border-radius:16px;

  border:1px solid #d0d0d0;

  font-size:16px;

  outline:none;
}


/* =========================
    FOOTER
========================= */

.footer{

  position:absolute;

  bottom:0;
  left:0;

  width:100%;

  height:70px; 

  padding-bottom: 50px;
  padding-bottom: calc(env(safe-area-inset-bottom));  /*war auf + 10px*/

  background:#111;

  display:flex;
  justify-content:space-around;
  align-items:center;

  color:white;

  z-index:100;
}

.nav-btn{

  background:none;
  border:none;

  width:auto;

  padding:0;

  font-size:26px;

  color:white;
}

/* =========================
    MOBILE
========================= */

@media (max-width:500px){

  body{
    background:#111;
    overflow:hidden;
  }

  .app{

    width:100%;
    height:100vh;

    border-radius:0;

    padding:0;

    box-shadow:none;
  }

  .screen{
    border-radius:0;
    padding-bottom: 70px;
    padding-top: 30px;
  }

  .island{
    display:none;
  }

  .statusbar{
    display:none;
  }

  .content{
    padding-top:30px;
  }
  .footer{
    position: fixed;

    height:70px; 

    padding-bottom: 70px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 70px);
  }
}

/* =========================
    COUNTER APP
========================= */

.hidden {
  display: none;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;

  margin-top: 50px;
  margin-bottom: 20px;
}

.circle-btn {
  width: 58px;
  height: 58px;

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--btn-bg);

  flex-shrink: 0;
}

.circle-btn i {
  font-size: 22px;
}

#listContainer {
  margin-top: 24px;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-card {
  background: var(--bg-card-primary);

  border-radius: 22px;

  padding: 18px;

  color: white;

  cursor: pointer;

  transition: 0.2s;
}

.list-card:hover {
  background: var(--bg-card-hover);
}

.list-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.list-card p {
  color: var(--text-muted);
}

.empty-box {
  background: var(--bg-card-primary);

  border-radius: 20px;

  padding: 18px;

  color: var(--text-muted);

  text-align: center;
}

.back-btn {
  margin-bottom: 20px;

  background: transparent;
  color: black;

  padding: 0;

  text-align: left;
}

.counter-box {
  margin-top: 30px;

  background: var(--bg-card-primary);

  border-radius: 30px;

  padding: 40px 20px;

  text-align: center;
}

#counterValue {
  color: white;

  font-size: 72px;
  font-weight: 700;
}

.counter-buttons {
  display: flex;
  gap: 12px;

  margin-top: 24px;
}

.counter-buttons button {
  flex: 1;
}

.success-btn {
  background: var(--success);
}

.danger-btn {
  background: var(--error);
}

.warning-btn {
  background: var(--warning);
}

.update-box {
  margin-top: 28px;

  background: var(--bg-card-primary);

  border-radius: 22px;

  padding: 18px;

  color: white;
}

.update-box p {
  color: var(--text-muted);

  margin-bottom: 8px;
}