:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --success: #27ae60;   /* safe & healthy //green */
    --warning: #f1c40f;   /* sick //yellow */
    --orange: #e67e22;    /* moderate & injured //orange */
    --danger: #e74c3c;    /* dangerous & critical //red */
    --bg: #f4f7f6;
    --text: #333;
}

body { 
    font-family: 'Segoe UI', Tahoma, sans-serif; 
    margin: 0; 
    background: var(--bg); 
    color: var(--text); 
    line-height: 1.6;
}

/* header */
header { background: var(--primary); color: white; padding: 20px 0; border-bottom: 4px solid var(--accent); }
.header-content { 
    max-width: 1100px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px; 
}
.uni-logo { height: 60px; filter: brightness(0) invert(1); }
.titles h1 { margin: 0; font-size: 1.5rem; }

/* slider */
.slider-container { background: #1a252f; color: #00d4ff; overflow: hidden; padding: 10px 0; font-family: monospace; }
.slider-text { white-space: nowrap; display: inline-block; animation: scroll 30s linear infinite; }
@keyframes scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* main */
.container { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
section { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); margin-bottom: 30px; }
h2 { margin-top: 0; color: var(--primary); border-bottom: 2px solid #eee; padding-bottom: 10px; }

/* authentication */
.auth-grid { display: flex; gap: 20px; }
.auth-box { flex: 1; border: 1px solid #eee; padding: 20px; border-radius: 8px; }
.auth-box h3 { margin-top: 0; color: var(--primary); }

/* shapes */
.horizontal-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
input, select { padding: 10px; border: 1px solid #ddd; border-radius: 5px; flex: 1; min-width: 150px; }
.btn, .btn-add { background: var(--accent); color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.btn-add { background: var(--success); }

/* tables */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; }
th { background: #f8f9fa; }

/* sosto9ni9 */
.sort-link { 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: bold; 
    display: inline-block;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.sort-link:hover { background: #eef2f3; color: var(--accent); }

/* area */
.badge { 
    padding: 5px 10px; 
    border-radius: 15px; 
    font-size: 0.75rem; 
    font-weight: bold; 
    color: white; 
    display: inline-block; 
    min-width: 90px; 
    text-align: center; 
	text-transform: lowercase;
}
.badge-success, .badge-safe { background-color: var(--success) ; }
.badge-yellow { background-color: var(--warning) ; }
.badge-orange, .badge-moderate { background-color: var(--orange); }
.badge-danger, .badge-dangerous { background-color: var(--danger) ; }
.badge-default { background-color: #95a5a6; }

/* delete */
.delete-btn { color: var(--danger); text-decoration: none; font-size: 1.2rem; font-weight: bold; }
.delete-btn:hover { color: #c0392b; transform: scale(1.2); display: inline-block; }

/* analasys */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.stat-card { border: 1px solid #eee; padding: 15px; border-radius: 8px; }
.stat-info { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: bold; }
.progress-bg { background: #eee; height: 10px; border-radius: 5px; overflow: hidden; }
.progress-bar { background: var(--accent); height: 100%; transition: width 1s; }

/* etc */
.user-bar { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.9rem; }
.logout-link { color: var(--danger); text-decoration: none; font-weight: bold; padding: 5px 10px; border: 1px solid var(--danger); border-radius: 5px; }
.logout-link:hover { background: var(--danger); color: white; }

@media (max-width: 768px) {
    .auth-grid, .horizontal-form { flex-direction: column; }
    .header-content { flex-direction: column; text-align: center; gap: 15px; }
}

footer { text-align: center; padding: 30px; color: #7f8c8d; font-size: 0.8rem; }