/**
 * ================================================================
 * NEWS FORM - ADMIN PANEL STYLES
 * ================================================================
 * File: news_form.css
 * Description: Styles khusus untuk halaman form berita (Create/Edit)
 * Bootstrap 5 Compatible
 * Mobile Responsive
 * Minimal & Modern Design with Rich Text Editor Support
 * ================================================================
 */

/* ================================================================
   PAGE LAYOUT
   ================================================================ */
.news-form-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: var(--news-spacing-lg) 0;
}

.news-form-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--news-spacing-lg);
}

/* ================================================================
   FORM HEADER
   ================================================================ */
.news-form-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--news-radius-lg);
    padding: var(--news-spacing-xl);
    margin-bottom: var(--news-spacing-xl);
    box-shadow: var(--news-shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-form-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--news-spacing-md);
}

.news-form-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.news-form-header-title i {
    color: var(--news-primary);
}

.news-form-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.news-form-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--news-radius-sm);
    font-weight: 500;
    transition: all var(--news-transition-normal);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
}

.news-form-header-btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

.news-form-header-btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.news-form-header-btn-primary {
    background: linear-gradient(135deg, var(--news-primary), #0056b3);
    color: #ffffff;
}

.news-form-header-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* ================================================================
   MAIN FORM WRAPPER
   ================================================================ */
.news-form-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--news-spacing-xl);
}

/* ================================================================
   FORM SECTIONS
   ================================================================ */
.news-form-section {
    background: #ffffff;
    border-radius: var(--news-radius-lg);
    padding: var(--news-spacing-xl);
    box-shadow: var(--news-shadow-sm);
    border: 1px solid #e9ecef;
    margin-bottom: var(--news-spacing-lg);
}

.news-form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: var(--news-spacing-lg);
    margin-bottom: var(--news-spacing-lg);
    border-bottom: 2px solid #f0f0f0;
}

.news-form-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--news-primary), #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.125rem;
}

.news-form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.news-form-section-body {
    display: flex;
    flex-direction: column;
    gap: var(--news-spacing-lg);
}

/* ================================================================
   FORM GROUPS & FIELDS
   ================================================================ */
.news-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--news-spacing-lg);
}

.news-form-col-full {
    grid-column: 1 / -1;
}

.news-form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.news-form-label-required::after {
    content: "*";
    color: var(--news-danger);
    font-weight: 700;
    margin-left: 0.25rem;
}

.news-form-label-icon {
    color: var(--news-primary);
    font-size: 1rem;
}

.news-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    border: 2px solid #e9ecef;
    border-radius: var(--news-radius-sm);
    background: #ffffff;
    color: #495057;
    transition: all var(--news-transition-normal);
    font-family: var(--news-font-family);
}

.news-form-input:focus {
    outline: none;
    border-color: var(--news-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background: #ffffff;
}

.news-form-input:disabled,
.news-form-input[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.7;
}

.news-form-input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.news-form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.news-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23495057' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.news-form-select:focus {
    cursor: pointer;
}

.news-form-help-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.news-form-help-icon {
    color: var(--news-info);
}

.news-form-error {
    font-size: 0.8rem;
    color: var(--news-danger);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.news-form-success {
    font-size: 0.8rem;
    color: var(--news-success);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.news-form-input.is-invalid {
    border-color: var(--news-danger);
}

.news-form-input.is-invalid:focus {
    border-color: var(--news-danger);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.news-form-input.is-valid {
    border-color: var(--news-success);
}

.news-form-input.is-valid:focus {
    border-color: var(--news-success);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

/* ================================================================
   FILE UPLOAD FIELDS
   ================================================================ */
.news-form-file-wrapper {
    position: relative;
}

.news-form-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.news-form-file-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 2px dashed #dee2e6;
    border-radius: var(--news-radius-sm);
    cursor: pointer;
    transition: all var(--news-transition-normal);
    background: #f8f9fa;
}

.news-form-file-label:hover {
    border-color: var(--news-primary);
    background: rgba(0, 123, 255, 0.05);
}

.news-form-file-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--news-primary), #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
}

.news-form-file-content {
    flex: 1;
}

.news-form-file-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.news-form-file-description {
    font-size: 0.8rem;
    color: #6c757d;
}

.news-form-file-preview {
    margin-top: var(--news-spacing-md);
    border-radius: var(--news-radius-sm);
    overflow: hidden;
    box-shadow: var(--news-shadow-sm);
}

.news-form-file-preview-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--news-radius-sm);
}

