* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard-Light';
    letter-spacing: 0.03em
}

body {
    background-color: #fff;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

a:not(.terms) {
    text-decoration: none;
    color: #fff;
}

.layout {
    display: flex;
    width: 100%;
}



.login-modal-backdrop,
.card-modal-backdrop,
.dino-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.7), rgba(30, 30, 30, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.modal {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    width: 600px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    animation: scaleUp 0.3s ease-out;
}

.dino-modal {
    width: auto;
}

iframe {
    margin-top: 1rem;
    width: 50vw;
    height: 15vw;
}

.dino-modal button {
    background-color: #3b82f6;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dino-modal span {
    font-size: 1.1rem;
}

.dino-modal button {
    background-color: #3b82f6;
    color: #fff;
    border: none;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-left: 0.5rem;
    transform: translateY(-2px);
}

.dino-modal button:hover {
    background-color: #3366cc;
}

.dino-modal div {
    font-size: 1.4rem;
    font-weight: 600;
    color: #444;
}



.login-modal p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
}

.login-modal .logo {
    width: 200px;
    margin-bottom: 1rem;
}

.login-modal span {
    font-size: 0.7rem;
}



.social-login {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.7rem;
    margin-bottom: 1rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    background-color: #f9f9f9;
    color: #333;
    border: 1px solid #ccc;
    transition: all 0.2s ease-in-out;
}

.social-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.social-login img {
    width: 22px;
    height: 22px;
}



.card {
    background-color: #eee;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin: 50px 100px;
    margin-top: 30px;
}

.card img {
    width: 200px;
    margin: 86.5px 50px;
}

.card-modal-backdrop div div {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.card-modal-backdrop div a button {
    font-size: 1.1rem;

    padding: 1rem 3rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 25px;
}


.card-modal-backdrop div a button:hover {
    background-color: #2563eb;
}



.hidden {
    display: none;
}

/* 애니메이션 효과 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}






/* ===== 왼쪽 사이드바 ===== */
.sidebar {
    width: 260px;
    height: 100vh;
    background-color: #f9fbff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dbe4ff;
    display: flex;
    gap: 2rem;
}

.logo {
    gap: 0.5rem;
}

.logo img {
    height: 40px;
}


.balance-section {
    background-color: #eef4ff;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
}

.balance-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.balance-amount {
    font-size: 1.4rem;
    font-weight: bold;
    color: #3366cc;
    margin-bottom: 0.6rem;
}

.charge-btn {
    background-color: #3366ff;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.charge-btn:hover {
    background-color: #2b5edb;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* 인스턴스 섹션 제목 */
.sidebar span {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: -1rem;
    display: block;
}

/* 인스턴스 버튼 스타일 */
.sidebar-menu button,
.sidebar-menu a {
    display: flex;
    align-items: center;
    /* 세로 정렬 중앙 */
    gap: 0.5rem;
    padding: 0.4rem 0.2rem;
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    border-radius: 0.4rem;
    overflow: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-menu button img,
.sidebar-menu a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}

.sidebar-menu button:hover,
.sidebar-menu a:hover {
    color: #3366cc;
    background-color: #f0f4ff;
}






/* ===== 메인 콘텐츠 ===== */
.main-content {
    flex-grow: 1;
    padding: 1.5rem 2rem;
}

.header {
    display: flex;
    justify-content: space-between;
    /* 좌우 정렬 */
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: #c2d4ff solid 1px;
}

/* 완쪽 정렬된 부분 */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* 인스턴스 텍스트 */
.header h2 {
    font-size: 1.4rem;
    color: #333;
    margin-right: 1rem;
    font-weight: bold;
}

/* 오른쪽 정렬된 부분 */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 30px;
    height: 30px;
    margin: 5px;
    border-radius: 50%;
    object-fit: cover;
}

.username {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    line-height: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
}



/********************** 메인 **********************/

.form-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    overflow-y: auto !important;
    height: calc(100vh - 120px);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"] {
    padding: 0.6rem;
    border: 1px solid #c2d4ff;
    border-radius: 0.5rem;
    font-size: 1rem;
    width: 500px;
    outline: none;
    /* 기본 아웃라인 제거 */
    transition: all 0.2s ease;
    /* 부드럽게 변하게 */
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="password"]:focus {
    border-color: #7aa5ff;
    /* 포커스 시 테두리 색 변경 */
    box-shadow: 0 0 5px rgba(122, 165, 255, 0.6);
    /* 부드러운 그림자 추가 */
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.custom-radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    margin-right: 1.2rem;
}

