/* Estilos generales del dashboard */
.wpwc-dashboard {
    background: #f5f7fa;
    padding: 20px;
}

.wpwc-title {
    color: #25D366;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #25D366;
    padding-bottom: 10px;
}

.wpwc-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.wpwc-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpwc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpwc-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease;
}

.wpwc-card:hover {
    transform: translateY(-5px);
}

.wpwc-subtitle {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
    border-left: 4px solid #25D366;
    padding-left: 10px;
}

.wpwc-chart-container {
    height: 200px;
    position: relative;
}

.wpwc-table-container {
    overflow-x: auto;
}

.wpwc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.wpwc-table th,
.wpwc-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.wpwc-table th {
    background: linear-gradient(90deg, #25D366 0%, #1da851 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpwc-table tr:hover {
    background: #f9f9f9;
}

.wpwc-consolidated-report {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9f4 100%);
    border-left: 6px solid #25D366;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.wpwc-report-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 8px;
    background: #fff;
    border-radius: 5px;
    border-left: 3px solid #25D366;
}

.wpwc-label {
    font-weight: 500;
    color: #444;
}

.wpwc-value {
    font-weight: 600;
    color: #25D366;
}

.wpwc-top-agents {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpwc-top-agents li {
    padding: 8px;
    background: #f0f9f4;
    margin: 5px 0;
    border-radius: 5px;
    border-left: 3px solid #25D366;
    transition: background-color 0.3s ease;
}

.wpwc-top-agents li:hover {
    background: #e0f7e9;
}

.wpwc-filter-panel {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.wpwc-filter-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.wpwc-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpwc-select,
.wpwc-input {
    padding: 10px 15px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wpwc-select:focus,
.wpwc-input:focus {
    border-color: #25D366;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.4);
    outline: none;
}

.wpwc-button {
    padding: 10px 20px;
    background: linear-gradient(90deg, #25D366 0%, #1da851 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wpwc-button:hover {
    background: linear-gradient(90deg, #1da851 0%, #169b44 100%);
    transform: translateY(-2px);
}

.wpwc-button-secondary {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.wpwc-button-secondary:hover {
    background: linear-gradient(90deg, #c0392b 0%, #a93226 100%);
}

/* Estilos existentes para el botón de WhatsApp */
.wpwc-whatsapp-container {
    position: fixed;
    z-index: 1000;
}

.wpwc-whatsapp-button,
.wpwc-whatsapp-button.wpwc-direct-link {
    cursor: pointer;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpwc-whatsapp-button img,
.wpwc-whatsapp-button.wpwc-direct-link img {
    transition: transform 0.3s ease;
}

.wpwc-whatsapp-button img:hover,
.wpwc-whatsapp-button.wpwc-direct-link img:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Department selector */
.wpwc-agent-selector {
    display: none;
    position: absolute;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-left: 4px solid #25D366;
}

.wpwc-selector-header {
    margin-bottom: 15px;
}

.wpwc-selector-header h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.wpwc-selector-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.wpwc-department-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpwc-department-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wpwc-department-list li:hover {
    background-color: #e0f7e9;
}

.wpwc-department-list li span {
    font-size: 15px;
    color: #333;
}

.wpwc-department-icon {
    width: 24px;
    height: 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wpwc-content-grid {
        grid-template-columns: 1fr;
    }
    .wpwc-sidebar {
        order: -1;
        margin-bottom: 20px;
    }
    .wpwc-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .wpwc-date-fields {
        flex-direction: column;
        gap: 10px;
    }
    .wpwc-input {
        width: 100%;
    }
}