.news-form-file-preview-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--news-radius-sm);
}

.news-form-file-preview-icon {
    font-size: 3rem;
    color: #adb5bd;
}

/* ================================================================
   CHECKBOX & RADIO
   ================================================================ */
.news-form-check-group {
    display: flex;
    flex-direction: column;
    gap: var(--news-spacing-sm);
}

.news-form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: var(--news-radius-sm);
    cursor: pointer;
    transition: all var(--news-transition-normal);
}

.news-form-check:hover {
    background: #e9ecef;
}

.news-form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--news-primary);
}

.news-form-check-label {
    flex: 1;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.news-form-check-label-text {
    font-weight: 600;
    color: #2c3e50;
}

.news-form-check-label-description {
    font-size: 0.8rem;
    color: #6c757d;
}

.news-form-check-icon {
    font-size: 1.25rem;
    color: var(--news-primary);
}

.news-form-check-input:checked + .news-form-check-content {
    background: rgba(0, 123, 255, 0.05);
}

/* ================================================================
   SWITCH TOGGLE
   ================================================================ */
.news-form-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    background: #f8f9fa;
    border-radius: var(--news-radius-sm);
}

.news-form-switch-input {
    position: relative;
    width: 50px;
    height: 26px;
    appearance: none;
    background: #dee2e6;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--news-transition-normal);
    outline: none;
}

.news-form-switch-input::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: all var(--news-transition-normal);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.news-form-switch-input:checked {
    background: linear-gradient(135deg, var(--news-primary), #0056b3);
}

.news-form-switch-input:checked::before {
    left: 27px;
}

.news-form-switch-label {
    flex: 1;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

/* ================================================================
   TAG INPUT
   ================================================================ */
.news-form-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: var(--news-radius-sm);
    background: #ffffff;
    min-height: 50px;
    transition: all var(--news-transition-normal);
}

.news-form-tag-container:focus-within {
    border-color: var(--news-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.news-form-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, var(--news-primary), #0056b3);
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: news-tag-slide-in 0.2s ease-out;
}

.news-form-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--news-transition-normal);
    border: none;
    padding: 0;
    color: #ffffff;
}

.news-form-tag-remove:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.news-form-tag-input {
    flex: 1;
    min-width: 150px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
}

.news-form-tag-input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

@keyframes news-tag-slide-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================================================
   RICH TEXT EDITOR (Summernote)
   ================================================================ */
.news-form-editor-wrapper {
    border: 2px solid #e9ecef;
    border-radius: var(--news-radius-sm);
    overflow: hidden;
    transition: all var(--news-transition-normal);
}

