/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    background-color: #f4f4f9;
    color: #333;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #2f4f4f; /* Dark Slate */
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar h2 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    border-bottom: 1px solid #4a6f6f;
    padding-bottom: 10px;
}

.user-info {
    margin-bottom: 30px;
    font-size: 0.9rem;
    background-color: #3a6060;
    padding: 10px;
    border-radius: 5px;
}

.nav-links a {
    display: block;
    color: #ddd;
    text-decoration: none;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    background-color: #4a6f6f;
    color: white;
}

.logout-btn {
    margin-top: auto;
    background-color: #e74c3c;
    text-align: center;
}

.logout-btn:hover {
    background-color: #c0392b;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

h1 {
    color: #2f4f4f;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="password"], select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button.btn {
    background-color: #2f4f4f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button.btn:hover {
    background-color: #1e3333;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

th {
    background-color: #f8f9fa;
    color: #2f4f4f;
}

/* Status Badges */
.badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending { background-color: #e2e6ea; color: #495057; }
.status-in-progress { background-color: #fff3cd; color: #856404; }
.status-completed { background-color: #d4edda; color: #155724; }

/* Urgency Colors */
.urgency-low { color: #28a745; }
.urgency-medium { color: #fd7e14; }
.urgency-high { color: #ffc107; font-weight: bold; }
.urgency-emergency { color: #dc3545; font-weight: bold; text-transform: uppercase; }

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.card h3 { margin-top: 0; color: #666; font-size: 1rem; }
.card .number { font-size: 2.5rem; font-weight: bold; color: #2f4f4f; }

/* Login Page specific */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: #e9ecef;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 350px;
}

.login-box h2 {
    text-align: center;
    color: #2f4f4f;
    margin-bottom: 20px;
}
