body {
    background: #f8fafc;
    color: #334155;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

#wrapper {
    display: flex;
    min-height: 100vh;
}

#content-wrapper {
    flex-grow: 1;
    min-width: 0;
    max-width: calc(100vw - 250px);
    margin-left: 250px;
    padding: 24px 30px;
    transition: margin-left 0.3s;
}

.event-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.event-page-title {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.event-create-btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    background: #2563eb !important;
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.event-create-btn:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.event-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Table Design */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

#eventTable {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

#eventTable th {
    padding: 16px;
    background: #f1f5f9;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#eventTable td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Column Widths (TOTAL 6 COLS) */
#eventTable th:nth-child(1), #eventTable td:nth-child(1) { width: 110px; } /* Hình */
#eventTable th:nth-child(2), #eventTable td:nth-child(2) { width: auto; }  /* Tiêu đề */
#eventTable th:nth-child(3), #eventTable td:nth-child(3) { width: 100px; text-align: center; } /* Loại */
#eventTable th:nth-child(4), #eventTable td:nth-child(4) { width: 180px; } /* Thời gian */
#eventTable th:nth-child(5), #eventTable td:nth-child(5) { width: 120px; text-align: center; } /* Trạng thái */
#eventTable th:nth-child(6), #eventTable td:nth-child(6) { width: 110px; } /* Thao tác */

.event-row {
    transition: all 0.2s;
}

.event-row:hover {
    background-color: #f8fafc;
}

.event-thumb-container {
    width: 80px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #f1f5f9;
}

.event-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-thumb-placeholder {
    width: 80px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 10px;
}

.event-upload-preview {
    position: relative;
    width: 240px;
    height: 160px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
    margin-top: 12px;
}

.event-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-upload-preview .btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
    margin-bottom: 2px;
}

.event-description {
    color: #64748b;
    font-size: 13px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success { background: #ecfdf5 !important; color: #059669 !important; border: 1px solid #10b981 !important; }
.badge-danger { background: #fef2f2 !important; color: #dc2626 !important; border: 1px solid #ef4444 !important; }
.badge-info { background: #eff6ff !important; color: #2563eb !important; border: 1px solid #3b82f6 !important; }

.event-time-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
}

.event-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.event-actions .btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    transition: all 0.2s;
}

.btn-edit-event:hover {
    color: #2563eb !important;
    border-color: #2563eb !important;
    background: #eff6ff !important;
    transform: scale(1.05);
}

.btn-delete-event:hover {
    color: #dc2626 !important;
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@media (max-width: 992px) {
    #content-wrapper {
        margin-left: 70px;
        max-width: calc(100vw - 70px);
        padding: 20px;
    }
}
