/* -------- NEW HEADER DESIGN -------- */
header {
  background: linear-gradient(135deg, #007BFF, #00bcd4);
  padding: 30px 20px;
  border-radius: 14px;
  color: white;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 700px;
  margin: auto;
}

.logo {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.tagline {
  font-size: 16px;
  color: #e3f2fd;
}



/* -------- GLOBAL STYLES -------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f8;
  color: #333;
  padding: 40px 20px;
  max-width: 700px;
  margin: auto;
}

h1, h2 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-top: 20px;
  font-weight: bold;
  font-size: 16px;
}

input[type="number"],
input[type="date"],
input[type="text"] {
  padding: 10px;
  width: 100%;
  margin-top: 6px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  background: white;
}

button {
  background-color: #007BFF;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

p#result {
  background: #ffffff;
  padding: 15px;
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 18px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* -------- FOOTER -------- */
footer {
  text-align: center;
  font-size: 14px;
  color: #aaa;
  margin-top: 40px;
}

/* -------- HOMEPAGE GRID -------- */
.section-title {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
  font-size: 24px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.tool-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 18px;
  text-decoration: none;
  color: #007BFF;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
  border: 1px solid #ddd;
}

.tool-card:hover {
  transform: scale(1.05);
  background-color: #f1faff;
  color: #0056b3;
}


/* -------- MOBILE FIX -------- */
@media (max-width: 600px) {
  body {
    padding: 20px 12px;
  }

  h1, h2 {
    font-size: 22px;
  }

  input, button {
    font-size: 16px;
  }

  p#result {
    font-size: 16px;
  }

  footer {
    font-size: 12px;
  }
}



/* -------- FIXED MOBILE FOOTER (Cross-Device) -------- */
.mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  z-index: 9999;
}

.footer-btn {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #333;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.footer-btn i {
  font-size: 18px;
  margin-bottom: 4px;
  color: #007BFF;
}

.footer-btn span {
  font-size: 11px;
}

.footer-btn:hover {
  background: #f0f4ff;
}

@media (min-width: 768px) {
  .mobile-footer {
    display: none;
  }
}



/* -------- TOOLS PANEL (TOGGLE) -------- */
.tools-panel {
  position: fixed;
  bottom: 60px;
  left: 10px;
  right: 10px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  z-index: 1001;
}

.tools-panel a {
  text-decoration: none;
  padding: 10px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s ease;
}

.tools-panel a:hover {
  background: #e2e8f0;
  color: #007BFF;
}

@media (min-width: 768px) {
  .tools-panel {
    display: none !important;
  }
}



