* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #0A0E17;
    color: #E5E7EB;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Main Content */
.main-content {
    flex: 1;
    background: #0A0E17;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    background: #111827;
    border-bottom: 1px solid #1F2937;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #F9FAFB;
}

.timezone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #1F2937;
    border-radius: 6px;
    font-size: 13px;
    color: #9CA3AF;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: #1F2937;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #00D9C0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #0A0E17;
    font-size: 14px;
}

/* Filters Section */
.filters-section {
    padding: 0 32px;
    margin-bottom: 24px;
}

.filters-row-main {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: center;
    padding: 16px;
    background: #111827;
    border-radius: 8px;
}

.filters-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    color: #9CA3AF;
    white-space: nowrap;
}

.filter-select {
    padding: 10px 16px;
    background: #1F2937;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #E5E7EB;
    font-size: 14px;
    min-width: 120px;
    outline: none;
}

.btn-reset {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #9CA3AF;
    font-size: 14px;
    cursor: pointer;
}

.btn-search {
    padding: 10px 24px;
    background: #00D9C0;
    border: none;
    border-radius: 6px;
    color: #0A0E17;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.results-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.results-label {
    color: #9CA3AF;
    font-size: 14px;
    white-space: nowrap;
}

.results-select {
    padding: 10px 16px;
    background: #1F2937;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #E5E7EB;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.date-input {
    padding: 10px 16px;
    background: #111827;
    border: 1px solid #1F2937;
    border-radius: 6px;
    color: #E5E7EB;
    font-size: 14px;
    outline: none;
}

.date-separator {
    color: #6B7280;
    font-size: 16px;
}

/* Messages Table */
.table-container {
    padding: 0 32px 32px;
    overflow-x: auto;
}

.messages-table {
    width: 100%;
    border-collapse: collapse;
    background: #111827;
    border-radius: 8px;
    overflow: hidden;
}

.messages-table thead {
    background: #1F2937;
}

.messages-table th {
    padding: 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #9CA3AF;
    white-space: nowrap;
}

.messages-table tbody tr {
    border-bottom: 1px solid #1F2937;
}

.messages-table td {
    padding: 16px;
    font-size: 14px;
    color: #E5E7EB;
    vertical-align: top;
}

/* Sender & Creator Info */
.sender-info,
.creator-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sender-avatar,
.creator-avatar {
    width: 32px;
    height: 32px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #E5E7EB;
    flex-shrink: 0;
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.sender-name,
.creator-name {
    font-size: 14px;
    color: #E5E7EB;
    white-space: nowrap;
}

/* Message Preview */
.message-preview {
    display: flex;
    flex-direction: column;
    max-width: 400px;
}

.message-content {
    flex: 1;
}

.message-text {
    color: #9CA3AF;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.message-text-bold {
    color: #E5E7EB;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.script-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #374151;
    border-radius: 4px;
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 4px;
}

.media-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #1F2937;
    border-radius: 4px;
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 4px;
}

/* Time Info */
.time-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time {
    font-size: 13px;
    color: #E5E7EB;
    font-weight: 500;
}

.date {
    font-size: 12px;
    color: #6B7280;
}

/* Reply Time */
.reply-time {
    font-size: 13px;
    color: #9CA3AF;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border: none;
    background: #1F2937;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: flex-end;
    padding: 24px 32px 48px 32px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #111827;
    border: 1px solid #1F2937;
    border-radius: 6px;
    color: #9CA3AF;
    font-size: 14px;
    cursor: pointer;
    transition: none;
}

.pagination-btn.active {
    background: #00D9C0;
    color: #0A0E17;
    border-color: #00D9C0;
    font-weight: 600;
}

.pagination-dots {
    color: #6B7280;
    font-size: 14px;
    padding: 0 4px;
}

/* Scrollbar Styling */
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #111827;
}

.table-container::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .filters-row-main {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .results-per-page {
        margin-left: 0;
        width: 100%;
    }
    
    .date-filter {
        flex-direction: column;
    }
    
    .pagination-container {
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}
