/* --- Basic Setup --- */
body {
    display: flex;
    flex-direction: column; /* Arrange children vertically */
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    background-color: #212121;
    margin: 0;
}

/* --- Header Styling --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #303030;
    border-bottom: 1px solid #181818;
    box-sizing: border-box;
}

.header-logo {
    height: 35px;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

/* --- Main Content Area --- */
main {
    flex-grow: 1; /* Allows this area to grow and push the footer down */
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-container {
    display: flex;
    flex-direction: column; /* Arrange buttons vertically */
    gap: 20px; /* Space between buttons */
    background-color: #424242; /* Box background */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.2);
}

.box-title {
    color: #e0e0e0; /* Softer white for text */
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    margin: 0; /* Reset default h2 margin */
    padding-bottom: 15px; /* Space between text and the line */
    border-bottom: 1px solid #616161; /* Separator line */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- General Button Styling --- */
.btn {
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    text-decoration: none; /* Remove underline from links */
    -webkit-tap-highlight-color: transparent; /* Removes blue highlight on mobile tap */
}

/* --- Raised Button Style --- */
.btn-raised {
    background-color: #303030; /* Material Blue */
    color: white;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),
                0 3px 1px -2px rgba(0,0,0,0.12),
                0 1px 5px 0 rgba(0,0,0,0.2);
}

.btn-raised:hover {
    background-color: #424242; /* Darker Blue */
    box-shadow: 0 4px 5px 0 rgba(0,0,0,0.14),
                0 1px 10px 0 rgba(0,0,0,0.12),
                0 2px 4px -1px rgba(0,0,0,0.2);
}

.btn-raised:active {
    box-shadow: 0 8px 10px 1px rgba(0,0,0,0.14),
                0 3px 14px 2px rgba(0,0,0,0.12),
                0 5px 5px -3px rgba(0,0,0,0.2);
}

/* --- Primary Button Style (for 'Getting Started') --- */
.btn-primary {
    background-color: #82b1ff; /* A nice blue to stand out, same as modal links */
    color: #212121; /* Dark text for contrast on light blue */
}

.btn-primary:hover {
    background-color: #a1c9ff; /* Lighter blue on hover */
    /* The box-shadow from btn-raised:hover will still apply, which is good */
}


/* --- Header Button Style --- */
.btn-header {
    background-color: transparent;
    color: #e0e0e0;
    padding: 8px 16px;
    box-shadow: none;
}

.btn-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.btn-header:active {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

/* --- Footer Styling --- */
footer {
    width: 100%;
    padding: 20px 40px;
    border-top: 1px solid #181818;
    background-color: #181818;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
}

.footer-logo {
    height: 40px;
    opacity: 0.7;
}

.footer-info {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
}

.footer-info span {
    display: block;
    color: #ccc;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* --- Language Selector Styling --- */
.language-selector select {
    -webkit-appearance: none; /* Remove default arrow on Chrome/Safari */
    -moz-appearance: none; /* Remove default arrow on Firefox */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0e0e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 1em;
    padding-right: 30px; /* Make space for the arrow */
}

.language-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(130, 177, 255, 0.5); /* A subtle focus ring */
}

.language-selector select option {
    background-color: #303030;
}

/* --- Modal (Overlay) Styling --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #424242;
    color: #e0e0e0;
    margin: auto;
    padding: 20px 40px;
    border: 1px solid #181818;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    animation: fadeIn 0.3s;
}

.modal-content ol.steps-list {
    list-style: none;
    padding-left: 0;
    counter-reset: steps-counter;
}

.modal-content ol.steps-list li {
    counter-increment: steps-counter;
    margin-bottom: 25px;
    position: relative;
    padding-left: 45px;
    min-height: 30px;
}

.modal-content ol.steps-list li::before {
    content: counter(steps-counter);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #82b1ff; /* Same as link color */
    background-color: rgba(130, 177, 255, 0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.modal-content ol.steps-list h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.modal-content ol.steps-list p {
    margin: 0 0 15px 0;
    color: #bdbdbd;
}

.btn-download {
    width: 100%;
    box-sizing: border-box;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 16px;
}

.client-release-info {
    margin: 10px 0 0;
    color: #e0e0e0;
    font-size: 0.95em;
}

.client-release-info code {
    display: inline-block;
    margin-top: 4px;
    background-color: #303030;
    padding: 4px 8px;
    border-radius: 4px;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.system-architecture {
    margin: 10px 0 0;
    color: #bdbdbd;
    font-size: 0.95em;
}

.system-architecture strong {
    color: #ffffff;
}

.installation-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 10px;
}

.modal-content pre {
    background-color: #303030;
    padding: 12px;
    border-radius: 4px;
    overflow-wrap: anywhere;
    white-space: pre-wrap; /* allow long commands to wrap */
    margin: 0 0 15px 0;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.95);}
    to {opacity: 1; transform: scale(1);}
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    text-align: center;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #616161;
}

.modal-content ul {
    list-style: none;
    padding: 0;
}

.modal-content li {
    margin-bottom: 10px;
}

.modal-content a {
    color: #82b1ff; /* A nice blue for links */
    text-decoration: none;
}
