/* New Theme: White + Dark Navy + Red Accent */

body {
    background-color: #212121; /* Dark Background */
    color: #FFFFFF; /* White Text */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

main {
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: #FF3300; /* Red Accent */
}

.header, .footer {
    background-color: #2c2c2c; /* Slightly Lighter Dark */
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #444;
}

.footer {
    border-top: 1px solid #444;
    border-bottom: none;
}

.nav a {
    color: #FFFFFF; /* White Text */
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

.nav a:hover, .nav a.active {
    color: #FF3300; /* Red Accent */
    border-bottom: 2px solid #FF3300;
    padding-bottom: 5px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
}

#map {
    flex-grow: 1;
    height: 100%;
}

.info-panel {
    width: 300px;
    height: 100%;
    background-color: #2c2c2c; /* Slightly Lighter Dark */
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    overflow-y: auto;
    color: #FFFFFF;
    border-left: 1px solid #444;
}

.info-panel.open {
    transform: translateX(0);
}

#close-panel-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
}

#info-content h2 {
    color: #FF3300; /* Red Accent */
    border-bottom: 1px solid #FF3300;
    padding-bottom: 5px;
}

#info-content .btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #FF3300;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}

#info-content .btn:hover {
    background-color: #b32400;
}

/* Table Styles */
.martyrs-table, .admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: #FFFFFF;
}

.martyrs-table th, .martyrs-table td, .admin-table th, .admin-table td {
    border: 1px solid #444; /* Darker Border */
    padding: 12px 15px;
    text-align: left;
}

.martyrs-table thead th, .admin-table thead th {
    background-color: #2c2c2c; /* Slightly Lighter Dark */
    color: #FFFFFF; /* White Text */
    font-weight: bold;
}

.martyrs-table tbody tr:nth-child(even) {
    background-color: #2c2c2c; /* Slightly Lighter Dark for even rows */
}

.martyrs-table tbody tr:hover, .admin-table tbody tr:hover {
    background-color: #3a3a3a; /* Darker Gray on hover */
}

/* Search Form Styles */
.search-form {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.search-form input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: #FFFFFF;
    font-size: 16px;
}

.search-form button {
    padding: 10px 20px;
    background-color: #FF3300; /* Red Accent */
    border: none;
    color: #FFFFFF;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background-color: #b32400;
}

/* About Us Page Styles */
.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFFFFF; /* White Text */
    margin-bottom: 20px;
}

.about-content strong {
    color: #FFFFFF; /* White Text */
}

/* Home Page Styles */
.hero {
    background-color: #2c2c2c;
    padding: 100px 20px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #a9a9a9;
    margin-bottom: 30px;
}

.hero-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #FF3300; /* Red Accent */
    border: 1px solid #FF3300;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.hero-button:hover {
    background-color: #b32400;
    border-color: #b32400;
}

.martyr-card-link {
    text-decoration: none;
    color: inherit;
}

.featured-martyrs {
    padding: 60px 20px;
    text-align: center;
}

.featured-martyrs h2 {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 40px;
}

.martyrs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.martyr-card {
    background-color: #2c2c2c;
    padding: 0; /* Remove padding to allow image to fill top */
    border-radius: 4px;
    border: 1px solid #444;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    overflow: hidden; /* Ensure image corners are rounded */
}

.martyr-card-img {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Crop images to fit */
}

.martyr-card-content {
    padding: 20px;
}

.martyr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.martyr-card h3 {
    color: #FF3300; /* Red Accent */
    margin-top: 0;
}

.martyr-card .martyr-region {
    font-style: italic;
    color: #a9a9a9;
}

.martyr-card .martyr-dates {
    font-size: 0.9rem;
    color: #a9a9a9;
}

/* Admin Pages */
.admin-login-container, .admin-container {
    background-color: #2c2c2c;
    padding: 40px;
    border-radius: 5px;
    margin-top: 40px;
}

.login-form input, .manage-form input, .manage-form textarea {
    background-color: #3a3a3a;
    border: 1px solid #444;
    color: #FFFFFF;
}

.login-form button, .manage-form button {
    background-color: #FF3300; /* Red Accent */
    color: #FFFFFF;
}

.error-message {
    color: #FF3300;
}

.logout-button {
    background-color: #495057;
    color: #fff;
}

.add-button {
    background-color: #FF3300; /* Red Accent */
    color: #FFFFFF;
    font-weight: bold;
    margin-bottom: 20px;
}

.admin-table .actions a {
    color: #FFFFFF;
}

.admin-table .actions .delete-btn {
    color: #FF3300;
}

.manage-form .cancel-button {
    background-color: #495057;
    color: #FFFFFF;
}

/* Martyr Detail Page Styles */
.martyr-detail-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}
.martyr-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}
.martyr-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #444;
}
.martyr-info h1 {
    margin-top: 0;
}
.medals-list {
    list-style-type: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.medals-list li {
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.medals-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.medals-list img {
    width: 50px;
    height: auto;
    vertical-align: middle;
}

.medals-list strong {
    font-weight: 600;
    font-size: 1rem;
}
