/* General Layout */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(120deg, #f4f7fc, #eef1f6);
    color: #333;
    height: 100%;
}

main {
    flex: 1; /* Ensures main content takes up available space */
}
/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #0056b3;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #d1e4ff;
}

/* Tools Section */
.tools-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.tools-container h2 {
    font-size: 2rem;
    text-align: center;
    color: #0056b3;
    margin-bottom: 2rem;
}

.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid layout */
    gap: 1.5rem;
    justify-items: center;
    margin-top: 0.5rem;
}

/* Individual Card */
.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Card Text Styling */
.tool-card h3 {
    font-size: 1.3rem;
    color: #0056b3;
    margin-bottom: 0.rem;
}

.tool-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.2rem;
}

/* Dropdown Menu */
/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    background-color: #0056b3; /* Match navigation bar color */
    color: white; /* Match text color for better visibility */
    min-width: 200px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
    text-align: left;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block; /* Keep the dropdown visible while hovering */
}

.dropdown-content a {
    color: white;
    padding: 0.5rem 1rem;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #d1e4ff; /* Light hover effect */
    color: #0056b3; /* Optional contrast color on hover */
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    background: white;
    height: 3px;
    width: 25px;
    margin: 4px;
    transition: all 0.3s;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        background-color: #0056b3;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 1rem;
        width: 100%;
        display: block;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown-content a {
        background-color: #0056b3;
        color: white;
    }

    .hamburger {
        display: flex;
    }
}

/* News Section */
.news-section {
    padding: 2rem 1rem;
    background: #f9f9f9;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #0056b3;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 1rem;
    max-width: 600px;
    text-align: left;
}

.news-list li {
    margin-bottom: 0.5rem;
}

.news-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-list a:hover {
    color: #0056b3;
}

