/**
 * Oumma Contact - Submissions Page Styles
 * Design System v9.4 - Full Width
 */

/* ═══════════════════════════════════════════════════════════
   FULL WIDTH LAYOUT
   ═══════════════════════════════════════════════════════════ */
.oumc-submissions-page {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.oumc-submissions-page .oumc-box {
    width: 100%;
    max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════════════════ */
.oumc-messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════════════════════════ */
.oumc-search-bar {
    max-width: 450px;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.oumc-search-input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.25s ease;
    background: #fff;
}

.oumc-search-input:hover {
    border-color: #94a3b8;
}

.oumc-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* ═══════════════════════════════════════════════════════════
   FILTERS - Full Width
   ═══════════════════════════════════════════════════════════ */
.oumc-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.oumc-filter-btn {
    padding: 12px 22px;
    border: 2px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #64748b;
}

.oumc-filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.oumc-filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   TOOLBAR BUTTONS
   ═══════════════════════════════════════════════════════════ */
.oumc-toolbar-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   BULK ACTIONS
   ═══════════════════════════════════════════════════════════ */
.oumc-bulk-actions {
    display: none;
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
}

.oumc-bulk-actions.active {
    display: flex;
}

.oumc-bulk-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.oumc-bulk-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.oumc-bulk-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   MESSAGES TABLE - Full Width
   ═══════════════════════════════════════════════════════════ */
.oumc-messages-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.oumc-messages-table thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.oumc-messages-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
    color: #000000;
    vertical-align: middle;
}

.oumc-messages-table tbody tr {
    transition: all 0.2s ease;
}

.oumc-messages-table tbody tr:hover {
    background: linear-gradient(90deg, #eff6ff, transparent);
}

.oumc-messages-table tbody tr:last-child td {
    border-bottom: none;
}

/* Checkbox column */
.oumc-messages-table .cb-column {
    width: 50px;
    text-align: center;
}

.oumc-messages-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3b82f6;
}

/* ═══════════════════════════════════════════════════════════
   MESSAGE ROW DETAILS
   ═══════════════════════════════════════════════════════════ */
.oumc-msg-sender {
    font-weight: 700;
    color: #000000;
    font-size: 15px;
}

.oumc-msg-email {
    font-size: 14px;
    color: #64748b;
}

.oumc-msg-preview {
    color: #64748b;
    font-size: 14px;
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oumc-msg-date {
    font-size: 14px;
    color: #94a3b8;
    white-space: nowrap;
}

.oumc-msg-form {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════
   MESSAGE ACTIONS
   ═══════════════════════════════════════════════════════════ */
.oumc-msg-actions {
    display: flex;
    gap: 8px;
}

.oumc-msg-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #64748b;
}

.oumc-msg-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.oumc-msg-btn.delete:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.oumc-msg-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ═══════════════════════════════════════════════════════════
   MESSAGE MODAL
   ═══════════════════════════════════════════════════════════ */
.oumc-message-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.oumc-message-modal.active {
    display: flex;
}

.oumc-message-content {
    background: #fff;
    width: 100%;
    max-width: 650px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.oumc-message-header {
    padding: 24px 28px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.oumc-message-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.oumc-message-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.25s ease;
}

.oumc-message-close:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #000000;
}

.oumc-message-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.oumc-message-field {
    margin-bottom: 20px;
}

.oumc-message-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
}

.oumc-message-value {
    font-size: 15px;
    color: #000000;
    line-height: 1.7;
    padding: 14px 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    word-wrap: break-word;
    border: 1px solid #e2e8f0;
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */
.oumc-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
}

.oumc-empty-state .dashicons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.oumc-empty-state h3 {
    font-size: 20px;
    color: #000000;
    margin: 0 0 10px 0;
}

.oumc-empty-state p {
    font-size: 15px;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════ */
.oumc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}

.oumc-page-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #64748b;
}

.oumc-page-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.oumc-page-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

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

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .oumc-msg-preview {
        max-width: 250px;
    }
}

@media (max-width: 782px) {
    .oumc-messages-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .oumc-search-bar {
        max-width: 100%;
    }
    
    .oumc-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .oumc-messages-table thead th,
    .oumc-messages-table tbody td {
        padding: 14px;
    }
    
    .oumc-msg-preview {
        max-width: 150px;
    }
}
