.loan-cal-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
}

h1 {
    color: #0056b3;
    margin-bottom: 25px;
    font-size: 1.8em;
}

h2.sub-title {
    color: #666;
    margin-top: -15px;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.tab-button {
    background-color: #e9ecef;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    color: #495057;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.tab-button.active {
    background-color: #007bff;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.calculator-box {
    background: #fff;
    padding: 25px;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 0.95em;
}

.input-group input[type="text"], 
.input-group input[type="number"],
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
}

/* New Input Styles */
.input-with-button {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-wrapper input {
    width: 100%;
    padding-right: 35px !important;
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ccc;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    display: none;
    padding: 0;
}

.clear-btn:hover {
    color: #999;
}

.inline-copy-btn {
    padding: 11px 18px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    font-size: 0.95em;
}

.inline-copy-btn:hover {
    background: #0056b3;
}

.input-group input[type="range"] {
    width: 100%;
    margin-top: 10px;
}

.result-box {
    margin-top: 25px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 6px solid #007bff;
    text-align: left;
}

.result-box h3 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.share-container {
    text-align: right;
    margin-bottom: 10px;
}

.share-btn {
    background: #fff;
    color: #555;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    transition: 0.2s;
}

.share-btn:hover {
    background-color: #f0f0f0;
}

.strength-meter {
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

/* 비밀번호 강도별 색상 */
.strength-weak { background-color: #dc3545; }   /* 빨강 */
.strength-medium { background-color: #ffc107; } /* 노랑 */
.strength-strong { background-color: #28a745; } /* 초록 */
.strength-very-strong { background-color: #007bff; } /* 파랑 */

.section-divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.info-section h3 {
    border-bottom: 2px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.info-section ul {
    padding-left: 20px;
}

.info-section li {
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .tab-button {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}
