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

html {
  height: 100%;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

.app-header {
  background-color: #2e3aa1;
  color: white;
  text-align: center;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.app-header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 2px;
}

.tagline {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.2rem;
}

.container {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 15px;
}

.widget {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 25px;
  margin-bottom: 20px;
  text-align: center;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.app-logo {
  max-width: 150px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget h2 {
  color: #2e3aa1;
  margin-top: 0;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.app-description {
  color: #555;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  margin: 8px 0;
  width: 100%;
  max-width: 250px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

button:active {
  transform: translateY(0);
}

.install-btn {
  background: linear-gradient(135deg, #2e3aa1 0%, #4286f4 100%);
  color: white;
  display: none;
}

.open-btn {
  background: linear-gradient(135deg, #1d976c 0%, #93f9b9 100%);
  color: white;
  display: none;
}

.success-msg {
  color: #1d976c;
  margin: 15px 0;
  padding: 10px;
  background-color: rgba(29, 151, 108, 0.1);
  border-radius: 5px;
  display: none;
  font-weight: bold;
}

.browser-message {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-left: 4px solid #2e3aa1;
  border-radius: 5px;
  text-align: center;
}

.instructions {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9fa;
  text-align: left;
  transition: all 0.3s ease;
  display: none; /* Hide all instructions by default */
}

.instructions:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.instructions ol {
  text-align: left;
  padding-left: 25px;
  margin: 10px 0;
}

.instructions p {
  margin-top: 0;
  font-weight: bold;
  color: #2e3aa1;
}

.instructions li {
  margin-bottom: 8px;
}

.app-footer {
  background-color: #2e3aa1;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  margin-top: 20px;
}

.android-link {
  display: inline-block;
  background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin: 8px 0;
  width: 100%;
  max-width: 250px;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.android-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.instructions a {
  color: #2e3aa1;
  text-decoration: none;
  font-weight: bold;
}

.instructions a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 480px) {
  .page-container {
    padding-top: 10px;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .widget {
    padding: 20px 15px;
  }
  
  .app-logo {
    max-width: 120px;
  }
  
  .widget h2 {
    font-size: 1.5rem;
  }
  
  .instructions {
    padding: 12px;
  }
}
