/* Stili per le pagine feed */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.page-title h2 {
    color: #000000;
    margin-bottom: 5px;
    font-size: 28px;
}

.page-title p {
    color: #666;
    font-size: 14px;
}

.page-actions {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: nowrap;
    min-width: 0;
}

.search-box {
    flex-shrink: 0;
}

.search-input-group {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.search-input-group input {
    padding: 8px 12px;
    border: 2px solid #e1e1e1;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    height: 44px;
    min-width: 200px;
    transition: border-color 0.3s;
}

.search-input-group input:focus {
    outline: none;
    border-color: #666;
}

.btn-search {
    border-radius: 0 4px 4px 0 !important;
    border-left: none !important;
    height: 44px;
    padding: 8px 12px;
    border: 2px solid #e1e1e1;
    background-color: #000000;
    color: #ffffff;
}

.btn-search:hover {
    background-color: #333333;
}

.header-left a {
    display: inline-block;
    text-decoration: none;
}

.header-left a:hover .logo {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.btn-logout {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

.btn-logout:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.days-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 5px;
}

.days-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.days-group input[type="checkbox"] {
    margin-right: 8px;
}

.search-box .btn {
    height: 44px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.search-box input:focus {
    outline: none;
    border-color: #666;
}

/* Tabella feed */
.table-container {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.feeds-table {
    width: 100%;
    border-collapse: collapse;
}

.feeds-table th,
.feeds-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.feeds-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.feeds-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Stili per nome feed cliccabile */
.feed-name-link {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.feed-name-link:hover {
    text-decoration: underline;
}

.feed-name-link.feed-disabled {
    opacity: 0.6;
}

/* Container per il logo del feed */
.feed-logo-container {
    margin-top: 8px;
}

.feed-logo-container a {
    display: inline-block;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 6px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.feed-logo-container a:hover {
    border-color: #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Stili per il logo */
.feed-logo {
    max-height: 30px;
    max-width: 200px;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Aggiusta il container del nome feed */
.feed-name-container {
    min-height: 40px;
}

/* Stili per il nome feed */
.feed-name {
    margin: 0;
    font-size: 16px;
}

.destinatari {
    font-size: 12px;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-all;
    max-width: 300px;
}

.destinatari div {
    margin-bottom: 2px;
}

.action-buttons .btn-sm {
    padding: 0;
    font-size: 12px;
    width: 36px !important;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    box-sizing: border-box;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Paginazione */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.page-info {
    color: #666;
    font-size: 14px;
}

/* Form feed */
.feed-form {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="time"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group input[type="color"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="time"] {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    cursor: pointer;
    width: 150px;
}

.form-group input[type="time"]::-webkit-calendar-picker-indicator {
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23666666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12,6 12,12 16,14"/></svg>') center/contain no-repeat;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.form-group input[type="date"] {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    cursor: pointer;
    width: 180px;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23666666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>') center/contain no-repeat;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.form-group input[type="number"] {
    width: 120px;
}

.demo-input-group {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.demo-input-group input {
    flex: 2;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    min-width: 250px;
}

.demo-input-group input:focus {
    outline: none;
    border-color: #666;
}

.btn-demo {
    background-color: #000000;
    color: #ffffff;
    flex-shrink: 0;
    white-space: nowrap;
    width: auto;
    padding: 12px 20px;
}

.btn-demo:hover {
    background-color: #333;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
    width: auto;
}

.btn-demo:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-box {
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-box i {
    font-size: 16px;
}

.status-box-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-box-success i {
    color: #28a745;
}

.status-box-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-box-warning i {
    color: #ffc107;
}

.status-box-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-box-danger i {
    color: #dc3545;
}

.form-group input[type="color"] {
    height: 50px;
    padding: 5px;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.current-logo img {
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 5px;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
    justify-content: center;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Alert messages */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert i {
    margin-top: 2px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 5px;
}

.btn-warning {
    background-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.feed-disabled {
    opacity: 0.6;
}

.status-badge {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: normal;
}

.text-muted {
    opacity: 0.6;
    color: #999 !important;
}

/* Email input multipli */
.email-input-container {
    min-height: 50px;
    border: 2px solid #e1e1e1;
    border-radius: 4px;
    padding: 8px;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    transition: border-color 0.3s;
}

.email-input-container:focus-within {
    border-color: #666;
}

.email-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.email-tag {
    background: #000000;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.email-tag i {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.email-tag i:hover {
    opacity: 1;
}

.email-input {
    border: none !important;
    outline: none !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    background: transparent !important;
    flex: 1;
    min-width: 200px;
    font-size: 14px;
}

.email-input:focus {
    border: none !important;
    outline: none !important;
}

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* LOGIN PAGE */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    max-height: 60px;
    margin-bottom: 15px;
}

.login-header h1 {
    color: #000000;
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #666;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
    width: 100%;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-outline {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.btn-outline:hover {
    background-color: #000000;
    color: #ffffff;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.login-footer {
    text-align: center;
    color: #666;
}

.login-footer a {
    color: #333;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* DASHBOARD */
.dashboard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: #000000;
    color: #ffffff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left .logo {
    height: 40px;
    margin-right: 15px;
}

.header-left h1 {
    font-size: 20px;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    font-size: 14px;
    color: #ccc;
}

.main-container {
    flex: 1;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-height: calc(100vh - 135px); /* Header + Footer */
}

.sidebar {
    width: 250px;
    background-color: #f8f9fa;
    border-right: 1px solid #e1e1e1;
    min-height: calc(100vh - 135px); /* Header + Footer */
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav .active a {
    background-color: #e9ecef;
    color: #000;
}

.sidebar-nav .icon {
    margin-right: 10px;
    font-size: 16px;
}

.content-full {
    flex: 1;
    padding: 30px;
    padding-bottom: 100px;
    overflow-y: auto;
    width: 100%;
}

.content-wrapper {
    max-width: 1200px;
}

.welcome-message h2 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 28px;
}

.welcome-message p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.footer {
    background-color: #000000;
    color: #ffffff;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    text-align: center;
}

.footer-content a {
    color: #ccc;
    text-decoration: none;
}

.footer-content a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    /* Header mobile */
    .header-content {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .header-left .logo {
        height: 24px;
        margin-right: 8px;
    }
    
    .header-left h1 {
        font-size: 16px;
    }
    
    .user-info {
        display: none;
    }
    
    .btn-logout {
        padding: 8px !important;
        min-width: auto !important;
        width: auto !important;
        font-size: 16px !important;
    }
    
    .btn-logout span {
        display: none;
    }
    
    /* Footer mobile - non fisso */
    .footer {
        position: static;
        margin-top: auto;
    }
    
    .main-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .sidebar {
        width: 100%;
        min-height: auto;
    }
    
    .sidebar-nav {
        padding: 10px 0;
    }
    
    .sidebar-nav ul {
        display: flex;
        overflow-x: auto;
    }
    
    .sidebar-nav li {
        margin-bottom: 0;
        margin-right: 5px;
        white-space: nowrap;
    }
    
    .content-full {
        padding: 20px 15px;
        padding-bottom: 20px;
    }
    
    /* Page header mobile */
    .page-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .page-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        order: -1;
    }
    
    .search-input-group input {
        min-width: auto;
    }
    
    /* Tabella mobile - trasforma in blocchi */
    .table-container {
        box-shadow: none;
        background: transparent;
    }
    
    .feeds-table {
        display: none;
    }
    
    .mobile-feed-blocks {
        display: block;
    }
    
    .mobile-feed-block {
        background: #ffffff;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border: 1px solid #e1e1e1;
    }
    
    .mobile-feed-block.feed-disabled {
        opacity: 0.6;
    }
    
    .mobile-feed-header {
        margin-bottom: 15px;
    }
    
    .mobile-feed-name {
        width: 100%;
    }
    
    .mobile-feed-name a {
        color: #000000;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        display: block;
        margin-bottom: 5px;
    }
    
    .mobile-feed-name a:hover {
        text-decoration: underline;
    }
    
    .mobile-feed-logo {
        max-height: 30px;
        max-width: 120px;
        height: auto;
        width: auto;
        object-fit: contain;
        border: 1px solid #e1e1e1;
        border-radius: 4px;
        padding: 4px;
        margin-top: 8px;
    }
    
    .mobile-feed-actions {
        display: flex;
        gap: 8px;
        justify-content: center;
        padding-top: 15px;
        border-top: 1px solid #e1e1e1;
        margin-top: 15px;
    }
    
    .mobile-feed-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .mobile-info-item {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-info-label {
        font-weight: 600;
        color: #333;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 5px;
    }
    
    .mobile-info-value {
        color: #666;
        font-size: 14px;
        line-height: 1.4;
    }
    
    .mobile-destinatari {
        grid-column: 1 / -1;
    }
    
    .mobile-destinatari .mobile-info-value {
        font-size: 12px;
    }
    
    .mobile-destinatari .mobile-info-value div {
        margin-bottom: 3px;
    }
    
    .mobile-destinatari .mobile-info-value div:last-child {
        margin-bottom: 0;
    }
    
    /* Form mobile */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .demo-input-group {
        flex-direction: column;
    }
    
    .demo-input-group input {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Badge prossimo invio (orario + giorno + conteggio) */
.next-send-wrapper {
    margin-top: 6px;
}

.badge-next-send {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
    transition: background-color 0.2s;
}

.badge-next-send.loading {
    background-color: #6c9c7a;
    cursor: wait;
}

.badge-next-send.error {
    background-color: #dc3545;
    cursor: help;
}

.badge-next-send.ready:hover {
    background-color: #1e7e34;
}

.badge-next-send > i {
    font-size: 11px;
    flex-shrink: 0;
}

/* Modal anteprima articoli */
.preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.preview-modal.open {
    display: block;
}

.preview-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
}

.preview-modal-dialog {
    position: relative;
    max-width: 720px;
    width: calc(100% - 40px);
    max-height: calc(100vh - 60px);
    margin: 30px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e1e1e1;
    background: #f8f9fa;
}

.preview-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #000;
    line-height: 1.3;
}

.preview-modal-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.preview-modal-close:hover {
    color: #000;
}

.preview-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.preview-loading {
    text-align: center;
    color: #666;
    padding: 20px;
    font-size: 14px;
}

.preview-count-info {
    margin: 0 0 16px 0;
    padding: 8px 12px;
    background: #e8f5e9;
    border-left: 3px solid #28a745;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1e7e34;
}

.preview-empty,
.preview-error {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 14px;
}

.preview-error {
    color: #dc3545;
}

.preview-article-list {
    padding-left: 22px;
    margin: 0;
}

.preview-article-list li {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.preview-article-list li:last-child {
    border-bottom: none;
}

.preview-article-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.preview-article-title a {
    color: #000;
    text-decoration: none;
}

.preview-article-title a:hover {
    text-decoration: underline;
}

.preview-article-meta {
    font-size: 11px;
    color: #888;
}

.preview-source {
    font-weight: 600;
}

@media (max-width: 600px) {
    .preview-modal-dialog {
        margin: 10px auto;
        max-height: calc(100vh - 20px);
        width: calc(100% - 20px);
    }
}

/* Desktop: nascondi i blocchi mobile */
@media (min-width: 769px) {
    .mobile-feed-blocks {
        display: none;
    }
}