/* 파일경로: /tc-calculate/css/simple-tc.css */
/* 파일이름: simple-tc.css */

/* 간편모드 TC 스타일 */
.container {
    max-width: 450px;
    margin: 0 auto;
    min-height: calc(100vh - 160px);
    background-color: #131217;
    padding-bottom: 80px;
}

/* 모드 선택 탭 */
.mode-tabs {
    display: flex;
    border-bottom: 1px solid #333333;
    margin-bottom: 30px;
}

.mode-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    color: #666666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.mode-tab.active {
    color: #ffffff;
}

.mode-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ffffff;
}

/* 반티완티 안내 박스 */
.intro-box {
    border-radius: 10px;
    background: #29262F;
    padding: 20px;
    margin: 0 16px 20px 16px;
}

.intro-title {
    color: #FFF;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.intro-text {
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* TC 기준 설정 */
.tc-settings {
    padding: 16px;
}

.setting-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: space-between;
}

.setting-label {
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
    max-width: 100px;
    line-height: 1.4;
    text-align: left;
    padding-right: 10px;
}

.setting-controls {
    display: flex;
    align-items: center;
}

.sub-label {
    font-size: 12px;
    color: #999;
}

.setting-btn {
    width: 130px;
    height: 45px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-btn:first-of-type {
    margin-right: 26px;
}

.setting-btn.active {
    background: transparent;
    border: 1px solid #5C82FF;
    color: #5C82FF;
}

.setting-input {
    width: 130px;
    height: 45px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #FFF;
    font-size: 14px;
    padding: 0 16px;
    text-align: center;
}

.setting-input::placeholder {
    color: #666;
}

.separator {
    color: #666;
    font-size: 16px;
    margin: 0 8px;
}

.save-btn {
    width: 100%;
    height: 50px;
    background: #5C82FF;
    border: none;
    border-radius: 8px;
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 구분선 */
.divider-bar {
    height: 1px;
    background: #333333;
    margin: 20px 16px;
}

/* 시간 계산 섹션 */
.time-calc-section {
    padding: 16px;
}

.time-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.store-input {
    width: 120px;
    height: 45px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #FFF;
    font-size: 16px !important;
    padding: 0 12px;
}

.store-input::placeholder {
    color: #666;
    font-size: 12px;
}

/* 커스텀 타임 피커 */
.custom-time-picker {
    flex: 1;
    position: relative;
}

.time-display {
    width: 100%;
    height: 45px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #FFF;
    font-size: 14px;
    padding: 0 16px;
    text-align: center;
    cursor: pointer;
}

.time-display:focus {
    outline: none;
    border-color: #5C82FF;
}

.time-picker-dropdown {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2a2a2a;
    border: 1px solid #5C82FF;
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    width: 90%;
    max-width: 400px;
}

.custom-time-picker.active .time-picker-dropdown {
    display: block;
}

/* 팝업 오버레이 */
.time-picker-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.custom-time-picker.active .time-picker-overlay {
    display: block;
}

.time-picker-header {
    padding: 12px;
    text-align: center;
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #3a3a3a;
}

.time-picker-content {
    display: flex;
}

.time-column {
    flex: 1;
    border-right: 1px solid #3a3a3a;
}

.time-column:last-child {
    border-right: none;
}

.column-header {
    padding: 8px;
    text-align: center;
    color: #999;
    font-size: 12px;
    background: #1a1a1a;
}

.time-options {
    max-height: 200px;
    overflow-y: auto;
}

.time-option {
    padding: 10px;
    text-align: center;
    color: #FFF;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-option:hover {
    background: #3a3a3a;
}

.time-option.selected {
    background: #5C82FF;
    color: #FFF;
}

/* 스크롤바 스타일 */
.time-options::-webkit-scrollbar {
    width: 4px;
}

.time-options::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.time-options::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 2px;
}

.time-separator {
    color: #666;
    font-size: 16px;
    padding: 0 4px;
}

.calc-btn {
    width: 100%;
    height: 50px;
    background: #5C82FF;
    border: none;
    border-radius: 8px;
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* 계산 결과 카드 - Pro모드와 동일한 스타일 */
.result-cards-container {
    margin: 0 16px;
}

.result-card {
    background: #1E1E1E;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

/* 결과 아이템 컨테이너 */
.result-items-container {
    padding: 0;
}

/* 결과 아이템 */
.result-item {
    padding: 16px;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    position: relative;
}

/* 결과 아이템 헤더 */
.result-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.result-item-info {
    flex: 1;
}

.result-item-number {
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
}

.result-item-store {
    color: #999;
    font-size: 14px;
    font-weight: 700;
}

.result-divider-text {
    color: #999;
    font-size: 14px;
    font-weight: 700;
}

.result-item-date {
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    margin-top: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-item-date svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.delete-item-btn {
    background: none;
    border: none;
    color: #FFF;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-item-btn:hover {
    color: #5C82FF;
}

.result-item-time {
    color: #5C82FF;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-item-counts {
    display: flex;
    gap: 20px;
}

.result-count {
    color: #FFF;
    font-size: 13px;
}

.result-count span {
    font-weight: 600;
}

/* 카운트 입력 필드 */
.count-input {
    width: 50px;
    height: 28px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 0 4px;
    margin: 0 4px;
}

.count-input:focus {
    outline: none;
    border-color: #5C82FF;
}

/* 숫자 입력 스피너 제거 */
.count-input::-webkit-inner-spin-button,
.count-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.count-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* 옵션 추가 스타일 */
.result-item-options {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.option-checkbox input[type="checkbox"] {
    display: none;
}

.option-checkbox .checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    background: #2a2a2a;
    position: relative;
    transition: all 0.3s ease;
}

.option-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: #5C82FF;
    border-color: #5C82FF;
}

.option-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: #FFF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

.option-checkbox span {
    color: #999;
    font-size: 13px;
    user-select: none;
}

.option-checkbox input[type="checkbox"]:checked ~ span {
    color: #FFF;
}

/* 총 개수 표시 박스 */
.result-summary-box {
    background: #2a2a2a;
    padding: 12px 16px;
    margin: 16px 0 0 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #575757;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.summary-label {
    color: #999;
    font-size: 11px;
    font-weight: 500;
}

.summary-value {
    color: #FFF;
    font-size: 14px;
    font-weight: 700;
}

/* 결과 카드 버튼 컨테이너 */
.result-card-buttons {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #575757;
}

.card-btn {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-all-btn {
    background: #2a2a2a;
    color: #999;
}

.reset-all-btn:hover {
    background: #3a3a3a;
    color: #FFF;
}

.share-all-btn {
    background: #5C82FF;
    color: #FFF;
}


.save-result-btn {
    background: #5C82FF;
    color: #FFF;
}


/* divider 스타일 */
.result-divider {
    height: 1px;
    background: #575757;
    margin: 0 16px;
    position: relative;
}

/* 왼쪽 삼각형 (오른쪽을 향함) */
.result-divider::before {
    content: '';
    position: absolute;
    left: -16px;
    top: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #090909;
}

/* 오른쪽 삼각형 (왼쪽을 향함) */
.result-divider::after {
    content: '';
    position: absolute;
    right: -16px;
    top: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 12px 8px 0;
    border-color: transparent #090909 transparent transparent;
}

/* 공유 옵션 모달 */
.share-options-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.share-options-content {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 320px;
}

.share-options-content h3 {
    color: #FFF;
    font-size: 18px;
    margin: 0 0 20px 0;
    text-align: center;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.share-option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: #3a3a3a;
    border: none;
    border-radius: 8px;
    color: #FFF;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-option-btn:hover {
    background: #4a4a4a;
}

.share-option-btn span {
    font-size: 20px;
}

.close-modal-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #666;
    border-radius: 8px;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    border-color: #999;
    color: #FFF;
}