.news-container .button {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.news-container .button:hover {
    background-color: #00409b;
}

/* Main Container */
.tool-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-title {
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 0.5rem;
}

.page-description {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

/* Content Layout */
.content {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Card-Like Layout */
.card {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.card h2 {
    color: #0056b3;
    margin-bottom: 1rem;
}

.input-card .form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.input-card .form-group textarea {
    width: calc(100% - 2rem); /* Adjust to fit within padding */
    max-width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #f9f9f9;
    resize: none;
}

/* .input-card .form-group input[type="url"] {
    height: 3rem; /* Consistent height for input fields */
} */

.input-card .form-group {
    margin-bottom: 1.5rem;
}

.input-card button {
    width: 100%;
    padding: 0.8rem;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.input-card button:hover {
    background-color: #00409b;
}


/* Input Section */
.input-card textarea {
    width: calc(100% - 2rem); /* Adjusts the width to fit within padding */
    max-width: 100%; /* Prevents overflow */
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #f9f9f9;
    resize: none;
    font-size: 0.8rem;
}

.input-card button {
    width: 100%;
    padding: 0.8rem;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.input-card button:hover {
    background-color: #00409b;
}

/* Output Section */
.output-card .placeholder {
    color: #aaa;
    font-style: italic;
    text-align: center;
    margin-top: 2rem;
}

.subject-attributes {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* Aligns text to the left */
}

.subject-attributes li {
    display: flex; /* Ensures icon and text are on the same line */
    align-items: baseline; /* Vertically aligns icon with text */
    margin-bottom: 0.5rem; /* Adds spacing between items */
}

.subject-attributes li i {
    color: #0056b3; /* Matches the card's theme color */
    margin-right: 0.5rem; /* Adds space between icon and text */
    font-size: 1rem; /* Icon size */
}

.subject-attributes li strong {
    color: #0056b3; /* Matches the theme color */
    flex: 0 0 200px; /* Fixed width for the attribute name */
    font-weight: bold;
    overflow-wrap: normal; /* Default behavior to prevent word breaks */
    white-space: normal; /* Ensures natural wrapping */
}

.subject-attributes li strong + span {
    word-wrap: break-word; /* Break words if they're too long for a single line */
    word-break: break-all; /* Break at arbitrary points if necessary */
    white-space: pre-wrap; /* Preserve whitespace and allow wrapping */
    line-height: 1.5; /* Increase line spacing for readability */
    overflow-wrap: anywhere; /* Break words anywhere when needed */
    display: inline-block; /* Ensure proper alignment with the label */
}


.output-card pre {
    word-wrap: break-word; /* Allows wrapping of long text */
    word-break: break-all; /* Breaks words at arbitrary points if too long */
    white-space: pre-wrap; /* Preserves whitespace but enables wrapping */
    background: #f9f9f9;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.5;
    overflow-x: auto; /* Enables horizontal scrolling as fallback */
}

.output-card .decoded {
    text-align: left; /* Align all content in this section to the left */
    font-size: 1rem; /* Consistent font size for all content */
    line-height: 1.5; /* Improve readability */
}

.output-card h3 {
    text-align: left; /* Left-align headings */
    color: #0056b3; /* Use consistent color for headings */
    margin-bottom: 0.8rem; /* Add spacing below the heading */
    font-size: 1.2rem; /* Optional: Adjust the font size */
}

/* Footer */
footer {
    background-color: #0056b3;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: auto; /* Push footer to the bottom */
}

.validation-results {
    margin-top: 1rem;
    text-align: left; /* Aligns the content to the left */
    font-size: 1rem;
    color: #333; /* Neutral color for text */
    padding: 1rem; /* Adds padding around the section */
    border: 1px solid #ddd; /* Adds a subtle border */
    border-radius: 8px; /* Smooth corners for the section */
    background-color: #f9f9f9; /* Light background for distinction */
}

.validation-results h3 {
    margin-bottom: 1rem;
    color: #0056b3; /* Highlight for the heading */
    font-size: 1.2rem;
    font-weight: bold;
}

.validation-results ul {
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
}

.validation-results li {
    margin-bottom: 0.8rem; /* Adds space between items */
    display: flex; /* Aligns text and icons horizontally */
    align-items: center; /* Centers icon with text */
}

.validation-results li strong {
    color: #0056b3; /* Highlight for the labels */
    margin-right: 0.5rem; /* Space between label and value */
}

.validation-results li span {
    font-size: 1rem;
    margin-left: auto; /* Pushes the pass/fail icon to the right */
}

.validation-results li .pass {
    color: #28a745; /* Green for pass */
    font-weight: bold;
}

.validation-results li .fail {
    color: #d9534f; /* Red for fail */
    font-weight: bold;
}

.error {
    color: #d9534f; /* Red color for errors */
    font-weight: bold;
    background-color: #f8d7da; /* Light red background */
    border: 1px solid #f5c6cb; /* Subtle border for the error box */
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}


.input-card input[type="text"],
.input-card input[type="url"],
.input-card input[type="number"] {
    width: 100%; /* Take full card width */
    padding: 1rem; /* Add padding for a larger feel */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    font-size: 1rem; /* Standardized font size */
    box-sizing: border-box; /* Prevent overflow from padding */
    margin-bottom: 1rem; /* Space below the field */
    background: #f9f9f9; /* Light background */
}

.input-card button {
    width: 100%;
    padding: 1rem; /* Larger button */
    font-size: 1rem; /* Standard font size */
    background-color: #0056b3; /* Primary color */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-card button:hover {
    background-color: #00409b; /* Slightly darker blue on hover */
}

/* Certificate Chain Container */
.certificate-chain {
    margin-top: 1rem;
}

/* Individual Certificate */
.certificate {
    margin-bottom: 1.5rem; /* Space between certificates */
    padding: 1rem;
    background: #f9f9f9; /* Light gray background */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

/* Certificate Heading */
.certificate h4 {
    font-size: 1.2rem;
    color: #0056b3; /* Matches primary theme color */
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Certificate Details */
.subject-attributes {
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
}

.subject-attributes li {
    margin-bottom: 0.5rem; /* Space between rows */
    font-size: 1rem; /* Standard font size */
    line-height: 1.5; /* Improved readability */
}

.subject-attributes li strong {
    display: inline-block;
    width: 130px; /* Align labels uniformly */
    color: #333; /* Darker color for labels */
}

/* UUID Display */
.uuid-display {
    font-size: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    white-space: pre-wrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.output-card button {
    padding: 0.8rem 1.5rem;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.output-card button:hover {
    background-color: #00409b;
}

form .form-group input[type="file"] {
    border: none;
    background: #f4f4f4;
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 6px;
}



/* General dropdown styling */
form .form-group select {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #f4f4f4;
    color: #333;
    appearance: none; /* Removes default dropdown arrow */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Dropdown focus and hover effects */
form .form-group select:hover {
    background-color: #eaeaea;
    border-color: #0056b3;
}

form .form-group select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 4px rgba(0, 86, 179, 0.5);
}

/* Adding a custom arrow to the dropdown */
form .form-group select::after {
    content: '▼';
    font-size: 1rem;
    color: #333;
    position: absolute;
    right: 1.2rem;
    pointer-events: none;
}

/* Container for positioning */
form .form-group {
    position: relative;
}

/* Custom arrow alignment */
form .form-group select {
    padding-right: 2.5rem; /* Adjust to ensure space for the arrow */
}

/* Formatted JSON Styling */
.formatted-json {
    background: #f9f9f9;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    overflow-x: auto; /* Horizontal scroll for long JSON */
    text-align: left; /* Aligns text to the left */
    word-wrap: break-word; /* Wraps long text within the container */
    white-space: pre-wrap; /* Preserves whitespace and enables wrapping */
}

/* News Section */
.news-section {
    padding: 2rem 1rem;
    background: #f9f9f9;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #0056b3;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 1rem;
    max-width: 600px;
    text-align: left;
}

.news-list li {
    margin-bottom: 0.5rem;
}

.news-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-list a:hover {
    color: #0056b3;
}

.news-container .button {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.news-container .button:hover {
    background-color: #00409b;
}

.hero {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('/images/hero-background.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 0.1rem 0.1rem; /* Reduced padding for a smaller height */
    position: relative;
}

.hero h1 {
    font-size: 2.2rem; /* Slightly smaller font size */
    margin-bottom: 0.25rem; /* Reduce margin below the heading */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Subtle shadow for clarity */
}

.hero p {
    font-size: 1rem; /* Smaller font for supporting text */
    margin-bottom: 1.5rem; /* Reduce spacing below the paragraph */
    color: #f0f0f0; /* Softer white for supporting text */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Text shadow for contrast */
}

.page-title-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center; /* Center the text */
    background: linear-gradient(120deg, #f4f7fc, #eef1f6); /* Optional background */
    color: #0056b3; /* Optional: Text color */
    margin-bottom: 1.2rem;
}

.page-title {
    font-size: 2rem; /* Adjust font size */
    font-weight: bold; /* Bold font */
    line-height: 1.4; /* Optional: Adjust line height for better spacing */
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    justify-items: center;
}

.standard-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.standard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.standard-card h2 {
    color: #0056b3;
    margin-bottom: 0.5rem;
}

.standard-card .links a {
    display: inline-block;
    margin-right: 1rem;
    color: #0056b3;
    text-decoration: underline;
}

.standard-card .links a:hover {
    color: #00409b;
}

.standard-logo {
    max-width: 150px;
    max-height: 50px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}