.news-form-editor-wrapper:focus-within {
    border-color: var(--news-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Summernote Customization */
.note-editor {
    border: none !important;
}

.note-editor.note-frame {
    border: none;
}

.note-toolbar {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-bottom: 2px solid #e9ecef !important;
    padding: 0.75rem !important;
}

.note-toolbar .btn-group {
    margin-right: 0.5rem;
}

.note-toolbar .btn {
    border: none !important;
    background: transparent !important;
    color: #6c757d !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--news-radius-sm) !important;
    transition: all var(--news-transition-fast) !important;
    margin: 0 2px;
}

.note-toolbar .btn:hover {
    background: #e9ecef !important;
    color: #495057 !important;
}

.note-toolbar .btn.active,
.note-toolbar .btn:active {
    background: var(--news-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3) !important;
}

.note-editable {
    background: #ffffff !important;
    padding: 1.5rem !important;
    min-height: 400px !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    color: #495057 !important;
}

.note-editable:focus {
    background: #ffffff !important;
}

.note-editable h1,
.note-editable h2,
.note-editable h3,
.note-editable h4,
.note-editable h5,
.note-editable h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.note-editable img {
    max-width: 100%;
    height: auto;
    border-radius: var(--news-radius-sm);
    box-shadow: var(--news-shadow-sm);
    margin: 1rem 0;
}

.note-editable a {
    color: var(--news-primary);
    text-decoration: underline;
}

.note-editable blockquote {
    border-left: 4px solid var(--news-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
}

.note-editable code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.note-editable pre {
    background: #2c3e50;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: var(--news-radius-sm);
    overflow-x: auto;
    margin: 1rem 0;
}

.note-statusbar {
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    padding: 0.5rem 1rem !important;
}

.note-resizebar {
    background: #dee2e6 !important;
    height: 5px !important;
    cursor: ns-resize;
}

/* Modal Dialogs */
.note-modal-backdrop {
    background: rgba(0, 0, 0, 0.5) !important;
}

.note-modal .modal-content {
    border-radius: var(--news-radius-lg) !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.note-modal .modal-header {
    background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
    border-bottom: 2px solid #e9ecef !important;
    border-radius: var(--news-radius-lg) var(--news-radius-lg) 0 0 !important;
}

.note-modal .modal-title {
    color: #2c3e50 !important;
    font-weight: 700 !important;
}

.note-modal .modal-footer {
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    border-radius: 0 0 var(--news-radius-lg) var(--news-radius-lg) !important;
}

/* ================================================================
   CONDITIONAL FIELDS
   ================================================================ */
.news-form-conditional {
    display: none;
    animation: news-fade-slide-in 0.3s ease-out;
}

.news-form-conditional.show {
    display: block;
}

@keyframes news-fade-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   STATUS INDICATOR
   ================================================================ */
.news-form-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-form-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: news-pulse 2s ease-in-out infinite;
}

@keyframes news-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.news-form-status-published .news-form-status-dot {
    background: var(--news-success);
}

.news-form-status-draft .news-form-status-dot {
    background: var(--news-warning);
}

.news-form-status-scheduled .news-form-status-dot {
    background: var(--news-info);
}

.news-form-status-archived .news-form-status-dot {
    background: var(--news-secondary);
}

/* ================================================================
   PREVIEW SECTION
   ================================================================ */
.news-form-preview-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: var(--news-radius-lg);
    padding: var(--news-spacing-xl);
    border: 2px solid #e9ecef;
    margin-bottom: var(--news-spacing-lg);
}

.news-form-preview-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--news-spacing-lg);
    padding-bottom: var(--news-spacing-md);
    border-bottom: 2px solid #e9ecef;
}

.news-form-preview-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--news-info), #117a8b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.125rem;
}

.news-form-preview-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.news-form-preview-content {
    background: #ffffff;
    border-radius: var(--news-radius-md);
    padding: var(--news-spacing-xl);
    box-shadow: var(--news-shadow-sm);
    max-height: 500px;
    overflow-y: auto;
}

.news-form-preview-content::-webkit-scrollbar {
    width: 8px;
}

.news-form-preview-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.news-form-preview-content::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}

.news-form-preview-content::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.news-form-preview-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #adb5bd;
}

.news-form-preview-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.news-form-preview-empty-text {
    font-size: 1rem;
    color: #6c757d;
}

/* ================================================================
   FORM ACTIONS (Submit Buttons)
   ================================================================ */
