
/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #101827;
    color: #ffffff;
    min-height: 100vh;
    padding: 30px 15px;
}

/* 전체 화면 */
.container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

/* 상단 제목 */
.header {
    text-align: center;
    margin-bottom: 35px;
}

.header h1 {
    color: #39d98a;
    font-size: 32px;
    margin-bottom: 8px;
}

.header p {
    color: #aab4c3;
    font-size: 15px;
}

/* 입력 영역 */
.input-section,
.list-section {
    background-color: #1c293b;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

h2 {
    font-size: 20px;
    margin-bottom: 22px;
    color: #ffffff;
}

/* 입력 항목 */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

.form-group input:not([type="checkbox"]),
.form-group select {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 1px solid #39485e;
    border-radius: 8px;
    background-color: #101827;
    color: #ffffff;
    font-size: 15px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #39d98a;
}

/* 상체 / 하체 체크박스 */
.body-part-options {
    display: flex;
    align-items: center;
    gap: 25px;
}

.body-part-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 14px;
}

.body-part-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    accent-color: #39d98a;
    cursor: pointer;
    flex-shrink: 0;
}

/* 추가 버튼 */
.add-button {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background-color: #39d98a;
    color: #10251c;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-button:hover {
    background-color: #26bd75;
}

/* 운동 내역 영역 */
.workout-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-message {
    text-align: center;
    color: #8491a5;
    padding: 30px 10px;
    font-size: 14px;
}

/* 운동 내역 한 줄 */
.workout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #101827;
    border: 1px solid #303e52;
    border-radius: 10px;
    cursor: grab;
    user-select: none;
}

.workout-item:active {
    cursor: grabbing;
}

/* 드래그 중인 내역 */
.workout-item.dragging {
    opacity: 0.4;
    border: 1px dashed #39d98a;
}

.workout-date {
    color: #aab4c3;
    font-size: 13px;
    margin-bottom: 6px;
}

.workout-type {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

/* 오른쪽 시간과 삭제 버튼 */
.workout-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.workout-time {
    color: #39d98a;
    font-weight: bold;
    white-space: nowrap;
}

/* 삭제 버튼 */
.delete-button {
    border: none;
    border-radius: 6px;
    padding: 7px 11px;
    background-color: #e05252;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.delete-button:hover {
    background-color: #c93636;
}

/* 모바일 화면 */
@media (max-width: 480px) {
    body {
        padding: 20px 12px;
    }

    .header h1 {
        font-size: 27px;
    }

    .input-section,
    .list-section {
        padding: 20px 16px;
    }

    .workout-item {
        padding: 12px;
    }

    .workout-actions {
        gap: 7px;
    }

    .delete-button {
        padding: 7px 8px;
    }
}
