/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: white;
    margin: 0;
    padding: 20px;
}

/* Container Styles */
.app-container {
    margin: 0 auto;
}

/* Header Styles */
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px;
    text-align: center;
    background: linear-gradient(135deg, #ffb74d, #ff9800);
    color: #333;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    font-size: 1.5rem;
}

.logo-img {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1) rotate(5deg);
}

h1 {
    margin: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .banner {
        flex-direction: column;
        padding: 15px;
    }

    .logo-img {
        position: static;
        margin-bottom: 10px;
        width: 50px;
    }

    h1 {
        font-size: 1.25rem;
    }
}

/* Form Section Styles */
.form-section {
    margin-bottom: 20px;
}

/* Form Row and Group Styles */
.form-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    margin: 20px 10px;
    min-width: 200px;
}

.form-group-date {
    flex: 1;
    margin: 20px 10px;
    min-width: 200px;
    margin-right: 30px;
    font-weight: bold;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

/* Input Fields */
.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: #ff8c00;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

/* Button Styles */
.button-group {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 10px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin: 0 10px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #ff8c00, #ff6f00);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff6f00, #e65c00);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, #ffb74d, #ff9800);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ff9800, #fb8c00);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-info {
    background: linear-gradient(135deg, #ffca28, #ffc107);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Button Adjustments */
@media screen and (max-width: 768px) {
    .button-group {
        flex-direction: column;
        align-items: center;
    }
}

/* View Toggle Styles */
.view-toggle {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Card and Table Styles */
.data-display {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#cardContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 calc(25% - 15px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.table-container {
    margin-top: 20px;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border: none;
}

.table th {
    background-color: #ff8c00;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.table tr:nth-child(even) {
    background-color: #ffefdb;
}

.table tr:hover {
    background-color: #ffe0b2;
}

/* Map Styles */
.map-container {
    margin-top: 20px;
    width: 90%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.map-container h2 {
    margin-bottom: 10px;
    text-align: center;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Loading Indicator */
#loadingIndicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #ff8c00;
    display: none;
}

/* Custom alert box styles */
.custom-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    padding: 20px;
    background: linear-gradient(135deg, #f44336, #e57373); /* Gradient background for error */
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    display: none;
    animation: slideDownFadeOut 4s ease-in-out forwards;
}

/* Success variant */
.custom-alert-success {
    background: linear-gradient(135deg, #4CAF50, #81C784); /* Gradient for success */
}

/* Error variant */
.custom-alert-error {
    background: linear-gradient(135deg, #f44336, #e57373); /* Gradient for error */
}

/* Icon styles */
.custom-alert .alert-icon {
    font-size: 20px;
    margin-right: 10px;
}

/* Close button */
.custom-alert .close-btn {
    font-size: 18px;
    cursor: pointer;
    color: white;
    background-color: transparent;
    border: none;
}

/* Keyframes for sliding down and fading out */
@keyframes slideDownFadeOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -40px);
    }
    10%, 90% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

/* Add media query for responsiveness */
@media screen and (max-width: 600px) {
    .custom-alert {
        width: 90%;
        font-size: 14px;
    }
}

