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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-in-out;
}

/* Fallback for older browsers */
@supports not (backdrop-filter: blur(10px)) {
    .backdrop-blur-lg {
        background-color: rgba(255, 255, 255, 0.95);
    }
}

.modal-content {
    max-width: 90%;
    width: auto;
    padding: 20px;
    text-align: center;
}

/* Search Bar */
.search-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.search-input {
    width: 70%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    border-color: #008600; /* Green primary color */
    box-shadow: 0 4px 8px rgba(0, 134, 0, 0.2);
}

#investor-search-btn {
    margin-left: 10px;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #008600; /* Primary green */
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#investor-search-btn:hover {
    background-color: #006400; /* Darker green on hover */
}
/* Table Wrapper (for scrolling on small screens) */
.table-wrapper {
    overflow-x: auto;
    max-height: 300px;
}

.eligibility-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--accent-color);
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
    font-size: 1rem;
}

.eligibility-table th, .eligibility-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-color);
}

.eligibility-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    text-align: center !important;
    padding: 5px 10px;
    border: 1px solid #d1d5db;
    user-select: none;
}

.eligibility-table td {
    color: #2c3e50;
}

.left-align {
    text-align: left!important;
}

.right-align {
    text-align: right!important;
}

.center-align {
    text-align: center !important;
    vertical-align: middle !important;
}

[type=search]:focus,
[type=search]:focus-visible{
    border-color: #008600!important;
    box-shadow: 0 4px 8px rgba(0, 134, 0, 0.2);
}

[type=search] {
    margin-bottom: 10px;
}

.hidden {
    display: none !important;
}


/* Action Buttons */
.invest-btn, .update-info-btn {
    width: 100%;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    padding: 0;
    border: none;
    cursor: pointer;
}

.invest-btn {
    background-color: #008600;
    color: white;
}

.update-info-btn {
    background-color: #ffcc00;
    color: #333;
}

.invest-btn:hover {
    background-color: #006400;
}

.update-info-btn:hover {
    background-color: #e6b800;
}
#table-loader {
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
}
@media screen and (max-width: 768px) {
    body{
        font-size: 12px;
    }
    .search-input {
        width: 70%;
    }

    #investor-search-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    body{
        font-size: 12px;
    }

    .modal-title,
    .swal2-title{
        font-size: 18px !important;
    }

    .swal2-styled.swal2-confirm,
    .swal2-html-container,
    #investor-search-btn,
    .modal-message,
    .search-input , .eligibility-table {
        font-size: 12px !important;
    }
}