body {
    font-family: Arial, sans-serif;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #05357c;
}

.container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 0 auto;
    width: 95%;
}

.header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    padding-right: 50px; /* Make space for the toggle button */
}

.header .logo {
    height: 100px;
    width: auto;
}

.header h1 {
    font-size: 24px;
    margin: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], select.form-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: white;
}

select.form-select option {
    background-color: white;
    color: #333;
    padding: 8px;
}

[data-bs-theme="dark"] select.form-select {
    background-color: #2b2b2b;
    color: #fff;
    border-color: #444;
}

[data-bs-theme="dark"] select.form-select option {
    background-color: #2b2b2b;
    color: #fff;
}

button {
    background-color: #198754;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
}

button.primary {
    background-color: #198754;
}

button.secondary {
    background-color: #05357c;
}

button.secondary:hover {
    background-color: #1976D2;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button:hover {
    background-color: #157347;
}

#result {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    white-space: pre-wrap;
}

.loading {
    display: none;
    margin-top: 20px;
    text-align: center;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    transition: opacity 0.4s ease;
    will-change: opacity;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    background-color: white;
    font-size: 14px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #198754;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

th:first-child {
    border-top-left-radius: 8px;
}

th:last-child {
    border-top-right-radius: 8px;
}

tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

tr:hover {
    background-color: #f8f9fa;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    color: #2196F3;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #e3f2fd;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #2196F3;
    color: white;
    text-decoration: none;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.company-info a {
    color: #2196F3;
    text-decoration: none;
    font-size: 13px;
}

.company-info a:hover {
    text-decoration: underline;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
}

.contact-info span {
    color: #666;
}

.contact-info a {
    color: #2196F3;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.created-at {
    color: #666;
    font-size: 13px;
}

.no-data {
    color: #999;
    font-style: italic;
}

.error-message {
    color: #dc3545;
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    will-change: contents;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.pagination button {
    background-color: #198754;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    min-width: 100px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity, background-color;
    transform: translateZ(0);
}

.pagination button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
    background-color: #157347;
}

.pagination-info {
    color: #666;
    font-size: 14px;
    min-width: 200px;
    text-align: center;
    will-change: contents;
    transform: translateZ(0);
}

/* Loading indicator animation */
@keyframes loadingPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Apply the animation to the loading text */
.pagination-info-loading {
    color: #198754;
    font-weight: bold;
    animation: loadingPulse 1.5s infinite ease-in-out;
}

.country-filter {
    margin: 20px 0;
    text-align: right;
}

.country-filter select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.filters-container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 20px;
}

.version-text {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgba(5, 53, 124, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
}

/* Country search dropdown styles */
.country-select-container {
    position: relative;
}

#countrySearch {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: inherit;
    color: inherit;
}

#countrySearchResults {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.country-option {
    padding: 8px;
    cursor: pointer;
    color: inherit;
}

.country-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] #countrySearchResults {
    background-color: #2b2b2b;
    border-color: #444;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

[data-bs-theme="dark"] .country-option {
    color: #ffffff;
    border-bottom: 1px solid #4d4d4d;
}

[data-bs-theme="dark"] .country-option:last-child {
    border-bottom: none;
}

[data-bs-theme="dark"] .country-option:hover {
    background-color: #3d3d3d;
}

#countdown {
    display: none;
    text-align: center;
    margin-top: 10px;
    font-size: 18px;
    color: #4CAF50;
}

