/* ================================================
   MODERN NEWSLETTER MANAGEMENT INTERFACE STYLES
   ================================================ */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --success-hover: #059669;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography Override */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* ================================================
   MODERN CONTAINER & LAYOUT
   ================================================ */

.modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 80px);
}

/* ================================================
   PAGE HEADER STYLES
   ================================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    width: fit-content;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.back-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.025em;
}

.page-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0 0 0;
    font-weight: 400;
}

/* ================================================
   FORM CARD STYLES
   ================================================ */

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-card {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

.form-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.card-title svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.card-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.card-content {
    padding: 2rem;
}

/* ================================================
   FORM ELEMENTS
   ================================================ */

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    background: white;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 400;
    line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.form-input:disabled,
.form-textarea:disabled {
    background-color: var(--gray-100);
    color: var(--gray-500);
    cursor: not-allowed;
    border-color: var(--gray-200);
    opacity: 0.7;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
    font-style: italic;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* ================================================
   IMAGE UPLOAD STYLES
   ================================================ */

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.image-upload-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--gray-50);
    transition: var(--transition);
}

.image-upload-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.upload-header {
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

.upload-title {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.upload-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-input {
    padding: 0.75rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.file-input:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
}

.file-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-100);
}

.caption-input {
    margin-top: 0 !important;
}

.image-preview {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: none;
    max-height: 200px;
    object-fit: cover;
}

/* ================================================
   NEWS MANAGEMENT STYLES
   ================================================ */

.news-management-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.existing-news-section,
.new-news-section {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-xl);
    background: white;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.existing-news-section:hover,
.new-news-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, white 0%, var(--gray-50) 100%);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color), var(--success-color));
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.01em;
}

.section-badge {
    background: linear-gradient(135deg, var(--info-color) 0%, #2563eb 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-add-news {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-add-news:hover {
    background: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-add-news:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* ================================================
   SORTABLE NEWS LIST STYLES
   ================================================ */

.sortable-news-list {
    min-height: 120px;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    transition: var(--transition);
    border-radius: var(--border-radius-lg);
    margin: 0.5rem;
}

.sortable-news-list.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-style: italic;
    font-size: 0.875rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius-lg);
    margin: 1rem;
    padding: 3rem 2rem;
    background: white;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.sortable-news-list.empty::before {
    content: "📰 No news items yet. Start by adding some news below!";
}

.sortable-news-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    cursor: move;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.sortable-news-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.sortable-news-item.dragging {
    opacity: 0.6;
    transform: rotate(3deg) scale(1.02);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
}

.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--gray-400);
    cursor: move;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--gray-100);
}

.drag-handle:hover {
    background: var(--gray-200);
    color: var(--gray-600);
}

.drag-handle::before {
    content: "⋮⋮";
    font-size: 1.2rem;
    line-height: 1;
}

.position-indicator {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.news-title {
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.news-url {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8rem;
    word-break: break-all;
    transition: var(--transition);
}

.news-url:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.remove-news-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.remove-news-btn:hover {
    background: var(--danger-hover);
    transform: translateY(-1px);
}

.remove-news-btn:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

/* Drag-and-drop states */
.sortable-news-list.drag-disabled {
    opacity: 0.7;
}

.sortable-news-list.drag-disabled .sortable-news-item {
    cursor: default;
    opacity: 0.8;
}

.sortable-news-list.drag-disabled .drag-handle {
    cursor: not-allowed;
    opacity: 0.5;
    background: var(--gray-200);
}

.sortable-news-list.drag-enabled .sortable-news-item {
    cursor: move;
}

.sortable-news-list.dragover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

/* ================================================
   NEWS INPUT CONTAINER
   ================================================ */

.news-inputs-container {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-100);
    min-height: 200px;
    position: relative;
}

.news-inputs-container:empty::before {
    content: "✨ Click 'Add News' to create your first news item";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gray-400);
    font-style: italic;
    text-align: center;
    font-size: 0.875rem;
    width: 100%;
    padding: 2rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}

.news-url-wrapper {
    background: white;
    border: 1px solid var(--gray-200);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    overflow: hidden;
}

.news-url-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    opacity: 0;
    transition: var(--transition);
}

.news-url-wrapper:hover::before {
    opacity: 1;
}