.news-form-actions-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--news-radius-lg);
    padding: var(--news-spacing-xl);
    box-shadow: var(--news-shadow-sm);
    border: 1px solid #e9ecef;
    position: sticky;
    bottom: var(--news-spacing-lg);
    z-index: 100;
}

.news-form-actions-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--news-spacing-md);
}

.news-form-actions-left {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.news-form-actions-right {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.news-form-action-btn {
    padding: 0.875rem 1.75rem;
    border-radius: var(--news-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--news-transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.news-form-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.news-form-action-btn:hover::before {
    left: 100%;
}

.news-form-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.news-form-action-draft {
    background: #6c757d;
    color: #ffffff;
}

.news-form-action-draft:hover:not(:disabled) {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.news-form-action-preview {
    background: linear-gradient(135deg, var(--news-info), #117a8b);
    color: #ffffff;
}

.news-form-action-preview:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.news-form-action-cancel {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
}

.news-form-action-cancel:hover {
    background: #6c757d;
    color: #ffffff;
    transform: translateY(-2px);
}

.news-form-action-submit {
    background: linear-gradient(135deg, var(--news-primary), #0056b3);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.news-form-action-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.news-form-auto-save-indicator {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-form-auto-save-indicator i {
    color: var(--news-success);
}

/* ================================================================
   LOADING STATE
   ================================================================ */
.news-form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.news-form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #e9ecef;
    border-top-color: var(--news-primary);
    border-radius: 50%;
    animation: news-spin 0.8s linear infinite;
}

@keyframes news-spin {
    to {
        transform: rotate(360deg);
    }
}

.news-form-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: news-spin 0.6s linear infinite;
}

/* ================================================================
   VALIDATION MESSAGES
   ================================================================ */
.news-form-validation-summary {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--news-danger);
    padding: var(--news-spacing-lg);
    border-radius: var(--news-radius-sm);
    margin-bottom: var(--news-spacing-xl);
}

.news-form-validation-title {
    font-weight: 600;
    color: var(--news-danger);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-form-validation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-form-validation-item {
    color: #721c24;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-form-validation-item::before {
    content: '•';
    color: var(--news-danger);
    font-weight: 700;
}

/* ================================================================
   CHARACTER COUNTER
   ================================================================ */
.news-form-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.news-form-counter-current {
    color: #6c757d;
}

.news-form-counter-max {
    color: #adb5bd;
}

.news-form-counter.warning .news-form-counter-current {
    color: var(--news-warning);
    font-weight: 600;
}

.news-form-counter.danger .news-form-counter-current {
    color: var(--news-danger);
    font-weight: 700;
}

/* ================================================================
   TOOLTIP
   ================================================================ */
.news-form-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.news-form-tooltip-icon {
    color: var(--news-info);
    font-size: 0.9rem;
}

.news-form-tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: var(--news-radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    transition: all var(--news-transition-fast);
    box-shadow: var(--news-shadow-md);
}

.news-form-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2c3e50;
}

.news-form-tooltip:hover .news-form-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ================================================================
   RESPONSIVE - MOBILE FIRST
   ================================================================ */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .news-form-container {
        padding: 0 var(--news-spacing-md);
    }
    
    .news-form-header {
        padding: var(--news-spacing-lg);
    }
    
    .news-form-header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .news-form-header-title {
        font-size: 1.5rem;
    }
    
    .news-form-header-actions {
        width: 100%;
    }
    
    .news-form-header-btn {
        flex: 1;
        justify-content: center;
    }
    
    .news-form-section {
        padding: var(--news-spacing-lg);
    }
    
    .news-form-section-title {
        font-size: 1.125rem;
    }
    
    .news-form-row {
        grid-template-columns: 1fr;
    }
    
    .news-form-file-label {
        flex-direction: column;
        text-align: center;
    }
    
    .news-form-preview-section {
        padding: var(--news-spacing-lg);
    }
    
    .news-form-preview-content {
        padding: var(--news-spacing-lg);
        max-height: 300px;
    }
    
    .news-form-actions-section {
        padding: var(--news-spacing-lg);
        position: static;
    }
    
    .news-form-actions-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .news-form-actions-left,
    .news-form-actions-right {
        width: 100%;
    }
    
    .news-form-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .news-form-auto-save-indicator {
        margin-left: 0;
        margin-top: 0.5rem;
        justify-content: center;
    }
    
    .note-editable {
        min-height: 250px !important;
        padding: 1rem !important;
    }
    
    .note-toolbar {
        padding: 0.5rem !important;
    }
    
    .note-toolbar .btn {
        padding: 0.4rem 0.6rem !important;
        margin: 0 1px;
    }
}

/* Small Devices (landscape phones, 576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .news-form-row {
        grid-template-columns: 1fr;
    }
    
    .news-form-actions-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .news-form-actions-left,
    .news-form-actions-right {
        width: 100%;
    }
    
    .news-form-action-btn {
        flex: 1;
    }
}

/* Medium Devices (tablets, 768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .news-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .news-form-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
    .news-form-header-actions,
    .news-form-actions-section,
    .news-form-preview-section,
    .note-toolbar,
    .note-statusbar,
    .note-resizebar {
        display: none !important;
    }
    
    .news-form-section {
        box-shadow: none;
        border: 1px solid #dee2e6;
        page-break-inside: avoid;
    }
    
    .news-form-input,
    .news-form-textarea,
    .news-form-select {
        border: 1px solid #dee2e6;
        background: #ffffff;
    }
    
    .note-editable {
        border: 1px solid #dee2e6;
    }
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */
.news-form-input:focus,
.news-form-select:focus,
.news-form-textarea:focus,
.news-form-check-input:focus,
.news-form-action-btn:focus {
    outline: 2px solid var(--news-primary);
    outline-offset: 2px;
}

.news-form-label[for] {
    cursor: pointer;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .news-form-section,
    .news-form-input,
    .news-form-select,
    .news-form-textarea,
    .news-form-actions-section {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .news-form-action-btn,
    .news-form-tag-item,
    .news-form-conditional,
    .news-form-status-dot {
        animation: none;
        transition: none;
    }
}

/* ================================================================
   CUSTOM SCROLLBAR
   ================================================================ */
.news-form-section::-webkit-scrollbar,
.news-form-preview-content::-webkit-scrollbar {
    width: 10px;
}

.news-form-section::-webkit-scrollbar-track,
.news-form-preview-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 5px;
}

.news-form-section::-webkit-scrollbar-thumb,
.news-form-preview-content::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 5px;
}

.news-form-section::-webkit-scrollbar-thumb:hover,
.news-form-preview-content::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.news-form-hidden {
    display: none !important;
}

.news-form-visible {
    display: block !important;
}

.news-form-text-muted {
    color: #6c757d !important;
}

.news-form-text-danger {
    color: var(--news-danger) !important;
}

.news-form-text-success {
    color: var(--news-success) !important;
}

.news-form-text-warning {
    color: var(--news-warning) !important;
}

.news-form-text-info {
    color: var(--news-info) !important;
}

.news-form-mb-0 { margin-bottom: 0 !important; }
.news-form-mb-1 { margin-bottom: 0.5rem !important; }
.news-form-mb-2 { margin-bottom: 1rem !important; }
.news-form-mb-3 { margin-bottom: 1.5rem !important; }
.news-form-mb-4 { margin-bottom: 2rem !important; }

.news-form-mt-0 { margin-top: 0 !important; }
.news-form-mt-1 { margin-top: 0.5rem !important; }
.news-form-mt-2 { margin-top: 1rem !important; }
.news-form-mt-3 { margin-top: 1.5rem !important; }
.news-form-mt-4 { margin-top: 2rem !important; }

/* ================================================================
   END OF NEWS_FORM.CSS
   ================================================================ */

