/* Styling cho plugin Banana Image Frontend */

#banana-image-generator-app {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 30px auto;
    font-family: Arial, sans-serif;
    color: #333;
}

#banana-image-generator-app h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 2em;
}

.bi-user-credits {
    text-align: right;
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
}

.bi-user-credits .bi-current-credits {
    font-weight: bold;
    color: #27ae60; /* Màu xanh lá cây cho credit */
    font-size: 1.2em;
}

.bi-add-credits-link {
    margin-left: 10px;
    color: #3498db;
    text-decoration: none;
}

.bi-add-credits-link:hover {
    text-decoration: underline;
}

.bi-form-group {
    margin-bottom: 20px;
}

.bi-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

#bi-prompt {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    resize: vertical; /* Cho phép thay đổi kích thước theo chiều dọc */
    min-height: 100px;
}

#bi-num-images {
    width: 80px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    text-align: center;
}

.bi-estimated-cost {
    margin-top: 10px;
    font-size: 0.95em;
    color: #777;
}

#bi-cost-display {
    font-weight: bold;
    color: #e67e22; /* Màu cam cho chi phí */
}

/* Buttons */
#bi-image-generation-form .button {
    background-color: #3498db; /* Màu xanh cho nút chính */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-right: 15px;
}

#bi-image-generation-form .button:hover {
    background-color: #2980b9;
}

#bi-image-generation-form .button.button-primary {
    /* Đảm bảo style WordPress button-primary vẫn được áp dụng */
}

/* Specific styling for the secondary button if needed */
#bi-edit-btn {
    background-color: #f39c12; /* Màu cam khác cho nút chỉnh sửa */
}
#bi-edit-btn:hover {
    background-color: #e67e22;
}


/* Status messages */
.bi-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
}

.bi-message.bi-error {
    background-color: #fbecec;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.bi-message.bi-success {
    background-color: #e8f9ed;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.bi-message.bi-info {
    background-color: #eaf6ff;
    color: #3498db;
    border: 1px solid #3498db;
}

/* Results container */
#bi-results-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 20px;
}

.bi-result-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.bi-result-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.bi-result-item a.bi-download-btn {
    display: inline-block;
    background-color: #2ecc71; /* Màu xanh lá cây cho nút tải xuống */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.bi-result-item a.bi-download-btn:hover {
    background-color: #27ae60;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #banana-image-generator-app {
        margin: 20px;
        padding: 20px;
    }
    #bi-image-generation-form .button {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}