@import url('https://fonts.googleapis.com/css2?family=Comfortaa&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
:root {
    --container-gap: 25px;
    --container-width: min(750px, 100vw);
    --container-width-move1: 0;
    --container-width-move2: calc(-1 * var(--container-width));
    --container-width-move3: calc(-2 * var(--container-width));
    --container-width-move4: calc(-3 * var(--container-width));
    --container-width-move5: calc(-4 * var(--container-width));
    --consoleYellow: #E5C07B;
    --consoleOrange: #D19A66;
    --consoleRed: #E06C75;
    --consoleGreen: #98C379;
    --consoleBlue: #61AFEF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Comfortaa', sans-serif;
    font-size: 16px;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
    scroll-behavior: smooth;
    padding-top: 100px;
}

.logo-container img {
    max-width: 150px;
    height: auto;
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24
}

p.center {
    text-align: center;
}

span.wave {
    font-size: 24px;
    transform: translate(5px, -8px);
}

.window {
    width: var(--container-width);
    height: fit-content;
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--container-gap) 0;
    padding-left: calc(var(--container-gap) / 2);
}

.wrapper {
    width: fit-content;
    height: fit-content;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--container-gap);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.wrapper.move1 {
    transform: translateX(var(--container-width-move1));
}

.wrapper.move2 {
    transform: translateX(var(--container-width-move2));
}

.wrapper.move3 {
    transform: translateX(var(--container-width-move3));
}

.wrapper.move4 {
    transform: translateX(var(--container-width-move4));
}

.wrapper.move5 {
    transform: translateX(var(--container-width-move5));
}

.container {
    width: calc(var(--container-width) - var(--container-gap));
    min-width: calc(var(--container-width) - var(--container-gap));
    padding: 20px;
    background-color: #101a14;
    color: #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    height: fit-content;
    max-height: 95vh;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

h2 {
    text-align: center;
    font-weight: normal;
    margin-bottom: var(--container-gap);
}

.input-group {
    margin: 15px 0;
}

.input-group label {
    color: #000;
}

.input-group label span.help {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.8);
    margin-left: 5px;
    display: inline-block;
    transform: translateY(2.5px);
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.input-group label span.help:hover {
    color: #2f8cf0;
}

.input-group input,
.input-group textarea {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 5px 0;
    font-family: 'Poppins', 'Comfortaa', sans-serif;
    font-size: 13px;
}

.input-group textarea {
    height: 100px;
    min-height: 100px;
}

.input-group p.error {
    color: red;
    font-size: 14px;
    display: none;
}

.input-group p.error.active {
    display: block;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: var(--container-gap);
}

.buttons.right {
    display: flex;
    justify-content: right;
}

button {
    padding: 10px 20px;
    border: none;
    background: linear-gradient(90deg, #1d78f2, #3bb9ff);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 12px;
    width: fit-content;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

button:hover {
    background: linear-gradient(90deg, #3bb9ff, #1d78f2);
}

button:disabled {
    background-color: #ccc;
    cursor: no-drop;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.checkbox-group input {
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
}

/* Fix checkmark animation */
.circ {
    opacity: 0;
    stroke-dasharray: 180; /* Increased from 107 to ensure full circle */
    stroke-dashoffset: 180; /* Must match dasharray */
    transition: all 0.6s cubic-bezier(0.6, 0, 0.4, 1) !important;
}

.tick {
    opacity: 0;
    stroke-dasharray: 60; /* Adjusted for the new path length */
    stroke-dashoffset: 60; /* Must match dasharray */
    transition: opacity 0.1s ease, stroke-dashoffset 0.6s 0.3s cubic-bezier(0.6, 0, 0.4, 1) !important;
}

.drawn svg .circ {
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
}

.drawn svg .tick {
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
}

/* Enhanced SVG display */
svg#tick {
    width: 80px;
    height: auto;
    margin: 0 auto 35px auto;
    visibility: visible !important;
    display: block !important;
}

body.viewPage {
    height: fit-content;
    padding: var(--container-gap);
    display: flex;
    flex-direction: column;
    gap: var(--container-gap);
    background-color: #131313;
    color: #a6a6a6;
}

body.viewPage input,
body.viewPage textarea {
    background: none;
    color: #a6a6a6;
}

body.viewPage .admin {
    width: calc(var(--container-width) - var(--container-gap));
    min-width: calc(var(--container-width) - var(--container-gap));
    padding: 20px;
    background-color: #151515;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
    display: flex;
    justify-content: space-between;
    gap: var(--container-gap);
    border-bottom: 5px solid transparent
}

body.viewPage .admin .id-select {
    display: flex;
    align-items: center;
    gap: 5px;
}

body.viewPage .admin .id-select input {
    border: 0;
    outline: 0;
    border-bottom: 2px solid lightgray;
    font-size: 20px;
    width: 50px;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

body.viewPage .admin .id-select input::-webkit-outer-spin-button,
body.viewPage .admin .id-select input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.viewPage .admin .id-select p {
    font-size: 18px;
}

body.viewPage .admin>div {
    display: flex;
    gap: calc(var(--container-gap) / 2);
}

body.viewPage .admin span.action {
    user-select: none;
    cursor: pointer;
    font-size: 32px;
    transition: 0.3s;
}

body.viewPage .admin span.arrow:hover,
body.viewPage .admin span.link:hover {
    color: #556cd6;
}

body.viewPage .admin span.done:hover {
    color: #66bb6a;
}

body.viewPage .admin span.schedule:hover {
    color: #E5C07B;
}

body.viewPage .admin span.delete:hover {
    color: #f44336;
}

body.viewPage .wrapper {
    flex-direction: column;
    max-height: fit-content;
    transform: none;
    align-items: start;
}

body.viewPage h1,
body.viewPage h2,
body.viewPage .buttons,
body.viewPage #section1,
body.viewPage #section5 {
    display: none;
}

body.viewPage .container {
    width: calc(var(--container-width) - var(--container-gap));
    min-width: calc(var(--container-width) - var(--container-gap));
    padding: 20px;
    background-color: #101a14;
    color: #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    height: fit-content;
    max-height: 95vh;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body.viewPage .input-group label {
    color: #a6a6a6;
}

body.viewPage .checkbox-group label {
    color: #a6a6a6;
}

body.viewPage .input-group label span.help {
    display: none;
}

body.viewPage table {
    width: 100%;
    border-spacing: 0;
    margin-bottom: var(--container-gap);
}

body.viewPage table th:nth-child(2) {
    width: 100%;
}

body.viewPage table tr td {
    white-space: nowrap;
    font-size: 13px;
}

body.viewPage table tr.line td {
    border-top: 1px solid currentColor;
}

body.viewPage table tr>td:first-of-type {
    padding-right: 20px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
    z-index: -1;
    pointer-events: none;
}

.input-group input,
.input-group textarea {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

label,
.input-group label,
.checkbox-group label {
    color: #6f6f6f;
    font-weight: 600;
}

p,
span,
input,
textarea {
    color: #e0e0e0;
}

h1,
h2,
h3 {
    color: #278bff;
    font-weight: 1000;
    font-size: 26px;
    margin-bottom: 15px;
}

#section1 h2 {
    font-size: 28px;
    font-weight: 1000;
    color: #278bff;
}

.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.bubble {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: floatBubble 8s linear infinite;
}

@keyframes floatBubble {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1.2);
        opacity: 0;
    }
}

#section1 {
    color: #a6a6a6;
}

#section1 p {
    color: #a6a6a6;
}

.logo-container {
    position: fixed !important;
    top: -20px;
    transform: scale(1.5);
    z-index: 0;
}

.social-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 150;
}

