/* ===== 기본 ===== */
*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:#ffffff; /* 전체 배경 흰색 */
    font-family:"Noto Sans KR", Arial, sans-serif;
    color:#111827;
}

/* ===== 레이아웃 ===== */
.container{
    max-width:1100px;
    margin:40px auto;
    background:#ffffff;
    border-radius:14px;
    padding:30px;
    box-shadow:0 6px 24px rgba(0,0,0,0.08);
}

h1{
    margin:0 0 20px;
    font-size:28px;
    font-weight:700;
}

/* ===== 입력 / 버튼 ===== */
input, select{
    padding:8px 10px;
    border:1px solid #d1d5db;
    border-radius:8px;
    font-size:14px;
    outline:none;
}

input:focus, select:focus{
    border-color:#3b82f6;
}

button{
    padding:6px 14px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
    font-size:14px;
}

.btn-blue{
    background:#3b82f6;
    color:#ffffff;
}

.btn-gray{
    background:#e5e7eb;
    color:#111827;
}

.btn-red{
    background:#ef4444;
    color:#ffffff;
}

button:hover{
    opacity:0.9;
}

/* ===== 추가 영역 ===== */
.add-team,
.add-player,
.add-item{
    display:flex;
    gap:6px;
    margin-bottom:12px;
}

/* ===== 팀 ===== */
.team{
    border:1px solid #e5e7eb;
    border-radius:14px;
    margin-top:16px;
    overflow:hidden;
}

.team-header{
    padding:14px 18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
    background:#ffffff;
}

.team-header:hover{
    background:#f9fafb;
}

.team-body{
    padding:18px;
    background:#f9fafb;
}

/* ===== 선수 ===== */
.player{
    border:1px solid #e5e7eb;
    border-radius:12px;
    margin-top:10px;
    background:#ffffff;
    overflow:hidden;
}

.player-header{
    padding:12px 14px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
}

.player-header:hover{
    background:#f9fafb;
}

.player-body{
    padding:14px;
    background:#f9fafb;
}

/* ===== 화살표 ===== */
.arrow{
    margin-right:6px;
    color:#6b7280;
    font-size:13px;
}

/* ===== 항목 ===== */
.item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:8px;
    padding:8px 10px;
    margin-top:6px;
}

/* ===== 모달 ===== */
.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.4);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:1000;
}

.hidden{
    display:none;
}

.modal-box{
    background:#ffffff;
    padding:24px;
    border-radius:14px;
    width:320px;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
}

.modal-box h3{
    margin-top:0;
    margin-bottom:12px;
}

.modal-box input{
    width:100%;
    margin-bottom:14px;
}

.modal-btns{
    display:flex;
    justify-content:flex-end;
    gap:8px;
}
