/* Plugin Phong Thủy HKBT Styles */

.pthkbt-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.pthkbt-container h2 {
    color: #8B4513;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pthkbt-container h3 {
    color: #D2691E;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Form Styles */
.pthkbt-form {
    background: #FFF8DC;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #8B4513;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #DEB887;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #D2691E;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
    cursor: pointer;
}

.btn-calculate {
    background: #8B4513;
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    margin: 30px auto 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-calculate:hover {
    background: #A0522D;
}

/* Result Styles */
.pthkbt-result {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

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

.result-header h3 {
    color: #8B4513;
    font-size: 24px;
    margin-bottom: 10px;
}

.user-info {
    background: #FFF8DC;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.user-info p {
    margin: 5px 0;
    color: #666;
}

.user-info strong {
    color: #8B4513;
}

.menh-info {
    background: #F0E68C;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.menh-info h4 {
    color: #8B4513;
    margin-bottom: 10px;
    font-size: 20px;
}

.menh-info p {
    margin: 5px 0;
    font-size: 16px;
}

.compatibility-status {
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.compatibility-status.compatible {
    background: #90EE90;
    color: #006400;
}

.compatibility-status.incompatible {
    background: #FFB6C1;
    color: #8B0000;
}

.analysis-section {
    margin-bottom: 25px;
}

.analysis-section h4 {
    color: #D2691E;
    margin-bottom: 10px;
    font-size: 18px;
}

.analysis-section p {
    line-height: 1.6;
    color: #333;
}

.good-directions {
    background: #F0FFF0;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.good-directions h4 {
    color: #228B22;
    margin-bottom: 10px;
}

.direction-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.direction-item {
    background: #228B22;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.other-factors {
    background: #F5F5DC;
    padding: 20px;
    border-radius: 5px;
}

.other-factors h4 {
    color: #8B4513;
    margin-bottom: 10px;
}

.other-factors ul {
    margin-left: 20px;
}

.other-factors li {
    margin-bottom: 8px;
    color: #666;
}

/* Info Section */
.pthkbt-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pthkbt-info ul {
    margin-left: 20px;
    margin-top: 15px;
}

.pthkbt-info li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
}

.loading::after {
    content: "Đang tính toán...";
    display: inline-block;
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: "Đang tính toán.";
    }
    40% {
        content: "Đang tính toán..";
    }
    60%, 100% {
        content: "Đang tính toán...";
    }
}

/* Responsive */
@media (max-width: 600px) {
    .pthkbt-container {
        padding: 10px;
    }
    
    .pthkbt-form {
        padding: 20px;
    }
    
    .direction-list {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .pthkbt-form,
    .btn-calculate,
    .pthkbt-info {
        display: none;
    }
    
    .pthkbt-result {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}