.custom-radio input[type="radio"] {
    display: none;
    /* 기본 radio 숨김 */
}

.custom-radio .radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #7aa5ff;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.custom-radio input[type="radio"]:checked+.radio-mark {
    background-color: #7aa5ff;
    box-shadow: inset 0 0 0 4px white;
    /* 가운데 하얀 점 */
}


label {
    font-size: 1.2rem;
    /* 글자 크기도 키워줌 */
    display: inline-flex;
    align-items: center;
    margin-right: 16px;
}

.width {
    float: left;
    margin-right: 3rem;
}


.form-actions {
    display: flex;
    margin-top: 1rem;
}

.password-wrapper {
    position: relative;
    width: 500px;
}

.password-wrapper input {
    width: 100%;
    padding-right: 4rem;
    /* 버튼 공간 확보 */
}

.toggle-password {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #3b82f6;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
}

.gib {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #3b82f6;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
}

.strength {
    margin-top: 5px;
    margin-left: 5px;
    font-size: 0.85rem;
    font-weight: bold;
}

.strength.weak {
    color: #ef4444;
    /* 빨강 */
}

.strength.medium {
    color: #f59e0b;
    /* 주황 */
}

.strength.strong {
    color: #10b981;
    /* 초록 */
}

.custom-select {
    appearance: none;
    /* 기본 브라우저 스타일 제거 */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #c2d4ff;
    border-radius: 0.5rem;
    padding: 0.6rem 2.5rem 0.6rem 0.8rem;
    font-size: 1rem;
    width: 250px;
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="none" stroke="%237aa5ff" stroke-width="2" d="M1 1l5 5 5-5"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 12px 8px;
    transition: border-color 0.2s ease;
}

.custom-select:focus {
    border-color: #7aa5ff;
    box-shadow: 0 0 5px rgba(122, 165, 255, 0.6);
    outline: none;
}



.form-actions button {
    padding: 0.7rem 1.5rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 2rem;
}

.form-actions button:hover {
    background-color: #2563eb;
}








@media (max-width: 768px) {
    .sidebar {
        width: 70vw;
        height: 100vh;
        background-color: #ecf1ff;
        z-index: 999999999999;
        position: fixed;
        left: -75vw;

        transition: 0.4s;
    }

    .sidebar-backdrop {
        position: fixed;
        width: 100vw;
        height: 100vh;
        background-color: black;
        opacity: 0.5;
        z-index: 99999;
    }

    .header {
        margin-bottom: 0;
    }

    .main-content {
        width: 100vw;
    }

    .container {
        width: 100%;
        margin-left: 0;
        margin-bottom: 50px;
    }

    label {
        margin-top: 2rem;
    }

    .custom-radio {
        margin-top: 6px;
    }

    .form-section {
        gap: 0;
    }

    .width br {
        display: none;
    }


    .password-wrapper {
        width: calc(100vw - 64px) !important;
    }

    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group input[type="password"] {
        width: calc(100vw - 64px);
    }

    .width {
        float: none;
        margin-right: 0;
    }

    .gib {
        right: 0.8rem;
    }

    .form-actions button {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .card {
        width: calc(85vw - 100px);
        height: calc(85vw - 100px);
        margin: 50px 10px;
        margin-top: 30px;
    }

    .card img {
        width: calc(85vw - 180px);
        margin: calc((85vw - 100px) / 2) 40px;
        transform: translateY(-50%);
    }

    .modal {
        width: 85vw;
    }
}







@font-face {
    font-family: 'Pretendard-Light';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Light.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}