* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

header nav span {
    font-size: 1rem;
}

header button {
    background: white;
    color: #667eea;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

header button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Call to Action */
.call-to-action {
    background: white;
    color: #333;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
}

.call-to-action h2 {
    margin-bottom: 1rem;
    color: #667eea;
}

.call-to-action a, .call-to-action button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.call-to-action button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Features */
.features, .about {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.features h3, .about h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.features ul, .about p {
    line-height: 1.8;
}

/* Dashboard */
.dashboard {
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

.dashboard h1 {
    color: #667eea;
    margin-bottom: 2rem;
}

.welcome-message h2 {
    color: #764ba2;
    font-size: 2.5rem;
}

/* Dashboard Content */
.dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stats, .recent-activity, .actions {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.stats h3, .recent-activity h3, .actions h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.stats ul {
    list-style: none;
}

.stats li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.actions ul {
    list-style: none;
}

.actions a {
    display: block;
    color: #667eea;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.actions a:hover {
    color: #764ba2;
}

.footer-message {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    text-align: center;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #667eea;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal p {
    text-align: center;
    margin-top: 1rem;
}

.modal a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.modal a:hover {
    text-decoration: underline;
}

/* Incident Form */
.incident-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

.incident-form h1 {
    color: #667eea;
    margin-bottom: 2rem;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group small.help-text {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

#participants-container .participant-input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#participants-container .participant-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

#participants-container .participant-input:focus {
    outline: none;
    border-color: #667eea;
}

.remove-participant {
    background: #e74c3c;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.remove-participant:hover {
    background: #c0392b;
}

#add-participant-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

#add-participant-btn:hover {
    background: #219a52;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.recent-incidents {
    margin-top: 3rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
}

.recent-incidents h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

.recent-incidents ul {
    list-style: none;
}

.recent-incidents li {
    padding: 1rem;
    background: white;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.suggestions-content {
    max-width: 600px;
}

#suggestions-list {
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

/* Incident List */
.incident-list {
    margin-bottom: 2rem;
}

.actions-bar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.incidents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.incident-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.incident-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.incident-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.incident-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.incident-location {
    font-size: 0.9rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.incident-description p {
    line-height: 1.6;
    color: #444;
}

.no-incidents {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    color: #888;
}
