/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 50px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
h1 {
    color: #333333;
    text-align: center;
    margin-bottom: 30px;
}

/* Form Styles */
form {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: center;
}

form label {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

form input[type="text"] {
    width: 90%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

form input[type="text"]:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

form button {
    background-color: #007BFF;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

form button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Constructed URL */
#constructed-url {
    background-color: #f0f9ff;
    border: 1px solid #007BFF;
    border-radius: 8px;
    color: #004085;
    padding: 10px 15px;
    margin: 20px 0;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

th {
    background-color: #007BFF;
    color: #ffffff;
    padding: 15px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #0056b3;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Severity Styling */
.low {
    color: green;
    font-weight: bold;
}

.medium {
    color: orange;
    font-weight: bold;
}

.high {
    color: red;
    font-weight: bold;
}

td.high {
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 4px solid red;
}

/* Metrics Row */
/* Metrics Row */
.metrics-row {
    display: flex;
    flex-wrap: wrap;
    /* Enable wrapping for smaller screens */
    gap: 5px;
    /* Spacing between cards */
    justify-content: space-between;
    /* Distribute space between cards */
    margin-top: 20px;
}

/* Metric Card */
.metric-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: calc(25% - 20px);
    /* Four cards per row with 20px gap */
    max-width: 250px;
    /* Prevent cards from being too wide */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease-in-out;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    margin-top: 50px;
    padding: 20px 0;
    width: 100%;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-container p {
    margin: 0 15px;
    font-size: 14px;
    color: #333;
}

/* Responsive Design for Metric Cards */

@media (max-width: 480px) {
    .metric-card {
        width: 100%;
        /* One card per row on small screens */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.metric-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.metric-card p {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .metric-card {
        width: calc(50% - 20px);
        /* Two cards per row */
    }

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

@media (max-width: 480px) {
    .metric-card {
        width: 100%;
        /* One card per row */
    }

    table {
        font-size: 14px;
    }
}