/* Index page specific styles */
.text-line > span,
.text-line > img {
    margin-right: 8px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Dark theme for form inputs */
.form-control {
    background-color: #2e3137 !important;
    border: 1px solid #555 !important;
    color: #e6e6e6 !important;
}

.form-control:focus {
    background-color: #363a42 !important;
    border-color: #80b3ff !important;
    box-shadow: 0 0 0 0.2rem rgba(128, 179, 255, 0.25) !important;
    color: #e6e6e6 !important;
}

.form-control::placeholder {
    color: #aaa !important;
}

.btn-secondary.dropdown-toggle {
    background-color: #2e3137 !important;
    border-color: #555 !important;
    color: #e6e6e6 !important;
}

.btn-secondary.dropdown-toggle:hover,
.btn-secondary.dropdown-toggle:focus {
    background-color: #363a42 !important;
    border-color: #80b3ff !important;
}

.dropdown-menu {
    background-color: #2e3137 !important;
    border: 1px solid #555 !important;
}

.dropdown-item {
    color: #e6e6e6 !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #363a42 !important;
    color: #fff !important;
}

.form-label {
    color: #e6e6e6 !important;
    font-weight: 500;
}

/* Custom SweetAlert2 close button styling */
.swal2-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 24px !important;
    font-weight: bold !important;
    color: #999 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    z-index: 10000 !important;
}

.swal2-close:hover {
    background-color: #f44336 !important;
    color: white !important;
    transform: scale(1.1) !important;
}

/* Responsive grid optimization */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}
