/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 480px;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

/* Receipt Effect */
.receipt-container {
    background-color: #fff;
    padding: 20px;
    position: relative;
}

.receipt-container::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: radial-gradient(circle, transparent, transparent 50%, #fff 50%, #fff 100%) -7px -8px / 16px 16px repeat-x;
}

.receipt-container::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: radial-gradient(circle, transparent, transparent 50%, #fff 50%, #fff 100%) -7px -2px / 16px 16px repeat-x;
    transform: rotate(180deg);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 20px;
}

.main-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    color: #666;
    font-family: 'Courier New', Courier, monospace;
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Courier New', Courier, monospace;
    text-align: right;
}

.input-group input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.btn-calculate {
    width: 100%;
    padding: 15px;
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-calculate:hover {
    background-color: #333;
}

/* Result Section */
.result-section {
    display: none;
    border-top: 2px dashed #ccc;
    padding-top: 20px;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
}

.result-header h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.value-display {
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.value-display .label {
    font-size: 0.9rem;
    color: #666;
}

.value-display .amount {
    font-size: 1.2rem;
    font-weight: 700;
}

.value-display.highlight .amount {
    color: #e53935;
    /* Red for seconds */
}

.toilet-time {
    background-color: #f1f8e9;
    border: 1px dashed #8bc34a;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.toilet-time i {
    font-size: 1.5rem;
    color: #4caf50;
    margin-bottom: 5px;
    display: block;
}

.toilet-time p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.toilet-time strong {
    color: #2e7d32;
    font-size: 1.1rem;
}

/* Item List */
.item-list {
    margin-top: 30px;
}

.item-card {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dotted #ddd;
}

.item-card:last-child {
    border-bottom: none;
}

.item-icon {
    width: 40px;
    height: 40px;
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: #555;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.item-price {
    font-size: 0.8rem;
    color: #888;
    font-family: 'Courier New', Courier, monospace;
}

.item-work-time {
    text-align: right;
    font-size: 0.95rem;
    font-weight: 700;
    color: #d32f2f;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dashed #ccc;
    font-size: 0.8rem;
    color: #888;
}

/* Cross Links */
.cross-links {
    display: grid;
    gap: 10px;
    margin-top: 30px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s;
}

.link-btn:hover {
    transform: translateY(-2px);
}

.link-btn i {
    margin-right: 8px;
}

.link-btn.rich {
    background-color: #fff8e1;
    color: #fbc02d;
    border: 1px solid #fbc02d;
}

.link-btn.etf {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #1976d2;
}

.link-btn.home {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

/* Ad Banner */
.ad-banner {
    margin: 20px 0;
    text-align: center;
    min-height: 100px;
    background-color: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #eee;
}

/* SEO Content Section */
.seo-content {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #ccc;
}

.seo-box {
    background-color: #fafafa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.seo-box h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1a1a1a;
    font-weight: 700;
}

.seo-box p {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    word-break: keep-all;
}

.seo-box strong {
    color: #d32f2f;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-color: rgba(211, 47, 47, 0.3);
}