/* Dashboard Container */
.wcm-dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transition: all 0.3s ease;
    min-height: 100vh;
    font-size: 14px;
    background: #f8f9fa;
    color: #333;
}

/* ===== MODO ESCURO ===== */
.wcm-dark-mode {
    background: #1a1d21 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-header {
    background: #2d3136 !important;
    border-bottom-color: #404348 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-header h1 {
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-stats-simple {
    background: #2d3136 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-stat-item {
    background: #3a3e44 !important;
}

.wcm-dark-mode .wcm-stat-label {
    color: #a0a0a0 !important;
}

.wcm-dark-mode .wcm-stat-value {
    color: #4a9eff !important;
}

.wcm-dark-mode .wcm-toolbar {
    background: #2d3136 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-search-input {
    background: #3a3e44 !important;
    border-color: #4a4e54 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-search-input:focus {
    border-color: #4a9eff !important;
    background: #3a3e44 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-order-controls label {
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-order-select {
    background: #3a3e44 !important;
    border-color: #4a4e54 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-order-btn {
    background: #3a3e44 !important;
    border-color: #4a4e54 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-order-btn:hover {
    background: #4a4e54 !important;
}

.wcm-dark-mode .wcm-table-container {
    background: #2d3136 !important;
}

.wcm-dark-mode .wcm-table {
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-table th {
    background: #3a3e44 !important;
    color: #e0e0e0 !important;
    border-bottom-color: #4a4e54 !important;
}

.wcm-dark-mode .wcm-table td {
    border-bottom-color: #3a3e44 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-table tr:hover {
    background: #3a3e44 !important;
}

.wcm-dark-mode .wcm-empty {
    color: #a0a0a0 !important;
}

.wcm-dark-mode .wcm-btn-icon {
    background: #3a3e44 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-btn-icon:hover {
    background: #4a4e54 !important;
}

.wcm-dark-mode .wcm-pagination {
    background: #2d3136 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-pagination-btn,
.wcm-dark-mode .wcm-pagination-page {
    background: #3a3e44 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-pagination-btn:hover,
.wcm-dark-mode .wcm-pagination-page:hover {
    background: #4a9eff !important;
    color: white !important;
}

.wcm-dark-mode .wcm-pagination-current {
    background: #4a9eff !important;
    color: white !important;
}

.wcm-dark-mode .wcm-pagination-info {
    color: #a0a0a0 !important;
}

.wcm-dark-mode .wcm-client-form,
.wcm-dark-mode .wcm-email-form {
    background: #2d3136 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-form-header h2 {
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-form-group label {
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-form-group input,
.wcm-dark-mode .wcm-form-group textarea,
.wcm-dark-mode .wcm-form-group select {
    background: #3a3e44 !important;
    border-color: #4a4e54 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-form-group input:focus,
.wcm-dark-mode .wcm-form-group textarea:focus {
    border-color: #4a9eff !important;
    background: #3a3e44 !important;
}

.wcm-dark-mode .wcm-settings-panel {
    background: #2d3136 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-settings-header {
    background: #3a3e44 !important;
    border-bottom-color: #4a4e54 !important;
}

.wcm-dark-mode .wcm-settings-header h3 {
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-settings-tabs {
    background: #3a3e44 !important;
    border-bottom-color: #4a4e54 !important;
}

.wcm-dark-mode .wcm-settings-tab {
    color: #a0a0a0 !important;
}

.wcm-dark-mode .wcm-settings-tab:hover {
    background: #4a4e54 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-settings-tab.active {
    background: #2d3136 !important;
    color: #4a9eff !important;
    border-bottom-color: #4a9eff !important;
}

.wcm-dark-mode .wcm-setting-group label {
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-select {
    background: #3a3e44 !important;
    border-color: #4a4e54 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-select:focus {
    border-color: #4a9eff !important;
}

.wcm-dark-mode .wcm-setting-description {
    color: #a0a0a0 !important;
}

.wcm-dark-mode .wcm-backup-list {
    background: #2d3136 !important;
    border-color: #4a4e54 !important;
}

.wcm-dark-mode .wcm-backup-item:hover {
    background: #3a3e44 !important;
}

.wcm-dark-mode .wcm-backup-details {
    color: #a0a0a0 !important;
}

.wcm-dark-mode .wcm-skeleton-stat,
.wcm-dark-mode .wcm-skeleton-row {
    background: linear-gradient(90deg, #3a3e44 25%, #4a4e54 50%, #3a3e44 75%) !important;
}

/* Botões de modo de cor */
.wcm-color-mode-toggle {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.wcm-color-mode-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: #f6f7f7;
    color: #50575e;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.wcm-color-mode-btn.active {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.wcm-color-mode-btn:hover {
    transform: translateY(-1px);
}

/* Modo escuro para botões de modo de cor */
.wcm-dark-mode .wcm-color-mode-btn {
    background: #3a3e44 !important;
    border-color: #4a4e54 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-color-mode-btn.active {
    background: #4a9eff !important;
    color: white !important;
    border-color: #4a9eff !important;
}

/* ===== CLASSES DE FONTE ===== */

/* Tamanhos de fonte */
.wcm-font-small {
    font-size: 12px !important;
}

.wcm-font-medium {
    font-size: 14px !important;
}

.wcm-font-large {
    font-size: 16px !important;
}

.wcm-font-xlarge {
    font-size: 18px !important;
}

/* Famílias de fonte SEGURAS */
.wcm-font-default {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.wcm-font-arial {
    font-family: Arial, Helvetica, sans-serif !important;
}

.wcm-font-helvetica {
    font-family: Helvetica, Arial, sans-serif !important;
}

.wcm-font-verdana {
    font-family: Verdana, Geneva, sans-serif !important;
}

.wcm-font-tahoma {
    font-family: Tahoma, Geneva, sans-serif !important;
}

.wcm-font-georgia {
    font-family: Georgia, serif !important;
}

.wcm-font-times {
    font-family: "Times New Roman", Times, serif !important;
}

/* Aplicar fontes a elementos específicos */
.wcm-font-small .wcm-table,
.wcm-font-small .wcm-btn,
.wcm-font-small .wcm-form-group input,
.wcm-font-small .wcm-form-group select,
.wcm-font-small .wcm-form-group textarea {
    font-size: 12px !important;
}

.wcm-font-medium .wcm-table,
.wcm-font-medium .wcm-btn,
.wcm-font-medium .wcm-form-group input,
.wcm-font-medium .wcm-form-group select,
.wcm-font-medium .wcm-form-group textarea {
    font-size: 14px !important;
}

.wcm-font-large .wcm-table,
.wcm-font-large .wcm-btn,
.wcm-font-large .wcm-form-group input,
.wcm-font-large .wcm-form-group select,
.wcm-font-large .wcm-form-group textarea {
    font-size: 16px !important;
}

.wcm-font-xlarge .wcm-table,
.wcm-font-xlarge .wcm-btn,
.wcm-font-xlarge .wcm-form-group input,
.wcm-font-xlarge .wcm-form-group select,
.wcm-font-xlarge .wcm-form-group textarea {
    font-size: 18px !important;
}

/* ===== FORMULÁRIO DE LOGIN ===== */

.wcm-login-required {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.wcm-login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.wcm-login-header {
    margin-bottom: 30px;
}

.wcm-login-header h2 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wcm-login-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.wcm-login-form {
    margin-bottom: 30px;
}

.wcm-custom-login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wcm-custom-login-form label {
    display: none;
}

.wcm-custom-login-form input[type="text"],
.wcm-custom-login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.wcm-custom-login-form input[type="text"]:focus,
.wcm-custom-login-form input[type="password"]:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.wcm-custom-login-form .forgetmenot {
    text-align: left;
    margin: 10px 0;
}

.wcm-custom-login-form .forgetmenot label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.wcm-custom-login-form .forgetmenot input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.wcm-custom-login-form .submit {
    margin-top: 20px;
}

.wcm-custom-login-form .wp-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.wcm-custom-login-form .wp-submit:hover {
    background: linear-gradient(135deg, #135e96, #0c4b7a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 113, 177, 0.3);
}

.wcm-login-links {
    margin-top: 20px;
    font-size: 13px;
}

.wcm-login-links a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.3s;
}

.wcm-login-links a:hover {
    color: #135e96;
    text-decoration: underline;
}

.wcm-link-separator {
    color: #999;
    margin: 0 10px;
}

.wcm-login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.wcm-login-footer p {
    color: #999;
    font-size: 12px;
    margin: 0;
}

.wcm-permission-denied {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 20px;
}

.wcm-permission-denied .wcm-login-container {
    max-width: 500px;
}

/* ===== HEADER ===== */

.wcm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    gap: 12px;
}

.wcm-header h1 {
    margin: 0;
    color: #1d2327;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* ===== BOTÕES ===== */

.wcm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wcm-btn-primary {
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: white;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.3);
}

.wcm-btn-primary:hover {
    background: linear-gradient(135deg, #135e96, #0c4b7a);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(34, 113, 177, 0.4);
}

.wcm-btn-secondary {
    background: #f6f7f7;
    color: #2271b1;
    border: 2px solid #2271b1;
}

.wcm-btn-secondary:hover {
    background: #f0f0f1;
    transform: translateY(-1px);
}

.wcm-btn-settings {
    padding: 8px 12px;
    background: #f6f7f7;
    color: #50575e;
    border: 1px solid #ddd;
}

.wcm-btn-settings:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.wcm-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: #f6f7f7;
    color: #50575e;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.wcm-btn-icon:hover {
    background: #e0e0e0;
    color: #1d2327;
    transform: translateY(-1px);
}

.wcm-btn-delete:hover {
    background: #d63638;
    color: white;
}

.wcm-btn-email:hover {
    background: #00a32a;
    color: white;
}

/* ===== CONFIGURAÇÕES ===== */

.wcm-settings-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    overflow: hidden;
}

.wcm-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f6f7f7, #e0e0e0);
    border-bottom: 1px solid #ddd;
}

.wcm-settings-header h3 {
    margin: 0;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

/* Tabs das configurações */
.wcm-settings-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
}

.wcm-settings-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #50575e;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    font-size: 13px;
}

.wcm-settings-tab:hover {
    background: #f0f0f1;
    color: #2271b1;
}

.wcm-settings-tab.active {
    border-bottom-color: #2271b1;
    color: #2271b1;
    background: white;
}

.wcm-settings-content {
    padding: 0;
}

.wcm-settings-tab-content {
    display: none;
    padding: 20px;
}

.wcm-settings-tab-content.active {
    display: block;
}

.wcm-setting-group {
    margin-bottom: 15px;
}

.wcm-setting-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1d2327;
    font-size: 13px;
}

.wcm-select {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.wcm-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

/* ===== BACKUP & EXPORT ===== */

.wcm-setting-description {
    color: #646970;
    font-size: 12px;
    margin: 5px 0 15px 0;
    line-height: 1.4;
}

.wcm-export-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Lista de backups */
.wcm-backup-list {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

.wcm-backup-list-items {
    padding: 10px;
}

.wcm-backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.wcm-backup-item:hover {
    background: #f8f9fa;
}

.wcm-backup-item:last-child {
    border-bottom: none;
}

.wcm-backup-info {
    flex: 1;
}

.wcm-backup-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.wcm-backup-name .dashicons {
    color: #2271b1;
}

.wcm-backup-details {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #646970;
}

.wcm-backup-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wcm-backup-actions {
    display: flex;
    gap: 5px;
}

.wcm-backup-loading,
.wcm-no-backups,
.wcm-backup-error {
    padding: 30px;
    text-align: center;
    color: #646970;
}

.wcm-backup-loading .dashicons,
.wcm-no-backups .dashicons,
.wcm-backup-error .dashicons {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    margin: 0 auto 10px;
}

/* Seção de restore */
.wcm-restore-section {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.wcm-restore-section select {
    flex: 1;
    min-width: 250px;
}

/* ===== ESTATÍSTICAS ===== */

.wcm-stats-simple {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.wcm-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 5px;
    min-width: 130px;
}

.wcm-stat-label {
    font-size: 11px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.wcm-stat-value {
    font-size: 18px;
    color: #2271b1;
    font-weight: 700;
}

/* ===== TOOLBAR ===== */

.wcm-toolbar {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wcm-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.wcm-search-input {
    flex: 1;
    min-width: 280px;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    transition: all 0.3s ease;
    padding-right: 40px;
}

.wcm-search-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

/* Order Controls */
.wcm-order-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.wcm-order-controls label {
    font-weight: 600;
    color: #1d2327;
    white-space: nowrap;
    font-size: 13px;
}

.wcm-order-select {
    padding: 6px 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    color: #1d2327;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    font-size: 13px;
}

.wcm-order-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.wcm-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: #f6f7f7;
    color: #50575e;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcm-order-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

/* ===== TABELA ===== */

.wcm-table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    overflow-x: auto;
    max-height: 70vh;
    overflow-y: auto;
}

.wcm-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 950px;
    font-size: 13px;
}

.wcm-table th {
    background: #f6f7f7;
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    color: #1d2327;
    border-bottom: 2px solid #e0e0e0;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.wcm-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.wcm-table tr:hover {
    background: #f9f9f9;
}

.wcm-table tr:last-child td {
    border-bottom: none;
}

.wcm-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.wcm-empty {
    text-align: center;
    padding: 50px 15px !important;
    color: #646970;
    font-size: 14px;
}

.wcm-empty .dashicons {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    width: auto;
    height: auto;
}

/* Cabeçalhos ordenáveis */
.wcm-sortable-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    position: relative;
    padding-right: 28px !important;
}

.wcm-sortable-header:hover {
    background-color: #e8e9ea;
}

.wcm-sort-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #2271b1;
}

/* ===== PAGINAÇÃO ===== */

.wcm-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    gap: 8px;
}

.wcm-pagination-pages {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.wcm-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: #f6f7f7;
    color: #2271b1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
}

.wcm-pagination-btn:hover {
    background: #2271b1;
    color: white;
    transform: translateY(-1px);
}

.wcm-pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: #2271b1;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.wcm-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: #f6f7f7;
    color: #2271b1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
}

.wcm-pagination-page:hover {
    background: #e0e0e0;
}

.wcm-pagination-dots {
    padding: 0 4px;
    color: #646970;
    font-size: 13px;
}

.wcm-pagination-info {
    font-weight: 500;
    color: #1d2327;
    padding: 0 8px;
    font-size: 13px;
}

/* ===== FORMULÁRIOS ===== */

.wcm-client-form,
.wcm-email-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.wcm-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.wcm-form-header h2 {
    margin: 0;
    color: #1d2327;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcm-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.wcm-form-group {
    display: flex;
    flex-direction: column;
}

.wcm-form-group label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.wcm-form-group input,
.wcm-form-group textarea,
.wcm-form-group select {
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.wcm-form-group input:focus,
.wcm-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

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

.wcm-form-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* ===== VALIDAÇÃO ===== */

.wcm-validation-error {
    color: #d63638;
    font-size: 11px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wcm-input-error {
    border-color: #d63638 !important;
}

/* ===== MENSAGENS ===== */

.wcm-message {
    padding: 10px 15px;
    margin: 0 0 12px 0;
    border-radius: 5px;
    display: none;
    animation: slideDown 0.3s ease;
    font-size: 13px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcm-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wcm-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wcm-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== SKELETON LOADING ===== */

.wcm-skeleton-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.wcm-skeleton-stat {
    width: 140px;
    height: 55px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}

.wcm-skeleton-table {
    background: white;
    border-radius: 10px;
    padding: 12px;
}

.wcm-skeleton-row {
    height: 35px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== LOADING STATE ===== */

.wcm-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.wcm-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SELECT2 ===== */

.select2-container--default .select2-selection--multiple {
    border: 2px solid #ddd !important;
    border-radius: 5px !important;
    min-height: 40px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #2271b1 !important;
    color: white !important;
    border: none !important;
    border-radius: 3px !important;
    padding: 4px 8px !important;
    font-size: 12px;
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 768px) {
    .wcm-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }
    
    .wcm-header h1 {
        font-size: 20px;
    }
    
    .wcm-header-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .wcm-search-form {
        flex-direction: column;
        width: 100%;
    }
    
    .wcm-search-input {
        min-width: 100%;
        padding-right: 12px;
    }
    
    .wcm-settings-tabs {
        flex-direction: column;
    }
    
    .wcm-settings-tab {
        padding: 10px;
        text-align: left;
        border-bottom: 1px solid #ddd;
        border-left: 3px solid transparent;
    }
    
    .wcm-settings-tab.active {
        border-left-color: #2271b1;
        border-bottom-color: #ddd;
    }
    
    .wcm-restore-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wcm-restore-section select {
        min-width: 100%;
    }
    
    .wcm-backup-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wcm-backup-actions {
        align-self: flex-end;
    }
    
    .wcm-table {
        min-width: 750px;
    }
}

@media (max-width: 576px) {
    .wcm-dashboard-container {
        padding: 8px;
    }
    
    .wcm-login-container {
        padding: 30px 20px;
    }
    
    .wcm-export-actions {
        flex-direction: column;
    }
    
    .wcm-backup-details {
        flex-direction: column;
        gap: 5px;
    }
}

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Scrollbar para modo escuro */
.wcm-dark-mode ::-webkit-scrollbar-track {
    background: #2d3136 !important;
}

.wcm-dark-mode ::-webkit-scrollbar-thumb {
    background: #4a4e54 !important;
}

.wcm-dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #5a5e64 !important;
}

/* ===== BACKUP AUTOMÁTICO ===== */

.wcm-auto-backup-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wcm-auto-backup-section h3 {
    margin-top: 0;
    color: #1d2327;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcm-auto-backup-status-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid #ddd;
}

.wcm-auto-backup-status-card.enabled {
    border-left-color: #46b450;
}

.wcm-auto-backup-status-card.disabled {
    border-left-color: #dc3232;
}

.wcm-auto-backup-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wcm-auto-backup-status-header h4 {
    margin: 0;
    color: #1d2327;
}

.wcm-auto-backup-status-badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcm-auto-backup-status-card.enabled .wcm-auto-backup-status-badge {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wcm-auto-backup-status-card.disabled .wcm-auto-backup-status-badge {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wcm-auto-backup-status-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.wcm-auto-backup-status-info p {
    margin: 5px 0;
    font-size: 13px;
}

.wcm-auto-backup-status-info strong {
    color: #1d2327;
    min-width: 120px;
    display: inline-block;
}

.wcm-auto-backup-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wcm-auto-backup-settings-form {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid #ddd;
}

.wcm-auto-backup-settings-form h4 {
    margin-top: 0;
    color: #1d2327;
    margin-bottom: 20px;
}

.wcm-auto-backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.wcm-auto-backup-item:hover {
    background: #f8f9fa;
}

.wcm-auto-backup-item:last-child {
    border-bottom: none;
}

.wcm-auto-backup-info {
    flex: 1;
}

.wcm-auto-backup-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.wcm-auto-backup-name .dashicons {
    color: #2271b1;
}

.wcm-auto-backup-details {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #646970;
}

.wcm-auto-backup-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wcm-no-backups {
    padding: 30px;
    text-align: center;
    color: #646970;
}

.wcm-no-backups .dashicons {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    margin: 0 auto 10px;
}

.wcm-permission-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    color: #856404;
}

.wcm-permission-warning .dashicons {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
    margin: 0 auto 15px;
}

.wcm-permission-warning p {
    margin: 10px 0;
}

/* Modo escuro para backup automático */
.wcm-dark-mode .wcm-auto-backup-section {
    background: #2d3136 !important;
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-auto-backup-section h3 {
    color: #e0e0e0 !important;
    border-bottom-color: #3a3e44 !important;
}

.wcm-dark-mode .wcm-auto-backup-status-card {
    background: #3a3e44 !important;
}

.wcm-dark-mode .wcm-auto-backup-status-header h4 {
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-auto-backup-status-info strong {
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-auto-backup-settings-form {
    background: #3a3e44 !important;
    border-color: #4a4e54 !important;
}

.wcm-dark-mode .wcm-auto-backup-settings-form h4 {
    color: #e0e0e0 !important;
}

.wcm-dark-mode .wcm-auto-backup-item:hover {
    background: #3a3e44 !important;
}

.wcm-dark-mode .wcm-auto-backup-details {
    color: #a0a0a0 !important;
}

.wcm-dark-mode .wcm-permission-warning {
    background: #3a3e44 !important;
    border-color: #4a4e54 !important;
    color: #e0e0e0 !important;
}