/* css file for TTLorganized.com */

/* 1. The Global Reset */
html {
  /* This matches navbar color so any 'leaks' are invisible */
  background-color: var(--color-body-bg); 
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden; /* This is a safety net */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-body-bg); /* Match Navbar */
  overflow-x: hidden; /* This is a safety net */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

/* 2. The Navbar */
.navbar {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  background: var(--color-navbar-bg);
  /* env(safe-area-inset-top) ensures it goes behind the clock/battery */
  
  padding: env(safe-area-inset-top, 0px) 14px 6px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px; /* Adjust this number to your liking */
  /* Keep your padding for the safe area at the top */
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  gap:12px;
}


.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap; 
}

.nav-left {
  font-weight: 700;
  font-size: 22px;
}

.nav-left a {
  text-decoration: none;
  color: var(--color-navleft-txt);
}

.nav-right a {
  text-decoration: none;
  color: var(--color-navright-txt);
  font-size: 16px;
}

@media (max-width: 600px) {
  .navbar {
    padding: 10px 16px;
  }

  .navbar ul {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-left {
    font-size: 18px;
  }

  .nav-right a {
    font-size: 14px;
  }
}

/* 3. The Content Area (Where the color lives) */

.content {
  flex: 1;
  width: 100%;
  background:var(--color-content-bg);
}



@media (max-width: 600px) {
    .footer {
        padding:15px;
    }
}

h1 {
  font-size: 32px;
  margin-top: 20px;
  color: var(--color-h1);
  font-weight: 520;
}

h2 {
  font-size: 27px;
  text-align: center;
  color: var(--color-h2);
  font-weight: 500;
  margin: 10px;
}

h3 {
  font-size: 21px;
  margin-top: 6px;
  color: var(--color-h3);
  font-weight: 450;
}

p {
  font-size: 16px;
  margin: 10px;
  color: var(--color-p);
}


/* ===== Define the center position of the page, is only added on pages where you want centered content ===== */
.page-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ===== Container related CSS ===== */
.container {
    max-width: 800px;
    margin: 35px auto; /*container is centered using auto*/
    background: var(--color-container-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    box-sizing: border-box; /*important*/
}

.container.centered {
  text-align: center;
}

.container h2 {
  margin-top: 0;
}

.container input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  color: var(--color-input-txt);       /* text color */
  background: var(--color-input-bg);  /* background */
}

.container label {
  font-size: 16px;
  margin-top: 6px;
  color: var(--color-label);
  font-weight: 450;
}

.container h2 {
  font-size: 30px;
  text-align: center;
  color: var(--color-h2);
  font-weight: 500;
  margin-bottom: 20px;
}

.container h3 {
  font-size: 22px;
  text-align: center;
  color: var(--color-h3);
  font-weight: 500;
  margin-bottom: 20px;
}

.container p {
  font-size: 16px;
  margin: 6px;
  color: var(--color-p);
  margin-bottom: 10px;
}

/* ===== Button for Form Submit and Primary Actions ===== */
.button-main {
  display: inline-block;
  width: 100%;
  padding: 10px;
  background: var(--color-btn-main);
  color: var(--color-btn-txt);
  border: none;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  margin-top:10px;
}

.button-main:hover {
  opacity: 0.9;
}

/* ===== Password Field ===== */
.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 40%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 18px;
  color: #777;
}

.bottom-text {
  margin-top: 18px;
  text-align: center;
  font-size: 15px;
  color: var(--color-bottom-txt, #3d474d);
  line-height: 1.6;
}

.bottom-item {
  margin-top: 10px;
}

.bottom-text a {
  color: var(--color-bottom-a, #4f86c6);
  text-decoration: none;
  font-weight: 500;
}

.bottom-text a:hover {
  text-decoration: underline;
}

.link-strong {
  font-weight: 600;
}

.error-message {
  margin-top: 12px;
  color: var(--color-notice-txt-error, #b94a4a, #c62828);
  font-size: 15px;
  text-align: center;
  margin-bottom: 14px;
}

.success-message {
  margin-top: 12px;
  color: var(--color-notice-txt-success, #b94a4a, #c62828);
  font-size: 15px;
  text-align: center;
  margin-bottom: 14px;
}

.small-note {
  margin-top: 14px;
  font-size: 15px;
  color: #666;
  line-height: 1.5;
}

.tiny-note {
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ===== Added 04/06/26 for quick links in top panel ===== */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.quick-actions a {
    display: inline-block;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: 0.2s ease;
}

.btn-primary {
    background: #4F86C6;
    color: #fff;
}

.btn-primary:hover {
    background: #3f74b3;
}

.btn-secondary {
    background: #eef5fb;
    color: #2d5f95;
}

.btn-secondary:hover {
    background: #ddebf8;
}

.bottom-panel {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 14px;
        }

.bottom-panel a {
            text-decoration: none;
            background: #f8fafc;
            border: 1px solid #e4ebf2;
            border-radius: 16px;
            padding: 18px;
            color: #1f2d3d;
            transition: 0.18s ease;
        }

.bottom-panel a:hover {
            background: #f1f6fb;
            border-color: #d4e3f1;
        }

.bottom-panel strong {
            display: block;
            margin-bottom: 6px;
            font-size: 16px;
        }

.bottom-panel span {
            font-size: 14px;
            color: #5c6b7a;
            line-height: 1.4;
        }