/* Custom utility class for responsive width */
@media (min-width: 768px) {
    .w-md-50 {
        width: 50% !important;
        max-width: 250px;
    }
    
    #generateBtn, #viewAllBtn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Add some responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        width: 100%;
    }
    .form-row {
        flex-direction: column;
    }
    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }
    .header img.logo {
        max-width: 80%;
        height: auto;
    }
    .header h1 {
        font-size: 1.5rem;
    }
    .version-text {
        font-size: 0.7rem;
    }
    button {
        width: 100%;
        margin-bottom: 10px;
    }
    .filters-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .filter-buttons {
        width: 100%;
        flex-direction: column;
    }

    .country-filter {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .country-filter select {
        width: 100%;
    }

    /* Table responsive styles */
    .table-container {
        padding: 10px;
        margin-top: 15px;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px;
    }
    
    /* Data row styles for mobile */
    tr.data-row {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Ensure company info displays properly */
    .company-info {
        flex-direction: column;
        width: 100%;
        text-align: right;
    }
    
    /* Ensure contact info displays properly */
    .contact-info {
        width: 100%;
        text-align: right;
    }
    
    /* Stack the pagination controls for mobile */
    .pagination {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .pagination button {
        width: 100%;
        min-width: 150px;
    }

    /* Make result container properly responsive */
    #result {
        padding: 10px;
        margin-top: 15px;
    }
    
    /* Responsive treatment for complex content in cells */
    .social-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .social-links a {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    /* Make the table more readable on mobile with data attributes */
    table.responsive-table {
        display: block;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }
    
    table.responsive-table thead {
        display: none;
    }
    
    table.responsive-table tbody, 
    table.responsive-table tr {
        display: block;
        width: 100%;
    }
    
    table.responsive-table tr {
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 12px;
        background-color: #f9f9f9;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    table.responsive-table td {
        display: flex;
        padding: 10px 5px;
        text-align: right;
        border-bottom: 1px dotted #ddd;
        align-items: flex-start;
    }
    
    table.responsive-table td:last-child {
        border-bottom: none;
    }
    
    table.responsive-table td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: auto;
        text-align: left;
        min-width: 120px;
        padding-right: 10px;
    }
}

.bottom-controls {
    position: fixed;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.version-link {
    background-color: #05357c;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.version-link:hover {
    background-color: #1976D2;
    color: white;
}

/* Theme Toggle Button */
.theme-toggle {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.theme-toggle:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.theme-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    stroke: #05357c;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(30deg);
}

[data-bs-theme="dark"] .theme-toggle {
    background: #2d2d2d;
    border-color: #4d4d4d;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

[data-bs-theme="dark"] .theme-toggle:hover {
    background-color: #3d3d3d;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

[data-bs-theme="dark"] .theme-icon {
    stroke: #ffffff;
}

/* Dark Mode Styles */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #ffffff;
}

[data-bs-theme="dark"] .container {
    background-color: #2d2d2d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

[data-bs-theme="dark"] body {
    background-color: #121212;
}

[data-bs-theme="dark"] input[type="text"],
[data-bs-theme="dark"] select.form-select {
    background-color: #3d3d3d;
    border-color: #4d4d4d;
    color: #ffffff;
}

[data-bs-theme="dark"] input[type="text"]::placeholder {
    color: #888;
}

[data-bs-theme="dark"] #result {
    background-color: #3d3d3d;
    border-color: #4d4d4d;
    color: #ffffff;
}

[data-bs-theme="dark"] .table-container {
    background-color: #2d2d2d;
}

[data-bs-theme="dark"] table {
    background-color: #2d2d2d;
    color: #ffffff;
}

[data-bs-theme="dark"] th {
    background-color: #198754;
}

[data-bs-theme="dark"] tr:hover {
    background-color: #3d3d3d;
}

[data-bs-theme="dark"] .social-links a {
    background-color: #3d3d3d;
    color: #2196F3;
}

[data-bs-theme="dark"] .social-links a:hover {
    background-color: #2196F3;
    color: #ffffff;
}

[data-bs-theme="dark"] .contact-info span {
    color: #aaa;
}

[data-bs-theme="dark"] .created-at {
    color: #aaa;
}

[data-bs-theme="dark"] .no-data {
    color: #888;
}

[data-bs-theme="dark"] .version-info {
    color: #ffffff;
}

[data-bs-theme="dark"] .version-info h3,
[data-bs-theme="dark"] .version-info h4 {
    color: #ffffff;
}

[data-bs-theme="dark"] .version-info ul {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .version-info strong {
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-primary {
    background-color: #198754;
    border-color: #198754;
}

[data-bs-theme="dark"] .btn-primary:hover {
    background-color: #157347;
    border-color: #157347;
}

[data-bs-theme="dark"] table.responsive-table td {
    color: #e0e0e0;
    border-bottom: 1px dotted #4d4d4d;
}

[data-bs-theme="dark"] table.responsive-table td:before {
    color: #ffffff;
    font-weight: 600;
}

[data-bs-theme="dark"] table.responsive-table tr {
    background-color: #2d2d2d;
    border: 1px solid #4d4d4d;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

[data-bs-theme="dark"] .company-info a {
    color: #64b5f6;
}

[data-bs-theme="dark"] .contact-info span {
    color: #b0b0b0;
}

[data-bs-theme="dark"] .contact-info a {
    color: #64b5f6;
}

[data-bs-theme="dark"] .created-at {
    color: #b0b0b0;
}

[data-bs-theme="dark"] .social-links a {
    background-color: #3d3d3d;
    color: #64b5f6;
} 