/* /Pages/NewsManagement.razor.rz.scp.css */
/* News Management Page Styles */

.news-management-container[b-0mfc5hk0mk] {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px;
}

.page-title[b-0mfc5hk0mk] {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

/* Form Container */
.news-form-container[b-0mfc5hk0mk] {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-section-title[b-0mfc5hk0mk] {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9ecef;
}

.form-section[b-0mfc5hk0mk] {
    margin-bottom: 16px;
}

.form-section:last-child[b-0mfc5hk0mk] {
    margin-bottom: 0;
}

/* Dates Section - Grid Layout */
.dates-section[b-0mfc5hk0mk] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

/* Language Fields Section - Grid Layout */
.language-fields-section[b-0mfc5hk0mk] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.language-group[b-0mfc5hk0mk] {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px;
}

.language-group-label[b-0mfc5hk0mk] {
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.language-group-label.ru[b-0mfc5hk0mk] {
    border-left: 3px solid #dc3545;
    padding-left: 6px;
}

.language-group-label.en[b-0mfc5hk0mk] {
    border-left: 3px solid #007bff;
    padding-left: 6px;
}

.language-group-label.zh[b-0mfc5hk0mk] {
    border-left: 3px solid #ffc107;
    padding-left: 6px;
}

/* Form Fields */
.form-group[b-0mfc5hk0mk] {
    margin-bottom: 8px;
}

.form-group:last-child[b-0mfc5hk0mk] {
    margin-bottom: 0;
}

.form-label[b-0mfc5hk0mk] {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.form-label.required[b-0mfc5hk0mk]::after {
    content: " *";
    color: #dc3545;
}

.form-input[b-0mfc5hk0mk],
.form-textarea[b-0mfc5hk0mk],
.form-select[b-0mfc5hk0mk] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.form-input:focus[b-0mfc5hk0mk],
.form-textarea:focus[b-0mfc5hk0mk],
.form-select:focus[b-0mfc5hk0mk] {
    outline: 0;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-textarea[b-0mfc5hk0mk] {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.form-textarea.short[b-0mfc5hk0mk] {
    min-height: 50px;
}

/* Image Upload Section */
.image-upload-section[b-0mfc5hk0mk] {
    background: #f8f9fa;
    border: 2px dashed #ced4da;
    border-radius: 4px;
    padding: 12px;
    text-align: center;
    transition: border-color 0.15s ease-in-out;
}

.image-upload-section:hover[b-0mfc5hk0mk] {
    border-color: #007bff;
}

.image-preview-container[b-0mfc5hk0mk] {
    margin-top: 8px;
}

.image-preview[b-0mfc5hk0mk] {
    max-width: 100%;
    max-height: 200px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Platforms Section */
.platforms-section[b-0mfc5hk0mk] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.platform-checkbox[b-0mfc5hk0mk] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.platform-checkbox:hover[b-0mfc5hk0mk] {
    border-color: #007bff;
    background: #f0f8ff;
}

.platform-checkbox input[type="checkbox"][b-0mfc5hk0mk] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.platform-checkbox label[b-0mfc5hk0mk] {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    flex: 1;
    font-size: 0.85rem;
}

/* Action URL Section */
.action-url-section[b-0mfc5hk0mk] {
    margin-bottom: 12px;
}

/* Submit Button */
.submit-section[b-0mfc5hk0mk] {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    margin-top: 12px;
}

.btn[b-0mfc5hk0mk] {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary[b-0mfc5hk0mk] {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover[b-0mfc5hk0mk] {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.btn-danger[b-0mfc5hk0mk] {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover[b-0mfc5hk0mk] {
    background-color: #c82333;
}

.btn-sm[b-0mfc5hk0mk] {
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* Message Alert */
.message-alert[b-0mfc5hk0mk] {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.9rem;
}

.message-alert.success[b-0mfc5hk0mk] {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-alert.error[b-0mfc5hk0mk] {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* News List Section */
.news-list-section[b-0mfc5hk0mk] {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-title[b-0mfc5hk0mk] {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9ecef;
}

/* Table Styles */
.news-table[b-0mfc5hk0mk] {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.news-table thead[b-0mfc5hk0mk] {
    background-color: #f8f9fa;
}

.news-table th[b-0mfc5hk0mk] {
    padding: 8px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.85rem;
}

.news-table td[b-0mfc5hk0mk] {
    padding: 8px;
    border-bottom: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.85rem;
}

.news-table tbody tr:hover[b-0mfc5hk0mk] {
    background-color: #f8f9fa;
}

.news-table .title-cell[b-0mfc5hk0mk] {
    max-width: 300px;
    word-wrap: break-word;
    color: #2c3e50;
    font-weight: 500;
}

.platforms-badges[b-0mfc5hk0mk] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.platform-badge[b-0mfc5hk0mk] {
    display: inline-block;
    padding: 2px 6px;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Modal Styles */
.modal-overlay[b-0mfc5hk0mk] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content[b-0mfc5hk0mk] {
    background-color: white;
    padding: 16px;
    border-radius: 6px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.modal-content h4[b-0mfc5hk0mk] {
    margin-top: 0;
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.modal-content input[b-0mfc5hk0mk] {
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    margin-bottom: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-content input:focus[b-0mfc5hk0mk] {
    outline: 0;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.modal-buttons[b-0mfc5hk0mk] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.modal-buttons button[b-0mfc5hk0mk] {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

.modal-buttons button:first-child[b-0mfc5hk0mk] {
    background-color: #007bff;
    color: white;
}

.modal-buttons button:first-child:hover[b-0mfc5hk0mk] {
    background-color: #0056b3;
}

.modal-buttons button:last-child[b-0mfc5hk0mk] {
    background-color: #6c757d;
    color: white;
}

.modal-buttons button:last-child:hover[b-0mfc5hk0mk] {
    background-color: #5a6268;
}

/* Responsive Design - 1376px */
@media (max-width: 1376px) {
    .news-management-container[b-0mfc5hk0mk] {
        padding: 8px;
    }

    .dates-section[b-0mfc5hk0mk] {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .language-fields-section[b-0mfc5hk0mk] {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .platforms-section[b-0mfc5hk0mk] {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Responsive Design - 1024px */
@media (max-width: 1024px) {
    .news-management-container[b-0mfc5hk0mk] {
        padding: 6px;
    }

    .news-form-container[b-0mfc5hk0mk],
    .news-list-section[b-0mfc5hk0mk] {
        padding: 10px;
    }

    .form-section-title[b-0mfc5hk0mk],
    .section-title[b-0mfc5hk0mk] {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .dates-section[b-0mfc5hk0mk] {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .language-fields-section[b-0mfc5hk0mk] {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .platforms-section[b-0mfc5hk0mk] {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .news-table[b-0mfc5hk0mk] {
        font-size: 0.8rem;
    }

    .news-table th[b-0mfc5hk0mk],
    .news-table td[b-0mfc5hk0mk] {
        padding: 6px;
    }

    .news-table .title-cell[b-0mfc5hk0mk] {
        max-width: 200px;
    }

    .submit-section[b-0mfc5hk0mk] {
        justify-content: stretch;
        padding-top: 10px;
        margin-top: 10px;
    }

    .btn[b-0mfc5hk0mk] {
        width: 100%;
        justify-content: center;
    }
}

/* Utility Classes */
.text-muted[b-0mfc5hk0mk] {
    color: #6c757d;
}

.mt-2[b-0mfc5hk0mk] {
    margin-top: 0.25rem;
}

.mb-0[b-0mfc5hk0mk] {
    margin-bottom: 0;
}

/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-ub435jmuk9] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-ub435jmuk9] {
    flex: 1;
}

.sidebar[b-ub435jmuk9] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-ub435jmuk9] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-ub435jmuk9]  a, .top-row .btn-link[b-ub435jmuk9] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-ub435jmuk9] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-ub435jmuk9] {
        display: none;
    }

    .top-row.auth[b-ub435jmuk9] {
        justify-content: space-between;
    }

    .top-row a[b-ub435jmuk9], .top-row .btn-link[b-ub435jmuk9] {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-ub435jmuk9] {
        flex-direction: row;
    }

    .sidebar[b-ub435jmuk9] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-ub435jmuk9] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-ub435jmuk9], article[b-ub435jmuk9] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
table[b-ub435jmuk9] {
    width: 100%;
    border-collapse: collapse;
}

th[b-ub435jmuk9], td[b-ub435jmuk9] {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th[b-ub435jmuk9] {
    background-color: #f2f2f2;
}

tr:hover[b-ub435jmuk9] {
    background-color: #f5f5f5;
}

.btn[b-ub435jmuk9] {
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
}

.filter-container[b-ub435jmuk9], .sort-container[b-ub435jmuk9] {
    margin-bottom: 15px;
}

.filter-item[b-ub435jmuk9] {
    display: inline-block;
    margin-right: 10px;
}

.navigation-buttons[b-ub435jmuk9] {
    margin-bottom: 15px;
}

.navigation-buttons .btn[b-ub435jmuk9] {
    margin-right: 10px;
}

.pagination[b-ub435jmuk9] {
    margin-top: 15px;
}
/* /Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-e12dgy5jeb] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-e12dgy5jeb] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-e12dgy5jeb] {
    font-size: 1.1rem;
}

.oi[b-e12dgy5jeb] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item[b-e12dgy5jeb] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-e12dgy5jeb] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-e12dgy5jeb] {
        padding-bottom: 1rem;
    }

    .nav-item[b-e12dgy5jeb]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-e12dgy5jeb]  a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item[b-e12dgy5jeb]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-e12dgy5jeb] {
        display: none;
    }

    .collapse[b-e12dgy5jeb] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-e12dgy5jeb] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
