﻿/* cal5.css */
.cal5-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.cal5-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.cal5-description {
    max-width: 600px;
    margin: 0 auto 25px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-align: center;
    color: #495057;
    font-size: 16px;
    line-height: 1.5;
}

.cal5-button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

    .cal5-button-group button {
        padding: 12px 24px;
        border: 1px solid #0078d7;
        background-color: white;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.1s ease;
        font-size: 16px;
    }

        /* 마이너스 버튼 스타일 */
        .cal5-button-group button[data-amount^="-"] {
            border-color: #dc3545;
            color: #dc3545;
        }

            .cal5-button-group button[data-amount^="-"]:hover {
                background-color: #fff5f5;
            }

        /* 플러스 버튼 스타일 */
        .cal5-button-group button[data-amount^="1"] {
            border-color: #0078d7;
            color: #0078d7;
        }

            .cal5-button-group button[data-amount^="1"]:hover {
                background-color: #f0f7ff;
            }

    /* 초기화 버튼 스타일 */
    .cal5-button-group .cal5-reset-btn {
        border-color: #28a745;
        color: #28a745;
    }

        .cal5-button-group .cal5-reset-btn:hover {
            background-color: #f0fff4;
        }

.cal5-input-area {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin: 30px auto;
    max-width: 800px;
}

.cal5-input-field {
    text-align: center;
    width: 100%;
}

    .cal5-input-field label {
        display: block;
        margin-bottom: 8px;
        font-size: 16px;
        font-weight: 500;
        color: #333;
    }

    .cal5-input-field input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 5px;
        text-align: center;
        font-size: 16px;
        box-sizing: border-box;
        transition: all 0.2s ease;
    }

        .cal5-input-field input:focus {
            border-color: #0078d7;
            box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.2);
            outline: none;
        }

.cal5-calculate-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto;
    padding: 15px 30px;
    background-color: #0078d7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.1s ease;
}

    .cal5-calculate-btn:hover {
        background-color: #005bb5;
    }

.cal5-result-area {
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cal5-result-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.cal5-result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

    .cal5-result-item:last-child {
        border-bottom: none;
    }

    .cal5-result-item span:last-child {
        font-weight: 500;
        color: #0078d7;
    }

/* 공유 버튼 그룹 스타일 */
.cal5-share-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.cal5-excel-btn {
    padding: 12px 24px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.1s ease;
}

    .cal5-excel-btn:hover {
        background-color: #218838;
    }

.cal5-kakao-btn {
    padding: 12px 24px;
    background-color: #FEE500;
    color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.1s ease;
}

    .cal5-kakao-btn:hover {
        background-color: #E6CF00;
    }

    .cal5-kakao-btn::before {
        content: "";
        display: inline-block;
        width: 18px;
        height: 18px;
        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;
    }

/* Responsive styles */
@media screen and (max-width: 768px) {
    .cal5-content {
        padding: 15px;
    }

    .cal5-input-area {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 100%;
        margin: 20px auto;
    }

    .cal5-button-group {
        flex-wrap: wrap;
    }

        .cal5-button-group button {
            flex: 1;
            min-width: 120px;
        }

    .cal5-input-field input {
        padding: 15px;
        height: 50px;
        width: 100%;
    }

    .cal5-calculate-btn {
        width: 100%;
        max-width: none;
    }

    .cal5-description {
        margin: 0 10px 20px;
        padding: 12px 15px;
        font-size: 15px;
    }

    .cal5-share-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .cal5-excel-btn, .cal5-kakao-btn {
        width: 100%;
        margin: 5px 0;
    }
}
