@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #03a9f4;
  --primary-dark: #0288d1;
  --background-start: #428b05;
  --background-end: #cfdef3;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --text-main: #333333;
  --text-muted: #666666;
  --error-color: #e74c3c;
  --radius-lg: 16px;
  --radius-md: 8px;
  --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  margin: 40px 0 20px;
  text-align: center;
}

header img,
img[src*="logo-oppo"] {
  max-width: 240px;
  height: auto;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  filter: none !important;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Glassmorphism Containers */
.glass-container {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  margin: 15px auto;
  width: 100%;
  max-width: 500px;
  transition: transform 0.3s ease;
}

.glass-container-lg {
  max-width: 800px;
}

.glass-container-xl {
  max-width: 1100px;
}

.glass-container:hover {
  transform: translateY(-2px);
}

h2.title {
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-main);
  font-size: 1.5rem;
}

p.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Forms */
.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--text-main);
}

.form-control {
  padding: 12px 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.2);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  text-align: center;
  width: 100%;
}

.btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(3, 169, 244, 0.4);
  color: white;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(3, 169, 244, 0.1);
  color: var(--primary-dark);
  box-shadow: none;
}

/* Two columns */
.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 180px;
}

/* Messages */
.error-msg {
  color: var(--error-color);
  text-align: center;
  font-weight: 500;
  background: rgba(231, 76, 60, 0.1);
  padding: 10px;
  border-radius: var(--radius-md);
  margin-bottom: 15px;
}

.info-box {
  background: rgba(255, 255, 255, 0.6);
  border-left: 4px solid var(--primary-color);
  padding: 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Dashboard Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.menu-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.menu-item img {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

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

.menu-item:hover img {
  transform: scale(1.1);
}

.menu-item span {
  font-weight: 600;
  color: var(--text-main);
}

/* Checkbox container */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-container label {
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Scrollable */
.scrollable {
  max-height: 120px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 10px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .glass-container {
    padding: 20px 15px;
  }
}