@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif !important;
}

:root {
    --bg-color: #0f0f0f;
    --second-bg-color: #333;
    --text-color: #ffffff;
    --main-color: #04e9fb;
    --error: #ff0000;
    --success: #00ff00;
    --alt-color: #007bff;
    --alt-text: #777;
}

/*LIGHT*/
.lightmode {
    --bg-color: #ffffff;
    --second-bg-color: #ffffff;
    --text-color: #000000;
    --main-color: #12a1f9;
    --alt-text: #777;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

.validation-errors {
    background-color: white;
    backdrop-filter: blur(10px);
    padding: 10px 14px;
    margin-bottom: 10px;
    color: var(--error);
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.validation-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.validation-errors .error {
    font-size: 15px;
    font-weight: 500;
    display: block;
    padding: 4px 0;
}

.validation-errors::before {
    content: "⚠️";
    font-size: 20px;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .validation-errors {
        font-size: 14px;
        padding: 10px 12px;
    }

    .validation-errors .error {
        font-size: 13px;
    }

    .validation-errors::before {
        font-size: 18px;
    }
}

.goback {
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 28px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 1000;
}

.goback:hover {
    color: var(--alt-color);
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .goback {
        font-size: 24px;
        top: 10px;
        left: 10px;
    }
}

.footer {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
    padding: 60px 20px;
    text-align: center;
}
.back-to-top {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 12px;
    width: 50px;
    height: 50px;
    cursor: pointer;
}
.footer h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}
.footer p {
    font-size: 16px;
    margin-bottom: 25px;
    color: var(--alt-text);
}

.footer-buttons {
    margin-bottom: 40px;
}
.footer-buttons a {
    text-decoration: none;
}
.footer-buttons .button {
    background: var(--alt-text);
    border: none;
    padding: 12px 25px;
    margin: 8px;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 30px;
    font-size: 14px;
    transition: 0.3s;
}
.footer-buttons .button:hover {
    background: var(--alt-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    padding: 20px;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}
.footer-column h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-color);
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 8px;
}
.footer-column ul li a {
    color: var(--alt-text);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}
.footer-column ul li a:hover {
    color: var(--alt-color);
}
.footer-bottom {
    margin-top: 40px;
    font-size: 12px;
    color: var(--text-color);
}
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Fade-in Effect */
.fade-in {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1),
        transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.search-box {
    margin-top: 15px;
    display: flex;
    align-items: center;
    position: relative;
    width: 250px;
}

.search-box input {
    padding: 10px 45px 10px 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: var(--bg-color);
    color: var(--text-color);
    outline: none;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    cursor: pointer;
}

.search-results {
    position: relative !important;
    background: var(--bg-color);
    color: var(--text-color);
    width: 350px;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--text-color);
    border-radius: 5px;
    display: none;
    z-index: 9999 !important;
    pointer-events: auto;
}

.search-results .result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-color);
}

.search-results .result-item:hover {
    background: var(--alt-text);
}

@media (max-width: 1024px) {
    .search-box {
        justify-content: center;
        width: 80%;
        max-width: 400px;
    }

    .search-results {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .search-box {
        width: 90%;
        max-width: 100%;
    }
    .search-box input {
        padding: 10px 50px 10px 10px;
    }

    .search-results {
        width: 90%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .search-box {
        width: 100%;
        margin-top: 10px;
    }

    .search-results {
        width: 100%;
        left: 0;
    }
}

#editor {
    visibility: visible !important;
    width: 100%;
    height: 300px;
}

.not-available-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.not-available-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.not-available-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.btn {
    transition: all 0.3s ease-in-out;
}

.btn-submit:hover {
    background-color: var(--alt-color) !important;
    color: black !important;
    transform: scale(1.05);
}

.btn-cancel:hover {
    background-color: var(--error) !important;
    color: black !important;
    transform: scale(1.05);
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#loadingOverlay.show {
    visibility: visible;
    opacity: 1;
}

#loadingLogo {
    width: 100px;
    height: 100px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}
