:root {
    --primary-color: #4a6fa5;
    --primary-color-dark: #3a5a8c;
    --primary-color-light: #7590bc;
    --secondary-color: #53b175;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --text-color: #333333;
    --text-muted: #777777;
    --light-color: #f5f8fa;
    --dark-color: #2d3748;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}
/* Font settings */
body {

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Menu Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #4CAF50;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-left, .navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    color: white;
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile menu adjustments */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }
    .logo {
        order: 1;
        flex: 1;
        text-align: center;
    }
    .user-actions {
        order: 2;
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.menu-toggle {
    color: white;
    font-size: 1.2rem;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-settings, .btn-auth {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }
    .logo {
        order: 2;
        flex: 1;
        text-align: center;
    }
}

body {
    background-color: #E9F1F7; /* SafetyBuddy light blue background */
}

main {
    background-color: #E9F1F7; /* Ensure main element has the same background */
}





.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.auth-section {
    display: flex;
    align-items: center;
}

.guest-buttons,
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#user-email-display {
    margin-right: 1rem;
    font-weight: 500;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #e0e0e0;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-color-dark);
}

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

.secondary-btn:hover {
    background-color: rgba(74, 111, 165, 0.1);
}

.danger-btn {
    background-color: var(--danger-color);
    color: white;
}

.danger-btn:hover {
    background-color: #c0392b;
}

.emergency-btn {
    background-color: var(--danger-color);
    color: white;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    margin: 1rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.emergency-btn:hover {
    background-color: #c0392b;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 30px auto;
    padding: 30px;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image {
    display: none;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Get Started Section */
.get-started {
    background-color: var(--light-color);
    padding: 4rem 0;
    text-align: center;
}

.get-started h2 {
    margin-bottom: 1rem;
}

.get-started p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Welcome Back Section */
.welcome-back {
    background-color: var(--light-color);
    padding: 4rem 0;
    text-align: center;
}

.welcome-back h2 {
    margin-bottom: 1rem;
}

.welcome-back p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-color);
    padding: 4rem 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    text-align: right;
    font-weight: 500;
}

/* Emergency Section */
.emergency-info {
    padding: 3rem 0;
    text-align: center;
}

.emergency-content {
    max-width: 500px;
    margin: 0 auto;
}

.emergency-info h2 {
    margin-bottom: 1rem;
}

.emergency-info p {
    margin-bottom: 1.5rem;
}

.emergency-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-title {
    margin-bottom: 0;
}

.emergency-call {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #fff3f3;
    border-left: 4px solid var(--danger-color);
    border-radius: 4px;
}

.emergency-call h3 {
    margin-right: 1rem;
    margin-bottom: 0;
    color: var(--danger-color);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    background-color: var(--primary-color-light);
    color: white;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    margin: 0;
    display: flex;
    align-items: center;
}

.card-title i {
    margin-right: 0.5rem;
}
/*
COMMENTED THIS OUT BECAUSE SOME CARDS WERE NOT WORKING
ADDED THE CARD FILE BELOW IT 
.card-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

*/

.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px 0;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

/* Media Queries */
@media (min-width: 768px) {
    .hero {
        padding: 6rem 0;
    }
    
    .hero .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .hero-content {
        flex: 1;
    }
    
    .hero-image {
        display: block;
        flex: 1;
        text-align: right;
    }
    
    .hero-image img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .main-nav {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .auth-section {
        width: 100%;
        justify-content: center;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }


/* Hamburger Menu CSS */

/* Regular menu styles */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* Hamburger menu button */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.hamburger-menu div {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  border-radius: 3px;
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Hide regular menu and show hamburger */
  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  /* When menu is toggled open */
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }
}

footer a {
  color: #555;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-left h1 {
    margin: 0;
    font-size: 1.5rem;
    margin-left: 15px;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-menu li a:hover {
    background-color: #f5f5f5;
}

.nav-menu li a.active {
    background-color: #e6f7ff;
    color: #1890ff;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
}

/* Fix for mobile horizontal scrolling */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }
	/* General styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.auth-section {
    display: flex;
    align-items: center;
}

/* Button and form styles */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #e0e0e0;
}

.modal {
    display: none;      
}
/* Add to styles.css */

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}


/* Add other styles as needed */
}