/* Global Styles */
:root {
    --primary-color: #9c27b0;
    --secondary-color: #7b1fa2;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --counter-bg: #222;
    --counter-digit: #fff;
}

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: #9c27b0;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: #fff;
    margin: 0;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menü Stilleri */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content .user-info {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.dropdown-content a {
    color: #333 !important;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-content i {
    width: 20px;
    text-align: center;
}

/* Main Content */
main {
    padding: 2rem 0;
}

/* Counter Section */
.counter-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    text-align: center;
}

.counter-section h2 {
    color: #9c27b0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.counter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.digit-container {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(156, 39, 176, 0.2);
}

.digit {
    color: white;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.counter-info {
    color: #666;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.year-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.year-link {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.year-link:hover {
    background-color: #e0e0e0;
}

.year-link.active {
    background-color: #9c27b0;
    color: white;
}

/* Recent Incidents */
.recent-incidents {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

.recent-incidents h2 {
    color: #9c27b0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.incident-list {
    list-style: none;
}

.incident-list li {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.incident-list li:last-child {
    border-bottom: none;
}

.incident-list li:hover {
    transform: translateX(10px);
}

.incident-date {
    color: #9c27b0;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.incident-details h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.incident-details p {
    color: #666;
    margin-bottom: 0.5rem;
}

.incident-description {
    line-height: 1.6;
    margin: 1rem 0;
}

.read-more {
    display: inline-block;
    color: #9c27b0;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #7b1fa2;
    text-decoration: underline;
}

.view-all-btn {
    display: inline-block;
    background: #9c27b0;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.2);
}

.view-all-btn:hover {
    background: #7b1fa2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(156, 39, 176, 0.3);
}

.no-data {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        margin-top: 0;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .counter-section {
        padding: 1.5rem;
    }

    .digit-container {
        padding: 1rem 1.5rem;
    }

    .digit {
        font-size: 2.5rem;
    }

    .recent-incidents {
        padding: 1.5rem;
    }

    .incident-list li:hover {
        transform: none;
    }
}

/* Animation for counter digits */
@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.digit-container {
    animation: countUp 0.5s ease-out forwards;
}

/* Hover effects for interactive elements */
.incident-list li {
    position: relative;
}

.incident-list li::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    height: 100%;
    width: 4px;
    background: #9c27b0;
    opacity: 0;
    transition: all 0.3s ease;
}

.incident-list li:hover::after {
    opacity: 1;
    left: 0;
}

/* Form Styles */
.form-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #bd2130;
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: #218838;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Statistics Page */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.chart-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Admin Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.dashboard-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.dashboard-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.dashboard-card .count {
    font-size: 2rem;
    font-weight: bold;
}

.admin-actions {
    margin-top: 2rem;
}

.admin-actions a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 1rem;
} 