/* Admin inline forms for posts and replies */
.admin-inline-form {
    margin: 10px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nested-reply-form {
    margin-left: 20px;
    background: #fff3cd;
    border-color: #ffeaa7;
}

.nested-reply-indicator {
    color: #856404;
    font-size: 12px;
    margin-bottom: 10px;
    font-style: italic;
}

.inline-reply-form .form-row,
.inline-react-form .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.compact-select {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    min-width: 120px;
}

.compact-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.25);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #495057;
    white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.reply-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.reply-textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.25);
}

.form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-primary {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Admin action buttons */
.admin-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.admin-action-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #495057;
}

.admin-action-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Hide admin forms and actions for non-admins */
.admin-inline-form,
.admin-actions {
    display: none;
}

/* Show admin forms and actions when user is admin */
body.admin-logged-in .admin-inline-form,
body.admin-logged-in .admin-actions {
    display: block;
}

body.admin-logged-in .admin-inline-form[style*="display: none"] {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .inline-reply-form .form-row,
    .inline-react-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .compact-select {
        width: 100%;
        min-width: unset;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .admin-action-btn {
        text-align: center;
    }
}