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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 0;
  padding-bottom: 80px;
}

/* Top Banner */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #25D366;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner-text {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}

.whatsapp-btn {
  background: white;
  color: #25D366;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: #f0f0f0;
}

/* Container */
.container {
  max-width: 600px;
  margin: 60px auto 0;
  padding: 20px;
}

/* Install Button */
.install-container {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  display: block;
  text-align: center;
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 8px 35px rgba(16, 185, 129, 0.6);
  }
}

.install-container h3 {
  color: white;
  font-size: 20px;
}

.install-container p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
}

.install-btn {
  background: white;
  color: #059669;
  border: none;
  padding: 18px 40px;
  border-radius: 30px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.install-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: #f0fdf4;
}

.install-btn:active {
  transform: translateY(-1px);
}

/* Main Menu */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.menu-item {
  background: white;
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.menu-icon {
  font-size: 32px;
  min-width: 40px;
}

.menu-content h3 {
  color: #333;
  font-size: 18px;
  margin-bottom: 5px;
}

.menu-content p {
  color: #666;
  font-size: 14px;
}

/* Calculator Pages */
.calculator-page {
  display: none;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.calculator-page.active {
  display: block;
}

.back-btn {
  background: #f3f4f6;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #333;
}

.back-btn:hover {
  background: #e5e7eb;
}

h2 {
  color: #333;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  color: #555;
  font-weight: 600;
  margin-bottom: 8px;
}

input, select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  transition: border 0.3s;
}

input:focus, select:focus {
  outline: none;
  border-color: #667eea;
}

.grade-inputs {
  display: grid;
  gap: 15px;
  margin-top: 15px;
}

.grade-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  padding: 15px;
  border-radius: 10px;
}

.grade-item label {
  margin: 0;
  min-width: 100px;
}

.grade-item input {
  flex: 1;
  margin: 0;
}

.calculate-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
}

.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.result {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  text-align: center;
  display: none;
}

.result.show {
  display: block;
}

.result h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.result .score {
  font-size: 48px;
  font-weight: bold;
  margin: 20px 0;
}

.result .status {
  font-size: 24px;
  margin-top: 15px;
}

/* Info Button */
.info-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid #667eea;
  color: #667eea;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 15px rgba(0,0,0,0.2);
  z-index: 999;
}

.info-btn:hover {
  background: #667eea;
  color: white;
}

.info-message {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: white;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  display: none;
  z-index: 998;
  max-width: 250px;
}

.info-message.show {
  display: block;
}

/* Links Section */
.links-grid {
  display: grid;
  gap: 10px;
}

.link-item {
  background: #f9fafb;
  padding: 15px;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.link-item:hover {
  background: #e5e7eb;
  transform: translateX(5px);
}

.link-icon {
  font-size: 24px;
  min-width: 30px;
}

/* Dictionary and Info Lists */
.info-list {
  list-style: none;
}

.info-list li {
  background: #f9fafb;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  border-left: 4px solid #667eea;
}

.info-list strong {
  color: #667eea;
  display: block;
  margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 15px;
  }
  
  .banner-text {
    font-size: 12px;
  }
  
  .whatsapp-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}
