/* Centralized CoBrowser Styles - Include on all pages with support functionality */

/* CoBrowser Reset and Base Styles */
.cbio-reset * { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

.cobrowse-end-button,
[class*="end-session"],
[id*="end-session"],
.cobrowse-control-button[title*="End"],
.cobrowse-control-button[aria-label*="End"] {
    display: none !important;
    visibility: hidden !important;
}

.cbio-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8fafc;
    line-height: 1.6;
}

.cbio-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.cbio-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 24px;
    margin-bottom: 20px;
}

.cbio-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cbio-btn-primary {
    background: #3b82f6;
    color: white;
}

.cbio-btn-primary:hover {
    background: #2563eb;
}

.cbio-btn-success {
    background: #0E4B99;
    color: white;
}

.cbio-btn-success:hover {
    background: #3b82f7;
}

.cbio-btn-danger {
    background: #ef4444;
    color: white;
}

.cbio-btn-danger:hover {
    background: #dc2626;
}

.cbio-btn-outline {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.cbio-btn-outline:hover {
    background: #f9fafb;
}

.cbio-form-group {
    margin-bottom: 16px;
}

.cbio-form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.cbio-form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.cbio-form-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.cbio-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 16px;
}

.cbio-status-connecting {
    background: #fef3c7;
    color: #92400e;
}

.cbio-status-active {
    background: #d1fae5;
    color: #065f46;
}

.cbio-status-paused {
    background: #fecaca;
    color: #991b1b;
}

.cbio-session-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.cbio-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cbio-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.cbio-modal.cbio-show {
    display: flex;
}

.cbio-modal-content {
    background: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cbio-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cbio-brand-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #0E4B99);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.cbio-modal-controls {
    display: flex;
    gap: 10px;
}

.cbio-icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.cbio-icon-btn:hover {
    background: #f3f4f6;
}

/* Minimized floating card */
.cbio-minimized-card {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    padding: 16px;
    z-index: 1500;
    min-width: 280px;
    border: 1px solid #e5e7eb;
    display: none;
    animation: cbio-slideIn 0.3s ease-out;
}

.cbio-minimized-card.cbio-show {
    display: block;
}

.cbio-minimized-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cbio-minimized-title {
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.cbio-minimized-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.cbio-minimized-controls {
    display: flex;
    gap: 8px;
}

.cbio-mini-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.cbio-mini-btn:hover {
    background: #f3f4f6;
}

.cbio-loading {
    text-align: center;
    padding: 40px 20px;
}

.cbio-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: cbio-spin 1s linear infinite;
    margin: 0 auto 16px;
}

.cbio-hidden {
    display: none !important;
}

.cbio-text-center {
    text-align: center;
}

.cbio-mb-4 {
    margin-bottom: 16px;
}

.cbio-mt-4 {
    margin-top: 16px;
}

@keyframes cbio-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes cbio-slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cbio-h1 {
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: bold;
}

.cbio-h2 {
    color: #374151;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 600;
}

.cbio-h3 {
    color: #374151;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 600;
}

.cbio-p {
    color: #6b7280;
    margin-bottom: 16px;
}

.cbio-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.cbio-width-full {
    width: 100%;
}

.cbio-font-size-12 {
    font-size: 12px;
}

.cbio-color-gray {
    color: #6b7280;
}

.cbio-margin-top-16 {
    margin-top: 16px;
}

/* Custom Consent Dialog Styles */
.savvi-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: savvi-fadeIn 0.3s ease-out forwards;
}

.savvi-consent-dialog {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    animation: savvi-slideIn 0.3s ease-out 0.1s forwards;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.savvi-consent-header {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    padding: 24px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.savvi-consent-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: savvi-shimmer 3s linear infinite;
}

.savvi-brand-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.savvi-consent-title {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.savvi-consent-body {
    padding: 32px 24px;
    text-align: center;
}

.savvi-consent-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
    overflow: hidden;
}

.savvi-consent-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: savvi-rotate 2s linear infinite;
}

.savvi-consent-message {
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.savvi-consent-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 32px;
}

.savvi-consent-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.savvi-consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    min-width: 100px;
}

.savvi-consent-btn-deny {
    background: #f3f4f6;
    color: #6b7280;
}

.savvi-consent-btn-deny:hover {
    background: #e5e7eb;
    color: #374151;
}

.savvi-consent-btn-allow {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
    position: relative;
    overflow: hidden;
}

.savvi-consent-btn-allow:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.savvi-consent-btn-allow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.savvi-consent-btn-allow:hover::before {
    transform: translateX(100%);
}

@keyframes savvi-fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes savvi-slideIn {
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes savvi-shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes savvi-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Support button styling */
.support-button {
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.support-button:hover {
    opacity: 0.8;
} 