﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #1e1e1e;
    color: #d4d4d4;
}

/* Style for the fixed header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #252526; /* Match the container background */
    z-index: 1000; /* Ensure it stays above other elements */
    padding: 10px 20px; /* Add some padding for spacing */
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Optional shadow for better visibility */
}

    .fixed-header img.logo {
        height: 50px; /* Adjust the height of the logo */
        margin-right: 10px; /* Add spacing between the logo and the text */
    }

    .fixed-header h1 {
        font-size: 20px; /* Adjust the font size */
        color: #d4d4d4; /* Match the theme color */
        margin: 0; /* Remove default margin */
    }


/* Add this to your existing CSS */
.terms-link {
    color: #61afef;
    text-decoration: underline;
    cursor: pointer;
}

    .terms-link:hover {
        color: #569cd6;
    }

.custom-alert-body {
    max-height: 400px; /* Adjust the height as needed */
    overflow-y: auto;
}

/* Add this to your existing CSS */
.terms-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Add spacing below the container */
}

    .terms-container input[type="checkbox"] {
        margin-right: 10px; /* Add spacing between the checkbox and the label */
        width: 18px !important; /* Adjust the size of the checkbox */
        height: 18px; /* Adjust the size of the checkbox */
        cursor: pointer; /* Add a pointer cursor for better UX */
    }

    .terms-container label {
        font-size: 14px; /* Adjust the font size */
        color: #d4d4d4; /* Match the text color with the theme */
    }

.terms-link {
    color: #61afef;
    text-decoration: underline;
    cursor: pointer;
}

    .terms-link:hover {
        color: #569cd6;
    }


.custom-alert-body {
    max-height: 400px; /* Adjust the height as needed */
    overflow-y: auto;
}




.container {
    width: 90%;
    max-width: 1000px;
    background-color: #252526;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    margin-top: 150px;
}

h1 {
    text-align: center;
    color: #569cd6;
    margin-bottom: 20px;
    margin-top: 60px;
}

.editor-container {
    margin-bottom: 20px;
}

#predefinedCodeEditor {
    border: 2px solid #61afef;
    border-radius: 5px;
    margin-bottom: 20px;
}

#userCodeEditor {
    border: 2px solid #98c379;
    border-radius: 5px;
    margin-bottom: 20px;
}

button {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(90deg, #007acc, #005f9e);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

    button:hover {
        background: linear-gradient(90deg, #005f9e, #00427b);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
        transform: scale(1.05);
    }

    button:active {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

#userForm {
    margin-top: 20px;
}

    #userForm input {
        width: calc(100% - 20px);
        margin-bottom: 10px;
        padding: 10px;
        font-size: 16px;
        color: #d4d4d4;
        background-color: #1e1e1e;
        border: 1px solid #3c3c3c;
        border-radius: 5px;
    }

        #userForm input:focus {
            outline: 2px solid #569cd6;
        }

/* Stiluri pentru alertele personalizate */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 300px;
    background-color: #252526;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow: hidden;
}

    .custom-alert.show {
        opacity: 1;
    }

.custom-alert-header {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #3c3c3c;
}

.alert-success .custom-alert-header {
    background-color: #13662c;
    color: #ffffff;
}

.alert-error .custom-alert-header {
    background-color: #a1260d;
    color: #ffffff;
}

.alert-warning .custom-alert-header {
    background-color: #8a6300;
    color: #ffffff;
}

.custom-alert-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.custom-alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
    margin: 0;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

    .custom-alert-close:hover {
        opacity: 1;
        background: none;
        transform: none;
        box-shadow: none;
    }

.custom-alert-body {
    padding: 20px;
    color: #d4d4d4;
}

.custom-alert-buttons {
    display: flex;
    justify-content: flex-end;
    padding: 0 20px 20px;
    gap: 10px;
}

    .custom-alert-buttons button {
        padding: 8px 16px;
        font-size: 14px;
        transition: background-color 0.2s;
        text-transform: none;
    }
/* Buton secundar pentru alerte */
.btn-secondary {
    background: linear-gradient(90deg, #505050, #3c3c3c);
}

    .btn-secondary:hover {
        background: linear-gradient(90deg, #3c3c3c, #282828);
    }
/* Overlay pentru fundal întunecat */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

    .overlay.show {
        opacity: 1;
        pointer-events: all;
    }
/* Indicator de încărcare */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .loading-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }
/* Stiluri pentru mesaj de stare server */
.server-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #1e1e1e;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    font-size: 14px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-online {
    background-color: #13662c;
}

.status-offline {
    background-color: #a1260d;
}

.status-checking {
    background-color: #8a6300;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}


/* Popup overlay */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Popup content */
.popup-content {
    background-color: #252526;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #d4d4d4;
}

/* Close button */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s;
}

    .popup-close:hover {
        color: #ff5c5c;
    }

/* Input fields */
.popup-content input {
    width: calc(100% - 20px);
    margin-bottom: 15px;
    padding: 10px;
    font-size: 16px;
    color: #d4d4d4;
    background-color: #1e1e1e;
    border: 1px solid #3c3c3c;
    border-radius: 5px;
}

    .popup-content input:focus {
        outline: 2px solid #569cd6;
    }

/* Save button */
.popup-content button {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(90deg, #007acc, #005f9e);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

    .popup-content button:hover {
        background: linear-gradient(90deg, #005f9e, #00427b);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
        transform: scale(1.05);
    }

    .popup-content button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }
