/* ===== Google Calendar Sync Styles ===== */

/* Sync indicator button in calendar toolbar */
.gcal-sync-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.2s;
    position: relative;
}
.gcal-sync-btn:hover {
    border-color: #059669;
    color: #059669;
}

/* Status dot */
.gcal-sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    flex-shrink: 0;
}
.gcal-sync-dot.connected { background: #059669; }
.gcal-sync-dot.syncing {
    background: #3b82f6;
    animation: gcal-pulse 1s ease-in-out infinite;
}
.gcal-sync-dot.error {
    background: #dc2626;
    animation: gcal-error-pulse 2s ease-in-out infinite;
}

@keyframes gcal-error-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 3px rgba(220,38,38,0); }
}

@keyframes gcal-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Sync spinner */
.gcal-sync-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #e0e0e0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: gcal-spin 0.7s linear infinite;
}
@keyframes gcal-spin { to { transform: rotate(360deg); } }

/* Toast notification */
.gcal-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.gcal-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.gcal-toast.error {
    background: #dc2626;
}
.gcal-toast.success {
    background: #059669;
}

/* Google-origin event badge */
.cal-google-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    color: #4285f4;
    background: rgba(66, 133, 244, 0.12);
    border-radius: 3px;
    padding: 0 3px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 14px;
}

/* Connect/disconnect in account dropdown */
.ais-gcal-section {
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 4px;
}
.ais-gcal-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    border-radius: 4px;
    transition: background 0.15s;
}
.ais-gcal-item:hover {
    background: #f3f4f6;
}
.ais-gcal-item .gcal-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.ais-gcal-status {
    font-size: 11px;
    color: #999;
    padding: 2px 12px 6px;
}
.ais-gcal-disconnect {
    color: #dc2626;
}
.ais-gcal-disconnect:hover {
    background: #fef2f2;
}
