/* ==========================================================================
   PRODUCTS SECTION - VIBRANT LATAM DESIGN
   Colorful, beautiful, efficient - inspired by LATAM culture
   ========================================================================== */

/* Color Palette - LATAM Inspired */
:root {
    --latm-red: #DC2626;
    --latm-orange: #F97316;
    --latm-yellow: #FBBF24;
    --latm-green: #10B981;
    --latm-blue: #3B82F6;
    --latm-purple: #8B5CF6;
    --latm-pink: #EC4899;
}

/* Compact Header with Color */
.products-compact-header {
    margin-bottom: 24px;
}

.products-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #DC2626 0%, #F97316 100%);
    padding: 20px 24px;
    border-radius: 12px;
    color: white;
}

.products-title-row h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: white;
}

.products-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    height: 40px;
}

.compact-search,
.compact-select {
    height: 40px;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: #1a202c;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    outline: none;
}

.compact-search {
    padding: 0 14px;
    width: 210px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.compact-search:focus {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.compact-search::placeholder {
    color: #9CA3AF;
}

.compact-select {
    padding: 0 10px;
    cursor: pointer;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    font-size: 15px;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: white;
    color: #DC2626;
    transform: scale(1.05);
}

.btn-add-product {
    padding: 0 16px;
    height: 40px;
    background: white;
    color: #DC2626;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.btn-add-product:hover {
    background: #FEF2F2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Vibrant Stats */
.products-stats-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #E5E7EB;
    transition: all 0.2s;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #1F2937;
}

.stat-label {
    font-size: 12px;
    color: #6B7280;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.stat-item.success {
    border-left-color: var(--latm-green);
}

.stat-item.success .stat-value {
    color: var(--latm-green);
}

.stat-item.warning {
    border-left-color: var(--latm-orange);
}

.stat-item.warning .stat-value {
    color: var(--latm-orange);
}

.stat-item.muted {
    border-left-color: #9CA3AF;
}

/* Colorful Filter Tabs */
.filter-tabs-compact {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tab-compact {
    padding: 10px 18px;
    border: 2px solid #E5E7EB;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-compact.active {
    background: linear-gradient(135deg, #DC2626 0%, #F97316 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.tab-compact:hover:not(.active) {
    background: #FEF2F2;
    border-color: #DC2626;
    transform: translateY(-1px);
}

/* Big Beautiful Cards */
.products-list-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.product-card-wide {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.product-card-wide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--latm-red);
}

.product-card-header {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, #F9FAFB 0%, #E5E7EB 100%);
    overflow: visible !important; /* CHANGED FROM HIDDEN */
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badge-new {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-active {
    background: linear-gradient(135deg, var(--latm-green) 0%, #059669 100%);
    color: white;
}

.badge-inactive {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    color: white;
}

.badge-low-stock {
    background: linear-gradient(135deg, var(--latm-orange) 0%, #EA580C 100%);
    color: white;
}

.badge-out-stock {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.product-card-body {
    padding: 20px;
}

.product-card-title-new {
    font-size: 17px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.product-card-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 11px;
    color: #9CA3AF;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
}

.meta-value.price {
    font-size: 22px;
    color: var(--latm-red);
}

.meta-value.stock-ok {
    color: var(--latm-green);
}

.meta-value.stock-low {
    color: var(--latm-orange);
}

.meta-value.stock-out {
    color: #EF4444;
}

.product-card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px;
    background: #F9FAFB;
    border-radius: 8px;
}

.info-tag {
    font-size: 12px;
    color: #6B7280;
    font-weight: 600;
}

.product-card-actions-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-card-action {
    padding: 12px 20px;
    border: 2px solid #E5E7EB;
    background: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-card-action.primary {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    color: white;
    border-color: transparent;
}

.btn-card-action.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-card-action.danger {
    color: #EF4444;
    border-color: #FEE2E2;
}

.btn-card-action.danger:hover {
    background: #FEF2F2;
    border-color: #EF4444;
}

/* Loading & Empty States */
.loading-state {
    text-align: center;
    padding: 80px 20px;
    color: #6B7280;
}

.loading-state i {
    font-size: 48px;
    color: var(--latm-red);
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6B7280;
}

.empty-state i {
    font-size: 64px;
    color: #D1D5DB;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #1F2937;
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
}

/* Pagination */
.pagination-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.page-btn {
    width: 42px;
    height: 42px;
    border: 2px solid #E5E7EB;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.page-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--latm-red) 0%, var(--latm-orange) 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    font-size: 15px;
    color: #6B7280;
    font-weight: 600;
}

/* Modern Elegant Modal */
.modern-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modern-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modern-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s;
}

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

.modal-header-modern {
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--latm-red) 0%, var(--latm-orange) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-modern h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: white;
    font-size: 18px;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.modal-body-modern {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.modal-section {
    margin-bottom: 28px;
}

.product-images-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.product-images-gallery img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #E5E7EB;
    transition: all 0.2s;
    cursor: pointer;
}

.product-images-gallery img:hover {
    border-color: var(--latm-red);
    transform: scale(1.05);
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row.full-width {
    grid-column: 1 / -1;
}

.info-row label {
    font-size: 13px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-input {
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    font-weight: 500;
}

.modal-input:focus {
    outline: none;
    border-color: var(--latm-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border-radius: 12px;
}

.modal-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.modal-stat i {
    font-size: 24px;
    color: var(--latm-red);
}

.modal-stat strong {
    display: block;
    font-size: 20px;
    color: #1F2937;
    font-weight: 800;
}

.modal-stat span {
    display: block;
    font-size: 11px;
    color: #9CA3AF;
    text-transform: uppercase;
    font-weight: 700;
}

.modal-footer-modern {
    padding: 20px 28px;
    border-top: 2px solid #F3F4F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer-right {
    display: flex;
    gap: 12px;
}

.btn-modal {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-modal.btn-primary {
    background: linear-gradient(135deg, var(--latm-red) 0%, var(--latm-orange) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-modal.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.btn-modal.btn-secondary {
    background: #F3F4F6;
    color: #6B7280;
}

.btn-modal.btn-secondary:hover {
    background: #E5E7EB;
}

.btn-modal.btn-delete {
    background: white;
    color: #EF4444;
    border: 2px solid #FEE2E2;
}

.btn-modal.btn-delete:hover {
    background: #FEF2F2;
    border-color: #EF4444;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .products-title-row {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .products-title-row h2 {
        font-size: 22px;
    }

    .products-header-actions {
        flex-direction: column;
        width: 100%;
    }

    .compact-search {
        width: 100%;
    }

    .btn-add-product {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .products-stats-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .filter-tabs-compact {
        overflow-x: auto;
    }

    .products-list-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card-header {
        height: 240px;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .modal-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .modal-footer-modern {
        flex-direction: column;
        gap: 12px;
    }

    .modal-footer-right {
        width: 100%;
        flex-direction: column;
    }

    .btn-modal {
        width: 100%;
        justify-content: center;
    }
}

/* CRITICAL FIX: Ensure products list is visible */
#products-list {
    display: block !important;
    width: 100% !important;
}

.products-list-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 20px !important;
}

.product-card-wide {
    display: block !important;
}

.product-card-header {
    position: relative !important;
    height: 280px !important;
    overflow: hidden !important;
}

.product-card-header > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* ===== ELEGANT VIOLATIONS SECTION ===== */

/* Elegant Header */
.violations-elegant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F3F4F6;
}

.violations-title-section {
    flex: 1;
}

.violations-main-title {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.violations-subtitle {
    font-size: 15px;
    color: #6B7280;
    margin: 0;
    font-weight: 400;
}

.violations-refresh-btn {
    background: white;
    border: 1px solid #E5E7EB;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B7280;
}

.violations-refresh-btn:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    color: #111827;
}

.violations-refresh-btn i {
    font-size: 16px;
}

/* Elegant Stats Cards */
.violations-stats-elegant {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-elegant {
    background: white;
    border: 1px solid #F3F4F6;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.stat-elegant:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: #E5E7EB;
}

.stat-elegant-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-elegant-icon.total {
    background: #F9FAFB;
    color: #6B7280;
}

.stat-elegant-icon.pending {
    background: #FFF7ED;
    color: #F59E0B;
}

.stat-elegant-icon.resolved {
    background: #ECFDF5;
    color: #10B981;
}

.stat-elegant-icon.rejected {
    background: #FEF2F2;
    color: #EF4444;
}

.stat-elegant-content {
    flex: 1;
}

.stat-elegant-value {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.stat-elegant-label {
    font-size: 13px;
    color: #6B7280;
    font-weight: 400;
}

/* Elegant Filters */
.violations-filter-elegant {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-elegant-btn {
    background: white;
    border: 1px solid #E5E7EB;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-elegant-btn:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    color: #111827;
}

.filter-elegant-btn.active {
    background: #111827;
    border-color: #111827;
    color: white;
}

/* Elegant Loader */
.elegant-loader {
    width: 40px;
    height: 40px;
    border: 3px solid #F3F4F6;
    border-top-color: #111827;
    border-radius: 50%;
    animation: elegant-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes elegant-spin {
    to { transform: rotate(360deg); }
}

/* Violations List - Table Style */
.violations-elegant-list {
    background: white;
    border: 1px solid #F3F4F6;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
}

.violation-elegant-item {
    display: grid;
    grid-template-columns: 80px 1fr 180px 150px 120px;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid #F9FAFB;
    align-items: center;
    transition: background 0.2s ease;
}

.violation-elegant-item:last-child {
    border-bottom: none;
}

.violation-elegant-item:hover {
    background: #FAFBFC;
}

.violation-elegant-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #F9FAFB;
}

.violation-elegant-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.violation-elegant-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.violation-elegant-product {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

.violation-elegant-type {
    font-size: 13px;
    color: #6B7280;
}

.violation-elegant-reason {
    font-size: 13px;
    color: #9CA3AF;
    line-height: 1.5;
}

.violation-elegant-suggestion {
    background: #FFFBEB;
    border-left: 2px solid #F59E0B;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #92400E;
    line-height: 1.6;
}

.violation-elegant-date {
    font-size: 13px;
    color: #6B7280;
}

.violation-elegant-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    width: fit-content;
}

.violation-status-pending {
    background: #FFF7ED;
    color: #B45309;
    border: 1px solid #FED7AA;
}

.violation-status-approved {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.violation-status-rejected {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.violation-status-resolved {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* Empty State */
.violations-empty-elegant {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border: 1px solid #F3F4F6;
    border-radius: 12px;
    margin-bottom: 32px;
}

.empty-elegant-icon {
    width: 80px;
    height: 80px;
    background: #ECFDF5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.empty-elegant-icon i {
    font-size: 36px;
    color: #10B981;
}

.empty-elegant-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.empty-elegant-text {
    font-size: 15px;
    color: #6B7280;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Elegant Rules Section */
.violations-rules-elegant {
    background: white;
    border: 1px solid #F3F4F6;
    border-radius: 12px;
    padding: 32px;
    margin-top: 32px;
}

.rules-elegant-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.rules-elegant-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 24px 0;
}

.rules-elegant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.rule-elegant-item {
    background: #FAFBFC;
    padding: 16px 20px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid #F3F4F6;
}

.rule-elegant-item i {
    font-size: 18px;
    color: #6B7280;
    margin-top: 2px;
}

.rule-elegant-item p {
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .violations-elegant-header {
        flex-direction: column;
        gap: 16px;
    }

    .violations-stats-elegant {
        grid-template-columns: repeat(2, 1fr);
    }

    .violation-elegant-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .violations-main-title {
        font-size: 24px;
    }

    .rules-elegant-grid {
        grid-template-columns: 1fr;
    }

    .stat-elegant-value {
        font-size: 20px;
    }
}

/* Toast Notifications */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}
