/* ================== GENERAL ================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.5;
}

h1, h3 {
    margin-bottom: 10px;
}

/* ================== HEADER ================== */
header {
    background-color: #1e5fa3;
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content h1 {
    font-size: 24px;
}

.alert-banner {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    color: white;
}

/* ================== DASHBOARD LAYOUT ================== */
.dashboard {
    display: flex;
    gap: 15px;
    padding: 15px;
    flex-wrap: wrap;
}

.left-panel, .right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ================== MAP & BUTTON ================== */
.map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.gps-btn {
    margin-top: 10px;
    padding: 10px;
    background-color: #1e5fa3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.gps-btn:hover {
    background-color: #144974;
}

/* ================== CARDS ================== */
.card {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card h3 {
    margin-bottom: 10px;
}

/* ================== CHART ================== */
canvas {
    width: 100% !important;
    height: 200px !important;
}

/* ================== FORMS ================== */
input[type="text"], textarea, input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

button {
    cursor: pointer;
}

/* ================== SOS CARD ================== */
.card.sos button {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    font-weight: bold;
    transition: background 0.3s;
}

.card.sos button:hover {
    background-color: #b52b24;
}

/* ================== TABLES ================== */
table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

/* ================== TIMELINE ================== */
.timeline {
    list-style: none;
}

.timeline li {
    padding: 5px 0;
    border-left: 3px solid #1e5fa3;
    padding-left: 10px;
    margin-bottom: 5px;
    position: relative;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: #1e5fa3;
    border-radius: 50%;
}

/* ================== SHARE BUTTONS ================== */
.card button {
    background-color: #1e5fa3;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 5px;
    margin-right: 5px;
    font-size: 14px;
    transition: background 0.3s;
}

.card button:hover {
    background-color: #144974;
}

/* ================== FOOTER ================== */
.footer {
    text-align: center;
    background-color: #1e5fa3;
    color: white;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1000px) {
    .dashboard { flex-direction: column; }
    .left-panel, .right-panel { flex: 1; }
}

@media (max-width: 600px) {
    h1 { font-size: 20px; }
    .card h3 { font-size: 16px; }
    .gps-btn, .card button { font-size: 12px; padding: 8px; }
}
