/* File: /assets/css/style.css */
/* Global Styles for myBAS Application */

:root {
  --primary-color: #4285f4;
  --primary-dark: #3367d6;
  --accent-color: #34a853;
  --danger-color: #ea4335;
  --warning-color: #fbbc05;
  --text-color: #202124;
  --text-light: #5f6368;
  --background-color: #f8f9fa;
  --border-color: #dadce0;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Google Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 15px 0;
  position: relative;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

.main-nav li {
  margin: 0 10px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.main-nav a:hover {
  background-color: rgba(0,0,0,0.05);
}

.main-nav a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 8px;
  margin-left: 5px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  border-radius: 4px;
  min-width: 180px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  border-radius: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: rgba(66, 133, 244, 0.04);
}

.btn-danger {
  background-color: var(--danger-color);
}

.btn-danger:hover {
  background-color: #d32f2f;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-large {
  padding: 12px 24px;
  font-size: 18px;
}

.btn-login {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-login:hover {
  background-color: rgba(66, 133, 244, 0.04);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: rgba(66, 133, 244, 0.04);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
  transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Footer */
footer {
  background-color: #2d3748;
  color: white;
  padding: 60px 0 30px;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo {
  width: 250px;
  margin-right: 50px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.footer-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.footer-column {
  min-width: 160px;
  margin-bottom: 30px;
}

.footer-column h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: white;
}

.footer-slim {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-logo-slim img {
  height: 40px;
}

.footer-links-slim ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.footer-links-slim a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-links-slim a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background 0.2s;
}

.social-links a:hover {
  background: rgba(255,255,255,0.2);
}

.social-links img {
  width: 18px;
  height: 18px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  z-index: 1000;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* Contact Section Styles */
.contact {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-card h3 {
  margin-bottom: 10px;
  color: #333;
}

.contact-card p {
  margin: 0;
  color: #666;
}

.map-link {
  color: #4285f4;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.6;
}

.map-link:hover {
  color: #0f52ba;
  text-decoration: underline;
}

.map-container {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* PWA Prompt */
.pwa-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 500px;
  z-index: 1000;
  display: none;
}

.pwa-prompt p {
  margin: 0;
  flex: 1;
  font-size: 14px;
}

.pwa-prompt .close-button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  margin-left: 10px;
  color: var(--text-light);
}

.pwa-prompt .add-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
  font-weight: 500;
}

/* Common Section Styles */
.section-title {
  text-align: center;
  margin-bottom: 15px;
  font-size: 2.2rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 50px;
  font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 999;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    display: none;
    background-color: #f5f5f5;
    width: 100%;
    margin-top: 10px;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .footer-main {
    flex-direction: column;
  }
  
  .footer-logo {
    width: 100%;
    margin-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .footer-links {
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-slim {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo-slim {
    margin-bottom: 20px;
  }
  
  .footer-links-slim ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .footer-links-slim ul {
    flex-direction: column;
    gap: 10px;
  }
}