/**
 * CSS สำหรับระบบแจ้งปัญหาการใช้งาน
 * ไฟล์นี้ควรถูกบันทึกใน childtheme/css/change-log-it.css
 */

/* สไตล์ไอคอน Alert */
.changelog-alert-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #0066cc; /* พื้นหลังสีน้ำเงิน */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: all 0.3s ease;
}

.changelog-alert-icon:hover {
    background-color: #ff6600; /* สีส้มเมื่อวางเมาส์ */
    transform: scale(1.1);
}

.changelog-alert-icon i {
    font-size: 28px;
}

/* สไตล์ Modal */
.changelog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow: auto;
}

.changelog-modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    animation: modalFade 0.3s ease-in-out;
}

@keyframes modalFade {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.changelog-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.changelog-close:hover {
    color: #000;
}

/* สไตล์ฟอร์ม */
.changelog-form h2 {
    color: #0066cc; /* หัวข้อสีน้ำเงิน */
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
    border-bottom: 2px solid #ff6600; /* เส้นขอบด้านล่างสีส้ม */
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #000000; /* ตัวอักษรสีดำ */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s, box-shadow 0.3s;
    color: #000000; /* ตัวอักษรสีดำ */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0066cc; /* ขอบสีน้ำเงินเมื่อโฟกัส */
    outline: none;
    box-shadow: 0 0 8px rgba(0, 102, 204, 0.3);
}

.form-group input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background-color: #0066cc; /* ปุ่มสีน้ำเงิน */
    color: #ffffff;
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.submit-btn:hover {
    background-color: #ff6600; /* สีส้มเมื่อวางเมาส์ */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn.submitting {
    background-color: #999;
    cursor: wait;
}

/* แถบเลื่อนในกล่องข้อความ */
.form-group textarea::-webkit-scrollbar {
    width: 8px;
}

.form-group textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.form-group textarea::-webkit-scrollbar-thumb {
    background: #0066cc;
    border-radius: 10px;
}

.form-group textarea::-webkit-scrollbar-thumb:hover {
    background: #ff6600;
}

/* การปรับแต่งสำหรับอุปกรณ์มือถือ */
@media screen and (max-width: 768px) {
    .changelog-modal-content {
        margin: 20px;
        padding: 20px;
        width: auto;
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px;
    }
}