/**
 * Admin CSS
 * Styles for WordPress admin area
 */

/* Meta Box Styles */
.nihongo-meta-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.nihongo-meta-box h3 {
    margin-top: 0;
    color: #23282d;
    font-size: 14px;
    font-weight: 600;
}

.nihongo-meta-box .form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
    vertical-align: top;
}

.nihongo-meta-box .form-table td {
    padding: 15px 10px;
}

.nihongo-meta-box input[type="text"],
.nihongo-meta-box input[type="email"],
.nihongo-meta-box input[type="number"],
.nihongo-meta-box textarea,
.nihongo-meta-box select {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.nihongo-meta-box textarea {
    height: 100px;
    resize: vertical;
}

/* Image Upload Styles */
.image-upload-container {
    margin: 10px 0;
}

.upload-image-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.upload-image-button:hover {
    background: #005a87;
}

.image-preview {
    margin-top: 10px;
}

.image-preview img {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
}

/* Course Meta Box Specific */
.course-features-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.course-features-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.course-features-list li:last-child {
    border-bottom: none;
}

/* Testimonial Meta Box Specific */
.testimonial-rating {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.testimonial-rating input[type="radio"] {
    margin-right: 5px;
}

/* Admin Notices */
.nihongo-admin-notice {
    background: #fff;
    border-left: 4px solid #0073aa;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
    margin: 5px 15px 2px;
    padding: 1px 12px;
}

.nihongo-admin-notice.notice-success {
    border-left-color: #46b450;
}

.nihongo-admin-notice.notice-error {
    border-left-color: #dc3232;
}

.nihongo-admin-notice.notice-warning {
    border-left-color: #ffb900;
}

/* Custom Post Type List Table */
.wp-list-table .column-featured_image {
    width: 60px;
}

.wp-list-table .column-featured_image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* Quick Edit Forms */
.quick-edit-row .inline-edit-col .nihongo-field {
    margin: 5px 0;
}

.quick-edit-row .inline-edit-col .nihongo-field label {
    display: inline-block;
    width: 100px;
    font-weight: 600;
}

.quick-edit-row .inline-edit-col .nihongo-field input {
    width: 200px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Dashboard Widgets */
.nihongo-dashboard-widget {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.nihongo-dashboard-widget h3 {
    margin-top: 0;
    color: #23282d;
    font-size: 16px;
    font-weight: 600;
}

.nihongo-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.nihongo-stat {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    flex: 1;
}

.nihongo-stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    display: block;
}

.nihongo-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 782px) {
    .nihongo-meta-box .form-table th,
    .nihongo-meta-box .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .nihongo-stats {
        flex-direction: column;
        gap: 10px;
    }
}
