
* {
    box-sizing: border-box;
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
}

body {
    margin: 0;
    background: #f9fafb;
    color: #222;
    padding-bottom: 150px;
}

header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}

header button {
    width: fit-content;
    padding: 4px 6px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 12px;
    border: none;
    cursor: pointer;
}

header input {
    margin-left: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px;
    font-size: 14px;
    width: 150px;
}

.tabs {
    display: flex;
    margin: 12px;
    background: #f1f3f5;
    border-radius: 8px;
    overflow: hidden;
}

.tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.tab.active {
    background: #007bff;
    color: #fff;
}

section {
    padding: 0 16px;
    margin-top: 16px;
}

section h2 {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.time-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.time-btn:hover, 
.time-btn.active {
    border-color: #007bff;
    color: #007bff;
}

.time-btn.selected {
    background: #007bff;
    color: #fff;
    border: none;
}

.time-btn.disabled {
    background: #e9ecef;
    color: #aaa;
    cursor: not-allowed;
}

.footer-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
}

.footer-buttons button {
    width: 48%;
    padding: 14px 0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: #e9ecef;
    color: #333;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

/* 모바일 대응 */
@media (max-width: 420px) {
    header {
        font-size: 15px;
    }
    .time-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .tab {
        font-size: 14px;
    }
}


#sign-in {
    display: flex;
    gap: 4px;
}

#sign-in input {
    width: 70%;
}

#sign-in button {
    width: 30%;
    background: #007bff;
    color: #fff;
    flex: 1;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
}

#sign-in.none {
    display: none;
}

#sign {
    display: none;
}

#sign img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

#sign.active {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

#sign > div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .8rem;
}


.list-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    transition: 0.2s;
}

.list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.list-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
}

.profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-text {
    display: flex;
    flex-direction: column;
}

.time {
    font-weight: 600;
    font-size: 15px;
}

.userid {
    font-size: 13px;
    color: #777;
}

.btn-group {
    display: flex;
    gap: 8px;
}

.btn-group.change {
    display: none;
}

.btn-group.change.active {
    display: flex;
}

.btn-small {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
}

.btn-edit {
    background: #e9f3ff;
    color: #007bff;
}

.btn-cancel {
    background: #ffecec;
    color: #d93025;
}

#type1 {
    display: none;
}