.news-url-wrapper:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.news-url-wrapper .form-input {
    margin: 0;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    transition: var(--transition);
    background: white;
    position: relative;
}

.news-url-wrapper .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.news-url-wrapper .form-input::placeholder {
    color: var(--gray-400);
    font-style: italic;
}

.news-url-wrapper .form-input:first-child {
    font-weight: 600;
    color: var(--gray-900);
    border-left: 3px solid var(--primary-color);
}

.news-url-wrapper .form-input:first-child::placeholder {
    color: var(--gray-500);
    font-weight: 500;
}

.news-url-wrapper .form-input:nth-child(2) {
    border-left: 3px solid var(--info-color);
}

/* File input styling */
.news-url-wrapper input[type="file"].form-input {
    padding: 1.25rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    color: var(--gray-600);
    position: relative;
    text-align: center;
    border-left: 3px solid var(--success-color);
}

.news-url-wrapper input[type="file"].form-input:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, white 100%);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.news-url-wrapper input[type="file"].form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Modern remove button */
.remove-news-url-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(-4px) scale(0.8);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.news-url-wrapper:hover .remove-news-url-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.remove-news-url-btn:hover {
    background: var(--danger-hover);
    transform: translateY(-2px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.remove-news-url-btn::before {
    content: "×";
    font-size: 1.2rem;
    line-height: 1;
}

/* Add news item animation */
.news-url-wrapper {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* News item labels */
.news-input-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    position: relative;
    padding-left: 1.25rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    font-size: 0.75rem;
    opacity: 0.9;
}

.news-input-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.news-form-group:nth-child(2) .news-input-label::before {
    background: linear-gradient(135deg, var(--info-color), #3b82f6);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.news-form-group:nth-child(3) .news-input-label::before {
    background: linear-gradient(135deg, var(--success-color), #059669);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Enhanced form group for news inputs */
.news-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.news-form-group .form-input {
    transition: var(--transition);
}

.news-form-group .form-input:focus {
    transform: translateY(-1px);
}

/* Responsive design for news inputs */
@media (max-width: 768px) {
    .news-url-wrapper {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .news-inputs-container {
        padding: 1rem;
    }
    
    .remove-news-url-btn {
        position: static;
        margin-top: 1rem;
        width: 100%;
        height: auto;
        padding: 0.75rem;
        border-radius: var(--border-radius);
        opacity: 1;
        transform: none;
    }
    
    .remove-news-url-btn::before {
        content: "Remove News Item";
        font-size: 0.875rem;
    }
}

/* ================================================
   RADIO GROUP STYLES
   ================================================ */

.radio-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 2px solid var(--gray-200);
    background: white;
    min-width: 120px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.radio-option:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 1;
}

.radio-option input[type="radio"]:checked ~ .radio-label {
    color: white;
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    color: white;
}

.radio-option:has(input[type="radio"]:checked):hover {
    background: linear-gradient(135deg, var(--primary-hover), #3730a3);
    transform: translateY(-3px);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2), var(--shadow-lg);
}

/* Hide the custom radio button circle */
.radio-custom {
    display: none;
}

.radio-label {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
    user-select: none;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.025em;
}

.radio-option input[type="radio"]:disabled {
    cursor: not-allowed;
}

.radio-option:has(input[type="radio"]:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

.radio-option:has(input[type="radio"]:disabled):hover {
    transform: none;
    background: white;
    border-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

/* ================================================
   BUTTON STYLES
   ================================================ */

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 2rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    margin-top: 2rem;
    border-radius: var(--border-radius-xl);
}

.btn-primary,
.btn-success {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled,
.btn-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* Delete image buttons */
button.btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.75rem;
}

button.btn-danger:hover {
    background: var(--danger-hover);
    transform: translateY(-1px);
}

button.btn-danger:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .modern-container {
        padding: 1rem 0.5rem;
    }
    
    .page-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-actions {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .sortable-news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .news-content {
        width: 100%;
    }
    
    .drag-handle {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 1.75rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .upload-content {
        padding: 1rem;
    }
}

/* ================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn-primary:focus,
.btn-success:focus,
.form-input:focus,
.form-textarea:focus,
.file-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --gray-200: #000;
        --gray-300: #000;
        --primary-color: #0000ff;
        --primary-hover: #000080;
    }
} 