body{
    background-color: #111927;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* 배경 도형이 넘치지 않도록 설정 */
    z-index: -1; /* 배경 도형을 가장 뒤로 */
}

/* 긴 직사각형 도형 */
.line {
    position: absolute;
    width: 500px; /* 긴 직사각형 */
    height: 30px;
    border-radius: 50px;
    background-color: rgb(101, 73, 22);
    transform: rotate(45deg);
    opacity: 0.4;
    animation: move 20s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

/* 원형 도형 */
.circle {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%; /* 원형으로 만들기 */
    background-color: rgba(239, 149, 93, 0.5); /* 반투명 파란색 */
    opacity: 0.6;
    animation: move 25s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

/* 45도 대각선 이동 애니메이션 */
@keyframes move {
    0% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(20px, 20px) rotate(45deg); }
    100% { transform: translate(0, 0) rotate(45deg); }
}


.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.card {
    opacity: 0;
    width: 270px;
    height: 160px;
    background-color: #131D2B;
    border: 2px solid #ffffff36;
    transform: translateY(50px);
    animation: fadeIn 0.5s ease forwards;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Flexbox로 정렬 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.card:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.card-title {
    color: #FFFFFF;
}

.card-text {
    color: #A4B1CD;
}

/* nav */
.navbar-custom {
    opacity: 0.9;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #111927 !important;
    border-bottom: 2px solid #ffffff36;
}

.navbar-brand-custom {
    background-image: url('/static/image/orange.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    display: block;
    text-indent: -9999px;
}

.dropdown-menu-custom {
    margin-top: 5px;
    background-color: #111927;
    color: white;
    border: 1px solid #ffffff36;
    left: auto;
    right: 0;
    top: 100%;
}

.dropdown-item-custom {
    color: white;
}

.dropdown-item-danger {
    color: #dc3545;
}

/* 접힌 상태의 네비게이션 바 (완전히 숨김) */
.navbar-collapsed {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0;
}

/* 확장된 상태의 네비게이션 바 (기본 상태) */
.navbar-expanded {
    height: 80px; /* 기본 높이 */
    opacity: 1;
    transition: height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 1rem 1rem;
}



/* profile */


.profile-container {
    opacity: 0.9;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ffffff36;
    border-radius: 8px;
    background-color: #111927;
    color: white;
}

.profile-container h2 {
    margin-bottom: 20px;
}

.profile-container a {
    color: #fff;
    text-decoration: underline;
}

/* login */
.login-container {
    background-color: #131D2B;
    opacity: 0.9;
    border-radius: 20px;
    width: 50%;
    height: 60%;
    border: 2px solid #ffffff36;

    /* Flexbox로 정렬 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* register */

.btn-orange {
    background-color: #192332;
    border: 2px solid #ffffff36;
    color: #FFFFFF;
}

.form-label {
    color: #FFFFFF;
}

.register-container {
    background-color: #131D2B;
    opacity: 0.9;
    border-radius: 20px;
    width: 50%;
    height: 60%;
    border: 2px solid #ffffff36;

    /* Flexbox로 정렬 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vh-100-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* file.upload */
#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    color: #111927;
    text-align: center;
    padding-top: 20%;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    margin-top: 20px;
}

@keyframes blink1 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes blink2 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.dot1 {
    animation: blink1 2s infinite;
}

.dot2 {
    animation: blink2 1s infinite;
}

.container-custom.container{
    background-color: #131D2B;
    opacity: 0.9;
    border-radius: 10px;
    border: 2px solid #ffffff36;
    margin-bottom: 30px;
    margin-top: 40px;
    padding: 2rem 2.5rem;
}

.file-list-item {
    background-color: #162231;
    border: 2px solid #ffffff36;
    color: white;
}

/* audit */
/* upload */
.container-custom-audit {
    background-color: #131D2B;
    opacity: 0.9;
    border-radius: 20px;
    width: 50%;
    height: 60%;
    border: 2px solid #ffffff36;
    padding: 2rem;
    margin-top: 50px;
}

.exclamation {
    color: white;
    animation: colorChange 1s infinite alternate;
}

@keyframes colorChange {
    0% {
        color: red;
    }
    100% {
        color: white;
    }
}

/* tree */
/* styles.css */
.container-custom-tree {
    background-color: #131D2B;
    opacity: 0.9;
    border-radius: 20px;
    width: 50%;
    height: 60%;
    border: 2px solid #ffffff36;
    padding: 2rem;
    margin-top: 2rem;
}

.text-white {
    color: #FFFFFF;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}


/* gpt */
/* styles.css */
.container-custom-result {
    background-color: #131D2B;
    opacity: 0.9;
    border-radius: 20px;
    width: 50%;
    height: 60%;
    border: 2px solid #ffffff36;
    padding: 2rem;
    margin-top: 2rem;
}

.text-white {
    color: #FFFFFF;
}

.btn-orange {
    background-color: #192332 !important;
    border: 2px solid #ffffff36 !important;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.pre-wrap {
    white-space: pre-wrap;
    word-wrap: break-word;
}
