/* Women Safety Analytics - Main Stylesheet */

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

:root {
    --primary-pink: #f53c7a;
    --light-pink: #f8bbd9;
    --dark-pink: #ad1457;
    --accent-pink: #ff4081;
    --soft-pink: #fce4ec;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
}
body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    padding-top: 78px;
}
/* ================= NAVBAR ================= */

header{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    background: linear-gradient(135deg,#ce2b61,#f03d82);
    box-shadow:0 4px 15px rgba(0,0,0,.12);
}

nav{
    max-width:1300px;
    margin:auto;
    height:78px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 35px;
}

/* Logo */

.logo{
    display:flex;
    align-items:center;
    gap:12px;

    font-size:2.3rem;
    font-weight:700;
    color:#fff;
    text-decoration:none;
}

.logo-img{
    width:50px;
    height:50px;
    object-fit:contain;
}

/* Navigation */

.nav-menu{
    display:flex;
    align-items:center;
    gap:22px;
    list-style:none;
}

.nav-menu li{
    list-style:none;
}
.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}
nav-menu a:hover{
    color:  #870631;
}
.nav-link.active{
    background-color: rgba(255, 253, 253, 0.7);
    color:  #f53c7a;
}

/* Hover */

.nav-menu a:hover{
    background:rgba(255,255,255,.18);
}

/* Active */

.nav-link.active{
    background:#ffd7e4;
    color:#e62b72;
}

/* Mobile */

.mobile-toggle{
    display:none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row */
  gap: 2rem;
}

.feature {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.feature .icon {
  width: 80px;
  height: 80px;
  background: var(--light-pink);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Responsive design */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr; /* 1 per row */
  }
}

.section {
  margin: 4rem 2rem;
}

.section h2 {
  text-align: center;
  color: var(--primary-pink);
  margin-bottom: 2.5rem;
}

.grid-3, .grid-2 {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.card h3, .card h4 {
  color: var(--primary-pink);
  margin-bottom: 1rem;
}

.card ul, .card ol {
  margin: 0 0 1rem 1.5rem;
  line-height: 1.6;
}

.alert {
  background: #ffe5e5;
  padding: 1rem;
  border-left: 4px solid var(--primary-pink);
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}


/* Main Content */
main {
    margin-top: 0;
    min-height: calc(100vh - 78px);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
/* Hero Section */
.hero {
    background: url("images/bg.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    width: 100%;
    min-height: 80vh; /* makes the hero section tall enough */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ad1457; /* text color on background image */
    padding: 4rem 2rem;

}
    
.hero .container1 {
    position: relative;
    z-index: 1;
    margin-top: -120px;                 /* moves content upward by 50px */
}

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

.hero p {
    color: #ffffff;                     /* white text */
    font-weight: bold;                  /* bold text */
    font-size: 1.1rem;
    max-width: 800px;                   /* limits paragraph width */
    margin: 0 auto 2.1rem;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-pink);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0.5rem;
}

.btn:hover {
    background-color: var(--dark-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-pink);
    background-color: #ffffff;
    color: var(--primary-pink);
}

.btn-secondary:hover {
    background-color: var(--soft-pink);
    color: rgb(213, 91, 158);
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 1rem 0;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.15);
}

.card h3 {
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-pink);
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: var(--soft-pink);
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background-color: var(--soft-pink);
    border-color: var(--primary-pink);
    color: var(--dark-pink);
}

/* Statistics Cards */
.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-pink), var(--accent-pink));
    color: white;
    border-radius: 10px;
    margin: 1rem 0;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Emergency Button */
.emergency-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.emergency-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.5);
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-section h3 {
    color: var(--accent-pink);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--accent-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-pink);
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    nav {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .emergency-btn {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(233, 30, 99, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-pink);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dashboard Specific Styles */
.dashboard-header {
    background: var(--soft-pink);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

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

/* Map Container */
.map-container {
    height: 400px;
    background-color: var(--light-gray);
    border-radius: 10px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-pink), var(--accent-pink));
    transition: width 0.3s ease;
}