/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background: url('/theme/image/background.svg') no-repeat center center fixed;
    background-size: cover;
    background-color: #f0f3fb;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    padding-top: 65px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    color: #274c77;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

p {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    padding: 10px;
}

/* Tool Section */
.tool {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.tool h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"] {
    width: 70%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
}

button {
    padding: 12px 24px;
    background-color: #6096ba;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

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

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

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #274c77;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Section */
.results {
    margin-top: 20px;
    display: none;
    overflow-x: auto; 
}

.results table {
    width: 100%;
    max-width: 90%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden; 
}

/* Table Header */
.results th {
    background-color: #274c77;
    color: white;
    font-weight: bold;
    padding: 14px;
    text-align: left;
    white-space: nowrap;
}

/* Table Cells */
.results td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
    overflow-wrap: break-word; 
    max-width: 450px; 
}

/* Row Hover Effect */
.results tr:hover {
    background-color: #f9f9f9;
    transition: background 0.3s ease;
}

/* Responsive Table */
@media screen and (max-width: 768px) {
    .results table {
        width: 100%;
    }

    .results th, .results td {
        padding: 10px;
        font-size: 14px;
    }
}


/* Cache Status Highlight */
.cache-hit {
    color: white;
    background: green;
    padding: 5px;
    font-weight: bold;
    border-radius: 8px;
}

.cache-miss {
    color: white;
    background: red;
    padding: 5px;
    font-weight: bold;
    border-radius: 8px;
}

/* Cards Section */
.cards {
    margin-bottom: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 2rem;
    color: #6096ba;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 1rem;
    color: #666;
}

/* FAQs Section */
.faqs {
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.faq {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.faq p {
    font-size: 1rem;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    form {
        flex-direction: column;
    }

    input[type="text"] {
        width: 100%;
    }

    button {
        width: 100%;
    }
}