/* Reset and basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.hidden {
    display: none;
}

/* Login container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.login-card h1 {
    font-size: 2rem;
    color: #2d3436;
    margin-bottom: 1rem;
}

.login-card input {
    width: 100%; /* 너비 100%로 설정 */
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 1rem;
}

.login-card button {
    width: 100%; /* 텍스트 상자와 너비 일치 */
    padding: 10px;
    background: #dfe6e9; /* 옅은 회색 */
    color: #2d3436; /* 어두운 텍스트 */
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.login-card button:hover {
    background: #b2bec3; /* 호버 시 더 진한 회색 */
}

.extra-links {
    margin-top: 1rem;
}

.extra-links a {
    font-size: 0.9rem;
    color: #6c5ce7;
    text-decoration: none;
}

.extra-links a:hover {
    text-decoration: underline;
}

/* Menu 스타일 추가 */
.menu-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.menu-container h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

.menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.menu-item {
    position: relative;
    display: inline-block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 160px;
}

.submenu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}

.submenu a:hover {
    background-color: #f0f0f0;
}

.menu-item:hover .submenu {
    display: block;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background-color: #6c5ce7;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.icon-circle i {
    font-size: 28px;
    color: #ffffff;
}

.menu-item p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* 사용자 정보 및 로그아웃 버튼 */
.user-info {
    display: flex;
    gap: 10px; /* 요소 간격 */
}

#user-details {
    font-size: 1rem;
    color: #333;
}

#logout-button {
    font-size: 1rem;
    background-color: #f1a1a1; /* 연한 빨간색 */
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

#logout-button:hover {
    background-color: #d94a4a; /* 호버 시 더 진한 빨간색 */
}

/* 데이터 입력 컨테이너 */
.input-container {
    max-width: 800px; /* 컨테이너 너비 제한 */
    margin: 0 auto; /* 가운데 정렬 */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 그림자 효과 */
    background-color: rgba(255, 255, 255, 0.8); /* 투명한 하얀색 배경 */
}

.input-container h1 {
    text-align: center; /* 제목 가운데 정렬 */
    font-size: 20px;
    margin-bottom: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4개의 열로 배치 */
    gap: 10px; /* 요소 간 간격 */
}

.grid-container input,
.grid-container select {
    width: 100%; /* 입력 필드의 너비를 열에 맞춤 */
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* 패딩 포함 크기 계산 */
}



#export-input {
    font-size: 1rem;
    padding: 10px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#add-button {
    font-size: 1rem;
    padding: 10px 20px;
    background-color: #6c5ce7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

#add-button:hover {
        background-color: #5b4dc4; /* 호버 시 더 어두운 보라색 */
    }

/* 데이터 테이블 */
.data-table-container {
    margin: 20px auto;
    text-align: center;
    width: 80%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

table th {
    background-color: #f1f1f1;
}

.round {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.round > * {
    display: flex;
    align-items: center;
    gap: 4px;
}


/* 기본 스타일 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* 페이지를 수직으로 배치 */
    align-items: center;
    background-color: #f9f9f9;
}

/* 상단 헤더: 사용자 정보와 로그아웃 버튼 */
.header {
    position: absolute; /* 상단 고정 */
    top: 10px;          /* 화면 상단으로 배치 */
    right: 20px;        /* 화면 오른쪽으로 배치 */
    display: flex;
    align-items: center;
    gap: 10px;          /* 사용자 정보와 버튼 간격 */
    z-index: 1000;
}

/* 데이터 테이블 컨테이너 */
.data-table-container {
    margin: 20px auto;
    text-align: center;
    width: 80%;
}

.data-table-container h2 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th,
table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

table th {
    background-color: #f1f1f1;
}