
/* =================================================================
   Modern Dark Theme for App Install Page
   ================================================================= */

/* --- 1. Root Variables & Base Styles --- */
:root {
  --bg-color: #1a1b1e;
  --card-bg-color: #25262a;
  --primary-text-color: #e1e1e3;
  --secondary-text-color: #a9aab1;
  --accent-color: #007aff;
  --accent-color-hover: #0056b3;
  --warning-color: #ff9f0a;
  --border-color: #38393e;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--primary-text-color);
  font-family: var(--font-family);
  margin: 0;
  padding: 2rem 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- 2. Layout & Main Container --- */
.wrap {
  max-width: 500px;
  margin: 0 auto;
  padding: 2.5rem;
  background-color: var(--card-bg-color);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- 3. Typography & Links --- */
h1 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--primary-text-color);
  margin: 0;
}

p, li {
  font-size: 1rem;
  color: var(--secondary-text-color);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.25s ease-in-out;
}

a:hover {
  color: var(--accent-color-hover);
  text-decoration: none;
}

hr {
  width: 100%;
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin: 40px auto;
}

/* --- 4. Component Styling --- */

/* Header */
.topbread {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
  margin-bottom: 40px !important; /* Override inline style for better spacing */
}

/* Logo */
.polaroid {
  margin-bottom: 25px;
  margin-top: -70px;
}

img.img-circle {
  border-radius: 50%;
  border: 4px solid var(--card-bg-color);
  outline: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Information Lists */
ul.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

ul.breadcrumb li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* Highlight the warning message */
#ul2 li:nth-child(2) {
  color: var(--warning-color);
  font-weight: 500;
}

/* --- 5. Call to Action (CTA) & Interactive Elements --- */

/* Install Button Container */
#checkinfo {
  position: relative;
  display: inline-block;
  margin-top: 20px;
}

/* The Button */
.btn.btn-success.btn-lg.btn-circle {
  display: inline-block;
  background: var(--accent-color);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 16px 48px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent; /* Disable tap highlight on mobile */
}

.btn.btn-success.btn-lg.btn-circle:hover,
.btn.btn-success.btn-lg.btn-circle:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
  outline: none;
  text-decoration: none;
  color: #fff;
}

/* Non-Safari Browser Tip */
.uatip {
  display: none; /* Controlled by JS */
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: var(--primary-text-color);
  padding: 15px;
  border-radius: 12px;
  width: max-content;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 100;
}

.uatip-icon {
  display: none; /* Hiding the original icon for a cleaner look */
}

.uatip p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--primary-text-color);
}

.uatip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.text-center {
  text-align: center;
}

/* --- 6. Footer --- */
.col-md-8.col-md-offset-2 > .text-center > p {
  margin-bottom: 12px;
}

.footer {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.footer .text-center {
  font-size: 0.875rem;
  color: var(--secondary-text-color);
  opacity: 0.8;
  text-align: center;
}

.footer a {
  font-weight: 500;
}
