﻿@media screen and (max-width: 480px) {
    .cal8-content {
        padding: 5px;
    }

    .cal8-section {
        padding: 10px;
        margin: 10px 0;
    }

    .cal8-table th {
        font-size: 12px;
    }

    .cal8-input {
        padding: 5px;
        font-size: 12px;
    }

    .cal8-input-field label {
        font-size: 12px;
    }

    .cal8-total-row span:first-child {
        font-size: 12px;
    }

    .cal8-total-row span:last-child {
        font-size: 14px;
    }

    .description {
        font-size: 12px;
    }

        .description span {
            font-size: 11px !important;
        }
}
/* cal8.css - 결혼식 하객 손익 계산기 전용 스타일 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    text-align: center;
}

.cal8-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

/* 섹션 스타일 */
.cal8-section {
    margin: 15px 0;
    padding: 15px;
    border-radius: 5px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

    .cal8-section h2 {
        font-size: 16px;
        color: #0078d7;
        margin-bottom: 12px;
        border-bottom: 1px solid #eee;
        padding-bottom: 6px;
    }

/* 테이블 스타일 */
.cal8-table-wrapper {
    overflow-x: auto;
}

.cal8-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .cal8-table th {
        background-color: #f5f5f5;
        padding: 8px;
        text-align: left;
        font-weight: normal;
        color: #666;
        border-bottom: 1px solid #ddd;
    }

    .cal8-table td {
        padding: 6px;
        border-bottom: 1px solid #eee;
    }

.cal8-total-row {
    background-color: #f5f5f5;
    font-weight: bold;
}

    .cal8-total-row td {
        padding: 8px;
        border-top: 2px solid #ddd;
    }

        .cal8-total-row td:last-child {
            text-align: right;
        }

/* 입력 필드 스타일 */
.cal8-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.cal8-input-field {
    margin-bottom: 12px;
}

    .cal8-input-field label {
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
        color: #666;
    }

.cal8-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cal8-grid-4col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

/* cal8.css - 결혼식 하객 손익 계산기 전용 스타일 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    text-align: center;
}

.cal8-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

/* 섹션 스타일 */
.cal8-section {
    margin: 15px 0;
    padding: 15px;
    border-radius: 5px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.cal8-section-title {
    font-size: 16px;
    color: #0078d7;
    margin-bottom: 12px;
    border-bottom: 1px solid #d0e5ff;
    padding-bottom: 6px;
}

/* 테이블 스타일 */
.cal8-table-wrapper {
    overflow-x: auto;
}

.cal8-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .cal8-table .cal8-header-row {
        background-color: #f0f7ff;
    }

        .cal8-table .cal8-header-row th {
            color: #0078d7;
            font-weight: 600;
            padding: 10px 8px;
            border-bottom: 2px solid #d0e5ff;
            text-align: left;
        }

    .cal8-table td {
        padding: 6px;
        border-bottom: 1px solid #eee;
    }

/* 입력 필드 스타일 */
.cal8-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

    .cal8-input:focus {
        border-color: #0078d7;
        outline: none;
        box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.2);
    }

.cal8-input-field {
    margin-bottom: 12px;
}

    .cal8-input-field label {
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
        color: #666;
    }

.cal8-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cal8-grid-4col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

/* 합계 박스 스타일 */
.cal8-total-box {
    background-color: #f0f7ff;
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cal8-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

    .cal8-total-row span:first-child {
        font-weight: 600;
        color: #0078d7;
    }

    .cal8-total-row span:last-child {
        font-weight: 700;
        font-size: 16px;
        color: #333;
    }

/* 결과 영역 스타일 */
.cal8-result-area {
    margin: 15px 0;
    padding: 15px;
    border-radius: 5px;
    background: #f0f7ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.cal8-ratio-section {
    background: white;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

    .cal8-ratio-section h3 {
        font-size: 15px;
        color: #0078d7;
        margin-bottom: 12px;
        text-align: left;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }

.cal8-result-card {
    background: white;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cal8-result-box {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 8px;
}

.cal8-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.cal8-value {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.cal8-green {
    color: #28a745;
}

.cal8-red {
    color: #dc3545;
}

/* 공유 버튼 그룹 스타일 */
.cal8-share-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Excel 버튼 스타일 */
.cal8-excel-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.1s ease;
    white-space: nowrap;
}

    .cal8-excel-btn:hover {
        background-color: #218838;
    }

/* 카카오톡 공유 버튼 스타일 */
.cal8-kakao-btn {
    background-color: #FEE500;
    color: #000000;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

    .cal8-kakao-btn:hover {
        background-color: #E6CF00;
    }

    .cal8-kakao-btn::before {
        content: "";
        display: inline-block;
        width: 16px;
        height: 16px;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 208 191"><path fill="black" d="M104,0C46.56,0,0,36.71,0,82c0,29.28,19.47,55,48.75,69.48-1.59,5.49-10.24,35.34-10.58,37.69,0,0-.21,1.76.93,2.43a3.14,3.14,0,0,0,2.48.15c3.28-.46,38.21-25.57,44.09-29.86,6,.67,12.09,1.06,18.33,1.06,57.44,0,104-36.71,104-82S161.44,0,104,0Z"/></svg>');
        background-repeat: no-repeat;
        background-size: contain;
        margin-right: 5px;
    }

/* 반응형 스타일 */
@media screen and (max-width: 768px) {
    .header h1 {
        font-size: 18px;
    }

    .cal8-content {
        padding: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cal8-section {
        padding: 12px;
        margin: 12px 0;
    }

    .cal8-section-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .cal8-grid-2col {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cal8-grid-4col {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .cal8-share-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .cal8-excel-btn, .cal8-kakao-btn {
        width: 100%;
        max-width: 200px;
        margin: 4px 0;
        font-size: 13px;
    }

    .cal8-input {
        padding: 6px;
        font-size: 13px;
    }

    .cal8-table {
        font-size: 13px;
    }

        .cal8-table th, .cal8-table td {
            padding: 5px;
        }

    .cal8-value {
        font-size: 16px;
    }

    .cal8-label {
        font-size: 12px;
    }

    .cal8-ratio-section {
        padding: 10px;
    }

    .cal8-result-card {
        padding: 10px;
    }
}

/* 계산하기 버튼 스타일 */
.cal8-calculate-button-wrapper {
    text-align: center;
    margin: 20px 0;
}

.cal8-calculate-btn {
    background-color: #0078d7;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .cal8-calculate-btn:hover {
        background-color: #005a9e;
    }

    .cal8-calculate-btn:active {
        background-color: #004275;
        transform: translateY(1px);
    }

@media screen and (max-width: 768px) {
    .cal8-calculate-btn {
        padding: 10px 25px;
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .cal8-calculate-btn {
        padding: 8px 20px;
        font-size: 14px;
        width: 80%;
    }
}

/* 결과 영역 스타일 */
.cal8-result-area {
    margin: 15px 0;
    padding: 15px;
    border-radius: 5px;
    background: #f0f7ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

    .cal8-result-area h2 {
        font-size: 18px;
        color: #0078d7;
        margin-bottom: 12px;
        border-bottom: 1px solid #d0e5ff;
        padding-bottom: 8px;
    }

.cal8-ratio-section {
    background: white;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

    .cal8-ratio-section h3 {
        font-size: 15px;
        color: #0078d7;
        margin-bottom: 12px;
    }

.cal8-result-card {
    background: white;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cal8-result-box {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 8px;
}

.cal8-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.cal8-value {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.cal8-green {
    color: #28a745;
}

.cal8-red {
    color: #dc3545;
}

/* 공유 버튼 그룹 스타일 */
.cal8-share-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Excel 버튼 스타일 */
.cal8-excel-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.1s ease;
    white-space: nowrap;
}

    .cal8-excel-btn:hover {
        background-color: #218838;
    }

/* 카카오톡 공유 버튼 스타일 */
.cal8-kakao-btn {
    background-color: #FEE500;
    color: #000000;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

    .cal8-kakao-btn:hover {
        background-color: #E6CF00;
    }

    .cal8-kakao-btn::before {
        content: "";
        display: inline-block;
        width: 16px;
        height: 16px;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 208 191"><path fill="black" d="M104,0C46.56,0,0,36.71,0,82c0,29.28,19.47,55,48.75,69.48-1.59,5.49-10.24,35.34-10.58,37.69,0,0-.21,1.76.93,2.43a3.14,3.14,0,0,0,2.48.15c3.28-.46,38.21-25.57,44.09-29.86,6,.67,12.09,1.06,18.33,1.06,57.44,0,104-36.71,104-82S161.44,0,104,0Z"/></svg>');
        background-repeat: no-repeat;
        background-size: contain;
        margin-right: 5px;
    }

/* 반응형 스타일 */
@media screen and (max-width: 768px) {
    .header h1 {
        font-size: 20px;
    }

    .cal8-content {
        padding: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cal8-section {
        padding: 12px;
        margin: 12px 0;
    }

        .cal8-section h2 {
            font-size: 15px;
        }

    .cal8-grid-2col {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cal8-grid-4col {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .cal8-share-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .cal8-excel-btn, .cal8-kakao-btn {
        width: 100%;
        max-width: 200px;
        margin: 4px 0;
        font-size: 13px;
    }

    .cal8-input {
        padding: 6px;
        font-size: 13px;
    }

    .cal8-table {
        font-size: 13px;
    }

        .cal8-table th, .cal8-table td {
            padding: 5px;
        }

    .cal8-value {
        font-size: 16px;
    }

    .cal8-label {
        font-size: 12px;
    }

    .cal8-ratio-section {
        padding: 10px;
    }

    .cal8-result-card {
        padding: 10px;
    }

    .cal8-result-area h2 {
        font-size: 16px;
    }
}
