@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root{
	--bg: #64748b;
    --main-color:#1d4ed8;
	--black:#222;
	--white:#fff;
	--light-black:#777;
	--light-white:#fff9;
	--dark-bg: rgba(0,0,0,.7);
	--border: .1rem solid var(--black);
	--box-shadow:0 .5rem 1rem rgba(0,0,0,.1);
	--text-shadow:0 1.5rem 3rem rgba(0,0,0,.3);
	--light: #F9F9F9;
	--blue: #3C91E6;
    --dark-blue: #1D4181;
	--light-blue: #CFE8FF;
	--grey: #eee;
	--dark-grey: #AAAAAA;
	--dark: #342E37;
	--red: #DB504A;
	--yellow: #FFCE26;
	--light-yellow: #FFF2C6;
	--orange: #FD7238;
	--light-orange: #FFE0D3;
    --green: #28a745;
    --light-green: #d4edda;
    --text-dark: #111827;
    --text-light: #6b7280;
    --accent-color: #3b82f6;
    --bg-color: #f9fafb;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-strong: rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: 0.3s ease;
    --font-family: 'Inter', sans-serif;
    --yp-bg-color: #eee;
    --yp-accent-color: #FFCE26;
    --yp-card-bg: #1D4181;
    --yp-text-color: #f5f5f5;
    --yp-muted-text: #bbbbbb;
    --yp-highlight: #03dac6;
}

* {
    margin:0; padding:0;
	box-sizing: border-box;
	outline: none; border: none;
	text-decoration: none;
    font-family: var(--font-family);
}

html,body{
    overflow-x: hidden;
	background-color: var(--grey);
    font-size: 16px;
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
    min-height: 100vh;
}

li{
	list-style: none;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  padding: .6rem 2rem;
  box-shadow: 0 5px 5px var(--shadow-light);
  border-bottom: .2px solid #c4c4c4;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-con{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.title-logo{
    display: flex;
    flex-direction: column;
    align-items: start;
}

.title{
    font-size: 24px;
    font-weight: 700;
    color: var(--main-color);
}

.logo {
  font-weight: 600;
  font-size: 20px;
  color: var(--red);
  cursor: pointer;
}

.sublogo{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lifeline{
  width: 100px;
  height: 40px;
}

.limaylogo-con{
  width: 60px;
  height: 60px;
}

.limaylogo{
  width: 60px;
  height: 60px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 600;
  font-size: 18px;
  color: var(--black);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background-color var(--transition), color var(--transition);
}

.nav-links li a.active,
.nav-links li a:hover {
  color: var(--white);
  background-color: var(--main-color);
  box-shadow: 0 4px 12px var(--shadow-strong);
}

.menu-btn {
  display: none;
}


.dashboard {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    height: 140%;
    padding: 20px;
}

.left-column,
.center-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card {
    background-color: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #475569;
}

.card-content {
    padding: 20px;
}

/* Header Styles */
.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.icon-container {
    background-color: #475569;
    padding: 12px;
    border-radius: 8px;
}

.icon {
    width: 24px;
    height: 24px;
    color: white;
}

.header-text h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 4px;
}

.header-text h2 {
    font-size: 18px;
    color: #cbd5e1;
}

.stats-row {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
}

/* Color Classes */
.police, .police-color { color: #60a5fa; }
.fire, .fire-color { color: #f87171; }
.rescue, .rescue-color { color: #34d399; }

.police-bg { background-color: #60a5fa; }
.fire-bg { background-color: #f87171; }
.rescue-bg { background-color: #34d399; }
.purple-bg { background-color: #a855f7; }
.yellow-bg { background-color: #fbbf24; }
.indigo-bg { background-color: #6366f1; }
.pink-bg { background-color: #ec4899; }

/* Chart Styles */
.chart-container {
    position: relative;
    height: 128px;
}

.line-chart {
    width: 100%;
    height: 100%;
}

.chart-labels {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

/* Radar Chart */
.radar-container {
    position: relative;
    height: 192px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-chart {
    width: 160px;
    height: 160px;
}

.radar-labels {
    position: absolute;
    inset: 0;
}

.label-top {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #60a5fa;
}

.label-right {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #60a5fa;
}

.label-bottom {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #60a5fa;
}

.label-left {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #60a5fa;
}

/* Center Column Styles */
.center-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.failed-title {
    color: #94a3b8;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.metric-item {
    margin-bottom: 16px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 24px;
    font-weight: bold;
}

.badge {
    background-color: #475569;
    color: #cbd5e1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #475569;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 2px;
}

.failed-numbers,
.vehicle-numbers {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.failed-number,
.vehicle-number {
    font-size: 48px;
    font-weight: bold;
}

.vehicle-number {
    font-size: 32px;
}

/* Right Column Styles */
.call-list,
.terrain-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.call-item,
.terrain-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar,
.terrain-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.call-info,
.terrain-info {
    flex: 1;
}

.call-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.call-type,
.terrain-location {
    font-size: 14px;
    color: #94a3b8;
}

.terrain-time {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.call-number {
    font-weight: 600;
    font-size: 14px;
}

.more-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 16px;
}

.more-btn:hover {
    background-color: #475569;
}

.no-units {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-top: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stats-row {
        gap: 24px;
    }
    
    body {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .failed-numbers,
    .vehicle-numbers {
        gap: 16px;
    }
    
    .metric-value {
        font-size: 20px;
    }
    
    .failed-number {
        font-size: 36px;
    }
    
    .vehicle-number {
        font-size: 24px;
    }
}
