body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0 0;
    background: #f4f4f4;
}

h1, h2 {
    color: #333;
    margin-top: 30px;
    text-align: left;
    padding-left: 15px;
}

.tables {
    width: 100%;
}
span#pendingCount {
    font-size: 115px;
}
span#paidCount {
    font-size: 115px;
}
span#totalSum {
    font-size: 73px;
}
span.currency {
    font-size: 33px;
}

strong {
    font-size: 31px;
}

/* ==== STATISTIKA BLOK ==== */
#stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 15px;
}

.stat-box {
    border: 2px solid #ccc;
    border-radius: 12px;
    padding: 15px 20px;
    background-color: white;
    text-align: center;
    flex: 0 1 180px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ==== TABELE ==== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    overflow-x: auto;
    display: table;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    white-space: nowrap;
}

th {
    background-color: #f8f8f8;
    font-weight: bold;
}

/* ==== DUGME ZA PROMENU TEME ==== */
#toggleThemeBtn {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 100;
    padding: 8px 14px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: #333;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ==== DARK MODE ==== */
body.dark-mode {
    background-color: #1c1c1c;
    color: #e4e4e4;
}

body.dark-mode h1,
body.dark-mode h2 {
    color: #ffffff;
}

body.dark-mode .stat-box {
    background-color: #2a2a2a;
    border-color: #555;
}

body.dark-mode table,
body.dark-mode th,
body.dark-mode td {
    background-color: #2a2a2a;
    color: #e4e4e4;
    border-color: #444;
}

body.dark-mode #toggleThemeBtn {
    background-color: #ddd;
    color: #111;
}

/* ==== MOBILNA VERZIJA ==== */

/* ==== MOBILNA VERZIJA DO 750px ==== */
@media (max-width: 750px) {
  #stats {
    flex-direction: column;
    align-items: stretch;
    margin: 20px 10px;
    display: flex;
    justify-content: space-around;
    gap: 15px;
  }

  .stat-box {
    width: 90%;
    margin-bottom: 12px;
    font-size: 14px;
    border: 2px solid #ccc;
    border-radius: 12px;
    padding: 14px 16px;
    background-color: white;
    text-align: center;
    flex: 1 1 89px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  table {
    font-size: 14px;
  }

  th, td {
    padding: 8px;
    font-size: 10px;
  }

  h1, h2 {
    font-size: 22px;
    padding-left: 10px;
  }

  #toggleThemeBtn {
    font-size: 25px;
    padding: 6px 12px;
  }

  strong {
    font-size: 30px;
  }

  span#pendingCount,
  span#paidCount,
  span#totalSum {
    font-size: 50px !important;
  }
   span.currency {
    font-size: 30px !important;
}
}