.social-buttons a {
    width: 50px;
    height: 50px;
    background-color: rgba(100, 100, 100, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-buttons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.social-buttons img {
    width: 24px;
    height: 24px;
}

/* Homepage redirect animation - updated for full coverage */
.redirect-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000; /* Solid black background instead of semi-transparent */
    z-index: 9999; /* Increased z-index to ensure it's above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    pointer-events: none;
    overflow: hidden;
}

.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('dots-pattern.png');
    background-size: 200px auto;
    opacity: 0.15;
    z-index: -1;
}

.redirect-animation.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.redirect-content {
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.redirect-animation.active .redirect-content {
    transform: scale(1);
    opacity: 1;
}

.redirect-content h2 {
    color: #278bff;
    font-size: 32px;
    margin-bottom: 15px;
    margin-top: 20px;
}

.redirect-logo-container {
    position: relative;
    width: 180px;
    height: auto;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.redirect-logo {
    width: 150px;
    height: auto;
    position: relative;
    z-index: 10;
    margin-bottom: 25px;
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 10px auto;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #278bff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Logo pulse animation */
.logo-pulse {
    animation: logo-pulse 1.5s ease-in-out infinite;
}

@keyframes logo-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Update fadeToWhite animation to make it fade to black, not transparent */
@keyframes fadeToWhite {
    0% { background-color: #000000; }
    100% { 
        background-color: #000000; /* Keep it solid black throughout */
        visibility: hidden;
        opacity: 0;
    }
}

.redirect-animation.fade-out {
    animation: fadeToWhite 0.8s forwards;
}

/* Loading dots animation */
.loading-dots:after {
    content: '.';
    animation: dots 2s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

/* Update the pink line above Developer cards to orange */
.team-card.dev {
    border-top: 5px solid #e6ade4; /* Orange color matching Developer role */
    background-color: #e6ade4;
}

/* Update the small lines above profile pictures to orange */
.team-card .team-icon {
    border-top: 5px solid #e6ade4; /* Orange color matching Developer role */
}

/* Ensure the team card background color is updated to #ff4000 */
.team-card {
    background-color: #e6ade4;
}