/* Tojeongbigyeol Plugin Styles */

.tjb-wrapper {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tjb-form-wrapper, .tjb-results {
    width: 100%;
}

/* Form Styles */
.tjb-form .tjb-form-field {
    margin-bottom: 15px;
}

.tjb-form .tjb-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.tjb-form .tjb-date-inputs input[type="number"],
.tjb-form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 5px;
}

.tjb-form .tjb-submit-button {
    padding: 10px 15px;
    border: none;
    background-color: #0073aa;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.tjb-form .tjb-submit-button:hover {
    background-color: #005a87;
}

/* Results Styles */
.tjb-section-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

.tjb-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin-bottom: 10px;
}

.tjb-table th, .tjb-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.tjb-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.saju-table .day-pillar {
    font-weight: bold;
}

.daeun-table th {
    font-size: 0.9em;
}

.tjb-strength-result {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 10px;
    background-color: #f0f8ff;
    border: 1px solid #d4e8ff;
    border-radius: 4px;
}

.tjb-random-fortunes {
    margin-top: 30px;
    border-top: 2px solid #e0e0e0;
    padding-top: 15px;
}

.tjb-fortune-title {
    font-size: 1.2em;
    color: #005a87;
}

.tjb-retry-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    padding: 10px 15px;
    background-color: #6c757d;
    color: white;
    border-radius: 4px;
}

.tjb-retry-link:hover {
    background-color: #5a6268;
}

.tjb-intro-text {
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.9em;
    color: #495057;
}

/* Monthly Fortune Styles */
.monthly-fortune-list {
    list-style-type: none;
    padding-left: 0;
}

.monthly-fortune-list li {
    margin-bottom: 8px;
}

.month-label {
    display: inline-block;
    font-weight: bold;
    background-color: #0073aa;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

/* Input Summary Styles */
.tjb-input-summary {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.tjb-input-summary ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.tjb-input-summary li {
    margin-bottom: 5px;
    color: #495057;
}

.tjb-explanation {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 30px;
    font-size: 0.9em;
    color: #495057;
    line-height: 1.6;
}

.tjb-explanation p {
    margin: 0;
}

.tjb-ohaeng-chart {
    margin-top: 15px;
    margin-bottom: 10px;
}

.tjb-ohaeng-bar-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.tjb-ohaeng-label {
    width: 60px;
    font-size: 0.9em;
    text-align: right;
    margin-right: 10px;
}

.tjb-ohaeng-bar {
    height: 18px;
    border-radius: 3px;
    transition: width 0.5s ease-in-out;
    background-color: #ddd; /* 기본 배경색 */
}

/* Widget & Mini Form Responsive Styles */
.widget .tjb-form-wrapper .tjb-date-inputs {
    display: flex;
    flex-direction: column;
}

.widget .tjb-form-wrapper .tjb-date-inputs select,
.widget .tjb-form-wrapper .tjb-date-inputs input {
    width: 100%;
    margin-bottom: 5px;
}

.widget .tjb-form-wrapper .tjb-submit-button {
    width: 100%;
}
