.wgcrm-root {
    min-height: 80vh;
    padding: 3rem 1rem;
}

.wgcrm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.wgcrm-panel {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.wgcrm-panel h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

 .wgcrm-sync-controls {
     display: flex;
     flex-direction: column;
     gap: 0.5rem;
     margin-bottom: 1rem;
 }

.wgcrm-sync-controls button {
    border-radius: 12px;
    border: none;
    padding: 0.75rem 1rem;
    background: #1e73be;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.wgcrm-sync-controls button:disabled {
    opacity: 0.6;
    cursor: default;
}

.wgcrm-sync-message {
    font-size: 0.9rem;
    color: #333;
}

.wgcrm-pipelines {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wgcrm-pipeline-card {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(30, 115, 190, 0.08);
}

.wgcrm-task-list,
.wgcrm-deal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wgcrm-task-list li,
.wgcrm-deal-list li {
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
}

.wgcrm-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.wgcrm-form input {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.65rem;
}

.wgcrm-form button {
    border-radius: 10px;
    border: none;
    background: #1e73be;
    color: #fff;
    padding: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.wgcrm-integration-status {
    border: 1px dashed rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: 10px;
    margin-top: 0.5rem;
}

.wgcrm-integration-status strong {
    display: block;
    margin-bottom: 0.35rem;
}

.wgcrm-integration-status p {
    margin: 0;
    color: #d84315;
}

.wgcrm-integration-sync-time {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.65);
}

.wgcrm-integration-error {
    color: #b71c1c;
    font-weight: 600;
}

.wgcrm-event-history {
    display: grid;
    gap: 0.75rem;
}

.wgcrm-event-card {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 25px rgba(15, 33, 54, 0.08);
}

.wgcrm-event-card header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wgcrm-event-channel {
    font-weight: 700;
}

.wgcrm-event-type {
    color: #1e73be;
}

.wgcrm-event-status {
    color: #2d7aff;
}

.wgcrm-event-message {
    margin: 0;
    color: rgba(0, 0, 0, 0.75);
}

.wgcrm-event-card footer {
    margin-top: 0.5rem;
}

.wgcrm-event-card small {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.55);
}

.wgcrm-event-billing {
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.08), rgba(255, 255, 255, 0.5));
}

.wgcrm-event-calendar {
    background: linear-gradient(135deg, rgba(15, 140, 90, 0.08), rgba(255, 255, 255, 0.5));
}

@media (max-width: 600px) {
    .wgcrm-root {
        padding: 1.5rem 1rem;
    }
}
