:root {
    --primary-color: #e74c3c;
    --secondary-color: #3498db;
    --background-color: #ecf0f1;
    --text-color: #2c3e50;
    --card-background: rgba(255, 255, 255, 0.9);
    --border-color: #bdc3c7;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.dark-theme {
    --primary-color: #e74c3c;
    --secondary-color: #3498db;
    --background-color: #2c3e50;
    --text-color: #ecf0f1;
    --card-background: rgba(44, 62, 80, 0.9);
    --border-color: #34495e;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.hero {
    background-image: url('assets/imgs/fire.jpeg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

main {
    padding: 40px 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.protocol-cards {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.protocol-card {
    flex: 0 0 300px;
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    transition: all 0.3s ease;
    overflow: hidden;
}

.protocol-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.protocol-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.protocol-card ul {
    list-style-type: none;
}

.protocol-card li {
    margin-bottom: 10px;
}

.protocol-card a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.protocol-card a:hover {
    color: var(--secondary-color);
}

.calculator, .map {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
    box-shadow: var(--shadow);
}

#dosage-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select, button {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

button {
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #c0392b;
}

#map {
    height: 300px;
    border-radius: 5px;
    overflow: hidden;
}

footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 40px;
}

.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-switch {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch-label {
    cursor: pointer;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    display: block;
    border-radius: 100px;
    position: relative;
    transition: background-color 0.3s;
}

.theme-switch-label:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 90px;
    transition: 0.3s;
}

.theme-switch:checked + .theme-switch-label {
    background-color: var(--secondary-color);
}

.theme-switch:checked + .theme-switch-label:after {
    left: calc(100% - 3px);
    transform: translateX(-100%);
}

.theme-switch:focus + .theme-switch-label {
    box-shadow: 0 0 1px var(--secondary-color);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .protocol-card {
        flex: 0 0 250px;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .theme-toggle {
        margin-top: 1rem;
    }
}

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');

.protocol-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: -24px -24px 20px -24px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.protocol-header i {
    margin-right: 10px;
    font-size: 1.4rem;
}

.cardiac-header {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.medical-header {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.trauma-header {
    background: linear-gradient(135deg, #f83600, #f9d423);
}

.environmental-header {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
}

.obgyn-header {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.other-header {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.protocol-card {
    overflow: hidden;
}

.section-header {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
}

.section-header i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.result-card {
    margin-top: 20px;
    padding: 15px;
    background-color: white !important;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: black !important;
}

.result-card h3,
.result-card p {
    color: black !important;
}

