/* =====================================================
   EZY.AI Connection Page - Premium Dark Design
   ===================================================== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* Reset & Base */
.ezy-connection-page {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: -20px -20px 0 0;
    padding: 0;
    min-height: 100vh;
    color: #ffffff;
}

/* Referral Banner - Extended Orange */
.ezy-referral-banner {
    background: linear-gradient(90deg, #f16001 0%, #e55a00 50%, #d95501 100%);
    padding: 20px 30px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(241, 96, 1, 0.3);
}

.ezy-referral-text {
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ezy-invite-btn {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.6);
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.ezy-invite-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

/* Invite Modal Styles */
.ezy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
}

.ezy-modal {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: ezy-modal-appear 0.3s ease-out;
}

@keyframes ezy-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ezy-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ezy-modal-close:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

.ezy-modal-header {
    padding: 30px 30px 20px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ezy-modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.ezy-modal-header p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.ezy-modal-body {
    padding: 30px;
}

.ezy-form-group {
    margin-bottom: 20px;
}

.ezy-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

.ezy-form-group input,
.ezy-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ezy-form-group input:focus,
.ezy-form-group textarea:focus {
    outline: none;
    border-color: #f16001;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(241, 96, 1, 0.1);
}

.ezy-form-group input::placeholder,
.ezy-form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.ezy-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.ezy-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.ezy-btn-secondary {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ezy-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.ezy-btn-primary {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f16001 0%, #e55a00 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ezy-btn-primary:hover {
    background: linear-gradient(135deg, #ff7020 0%, #f16001 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(241, 96, 1, 0.4);
}

.ezy-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ezy-invite-success {
    text-align: center;
    padding: 20px 0;
}

.ezy-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
    margin: 0 auto 20px auto;
}

.ezy-invite-success h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.ezy-invite-success p {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.ezy-invite-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
}

.ezy-error-message {
    margin: 0;
    font-size: 13px;
    color: #ef4444;
}

/* Main Header */
.ezy-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    gap: 30px;
}

.ezy-header-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ezy-logo-section {
    flex-shrink: 0;
}

.ezy-logo-img {
    height: 50px;
    width: auto;
}

.ezy-title-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 10px;
}

.ezy-main-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    letter-spacing: -1px;
}

.ezy-main-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-weight: 400;
}


/* Three Column Grid */
.ezy-three-column-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 24px;
    padding: 0 40px 40px;
}

/* Panel Base Styles - Glassy with no color/hue */
.ezy-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.ezy-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ezy-panel-header h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.ezy-panel-body {
    padding: 24px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Status Badge */
.ezy-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.ezy-status-connected {
    color: #10b981;
}

.ezy-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ezy-status-disconnected {
    color: rgba(255,255,255,0.5);
}

.ezy-status-retrying {
    color: #f59e0b;
}

.ezy-status-failed {
    color: #ef4444;
}

.ezy-retry-status {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
}

.ezy-retry-message {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.ezy-retry-message p {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

/* Info Rows */
.ezy-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ezy-info-row:last-of-type {
    border-bottom: none;
}

.ezy-info-label {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
}

.ezy-info-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

/* Button Styles */
.ezy-button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.ezy-btn {
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.ezy-btn-full {
    width: 100%;
}

.ezy-btn-primary {
    background: linear-gradient(135deg, #f16001 0%, #e55a00 100%);
    color: #ffffff;
    border: 1px solid transparent;
}

.ezy-btn-primary:hover {
    background: linear-gradient(135deg, #ff7020 0%, #f16001 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(241, 96, 1, 0.4);
    color: #ffffff;
}

.ezy-btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
}

.ezy-btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    color: #ffffff;
}

/* Sync Info Box */
.ezy-sync-info {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}

.ezy-sync-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.ezy-sync-info p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.5;
}

/* Plugin Version */
.ezy-plugin-version {
    margin-top: 24px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* Score Section - Circular Progress */
.ezy-score-section {
    text-align: center;
    margin-bottom: 30px;
}

.ezy-score-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-align: left;
}

.ezy-score-gauge-circular {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.ezy-circular-svg {
    width: 100%;
    height: 100%;
}

.ezy-segment-active {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(94, 234, 212, 0.6)) drop-shadow(0 0 6px rgba(45, 212, 191, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.9)) drop-shadow(0 0 12px rgba(45, 212, 191, 0.6));
    }
}

.ezy-score-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ezy-score-number {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.ezy-score-percent {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.ezy-score-completion {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin: 16px 0 0 0;
    text-align: left;
}

/* Visits Section */
.ezy-visits-section {
    margin-top: 20px;
}

.ezy-visits-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
}

/* Stats Grid */
.ezy-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.ezy-stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.ezy-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 6px;
}

.ezy-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ezy-chart-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin: 0 0 12px 0;
}

.ezy-visits-chart-container {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    box-sizing: border-box;
    overflow: hidden;
}

/* Pill Chart Styles */
.ezy-pill-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100px;
    gap: 12px;
    width: 100%;
}

.ezy-pill-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    max-width: 20px;
}

.ezy-pill-bar {
    width: 100%;
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    min-height: 8px;
    margin-top: auto;
}

.ezy-pill-bar:hover {
    background: linear-gradient(180deg, #93c5fd 0%, #60a5fa 100%);
    transform: scaleY(1.05);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.ezy-pill-label {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
}

.ezy-chart-svg {
    width: 100%;
    height: 120px;
    display: block;
    overflow: visible;
}

.ezy-chart-labels {
    display: flex;
    justify-content: space-between;
    padding: 8px 0 0 0;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

.ezy-visits-total {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.ezy-visits-empty {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255,255,255,0.5);
}

.ezy-visits-empty p {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.ezy-visits-empty span {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* Features List */
.ezy-features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ezy-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ezy-feature-item:hover {
    background: rgba(255,255,255,0.05);
}

.ezy-feature-check-icon {
    width: 24px;
    height: 24px;
    background: rgba(66, 170, 81, 0.15);
    border: 2px solid #42AA51;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #42AA51;
    flex-shrink: 0;
}

.ezy-feature-check-icon svg {
    width: 14px;
    height: 14px;
    stroke: #42AA51;
}

.ezy-feature-name {
    flex: 1;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.ezy-feature-edit {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.ezy-feature-edit:hover {
    color: #f16001;
}

/* Empty State */
.ezy-empty-state {
    text-align: center;
    padding: 20px 0;
}

.ezy-empty-state p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 8px 0;
}

/* Pending Connection */
.ezy-pending-connection {
    text-align: center;
}

.ezy-auth-code-display h3 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 16px;
}

.ezy-auth-code {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 10px;
    color: #f16001;
    background: rgba(241, 96, 1, 0.1);
    border: 2px solid rgba(241, 96, 1, 0.3);
    border-radius: 12px;
    padding: 20px;
    font-family: 'Courier New', monospace;
}

.ezy-auth-hint {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-top: 12px;
}

.ezy-dashboard-link {
    margin: 24px 0;
}

.ezy-polling-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

.ezy-polling-status .spinner {
    float: none;
    margin: 0;
}

/* How to Connect */
.ezy-how-to-connect {
    margin-top: 24px;
    padding: 16px;
    background: rgba(241, 96, 1, 0.08);
    border: 1px solid rgba(241, 96, 1, 0.2);
    border-radius: 10px;
}

.ezy-how-to-connect h4 {
    color: #f16001;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.ezy-how-to-connect ol {
    margin: 0;
    padding-left: 20px;
    color: rgba(255,255,255,0.8);
}

.ezy-how-to-connect li {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ezy-three-column-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .ezy-features-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .ezy-main-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .ezy-search-section {
        text-align: center;
    }
    
    .ezy-main-title {
        font-size: 28px;
    }
    
    .ezy-three-column-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 20px;
    }
    
    .ezy-referral-banner {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
}

/* WordPress Admin Overrides */
body.toplevel_page_ezy-ai-connection #wpcontent {
    padding-left: 0 !important;
}

body.toplevel_page_ezy-ai-connection #wpbody-content {
    padding-bottom: 0 !important;
}

body.toplevel_page_ezy-ai-connection .notice {
    margin: 20px 40px;
    background: rgba(255,255,255,0.1);
    border-left-width: 4px;
    color: #ffffff;
}

body.toplevel_page_ezy-ai-connection .notice p {
    color: #ffffff;
}

/* Hidden utility class */
.ezy-hidden {
    display: none !important;
}

/* Button loading state */
.ezy-btn-loading {
    display: none;
}

.ezy-btn-loading:not(.ezy-hidden) {
    display: inline;
}

/* =====================================================
   Content Sync Panel
   ===================================================== */

.ezy-sync-panel {
    margin: 0;
}

.ezy-sync-panel-header {
    flex-wrap: wrap;
    gap: 12px;
}

.ezy-sync-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ezy-sync-refresh-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.ezy-sync-refresh-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border-color: rgba(255,255,255,0.3);
}

.ezy-sync-refresh-btn .ezy-refresh-icon {
    display: inline-block;
}

.ezy-sync-refresh-btn.ezy-refreshing {
    pointer-events: none;
    opacity: 0.6;
}

.ezy-sync-refresh-btn.ezy-refreshing .ezy-refresh-icon {
    animation: ezy-spin 1s linear infinite;
}

@keyframes ezy-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ezy-sync-all-btn {
    padding: 10px 24px;
    font-size: 13px;
    border-radius: 8px;
    white-space: nowrap;
}

.ezy-sync-all-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ezy-sync-description {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

.ezy-sync-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ezy-sync-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ezy-sync-table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 12px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ezy-sync-table tbody td {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
    font-size: 13px;
}

.ezy-sync-table tbody tr:last-child td {
    border-bottom: none;
}

.ezy-sync-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.ezy-sync-label {
    color: #ffffff;
    font-weight: 500;
    width: 40%;
}

.ezy-sync-status {
    width: 30%;
}

.ezy-sync-action {
    width: 30%;
    text-align: right;
}

.ezy-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.ezy-sync-badge-none {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.45);
}

.ezy-sync-badge-available {
    background: rgba(45, 212, 191, 0.1);
    color: #2dd4bf;
    border: 1px solid rgba(45, 212, 191, 0.25);
}

.ezy-sync-badge-ok {
    background: #10b981;
    color: #ffffff;
    border: 1px solid #10b981;
}

.ezy-sync-badge-ok::before {
    content: '\2713';
    font-size: 11px;
}

.ezy-btn-sm {
    padding: 7px 18px;
    font-size: 12px;
    border-radius: 6px;
}

.ezy-sync-generate-link {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.ezy-sync-generate-link:hover {
    color: #f16001;
}

.ezy-sync-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: ezy-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes ezy-spin {
    to { transform: rotate(360deg); }
}

.ezy-btn-uploaded {
    background: #10b981;
    border: 1px solid #10b981;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ezy-btn-uploaded:hover {
    background: #059669;
    border-color: #059669;
}

.ezy-sync-timestamp {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-top: 3px;
}

.ezy-sync-success {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #10b981 !important;
}

.ezy-sync-error {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #ef4444 !important;
}

.ezy-sync-loading {
    text-align: center;
    padding: 30px 16px !important;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
}

@media (max-width: 768px) {
    .ezy-sync-table {
        table-layout: auto;
    }

    .ezy-sync-label,
    .ezy-sync-status,
    .ezy-sync-action {
        width: auto;
    }
}

/* Toast Notifications */
.ezy-toast-container {
    position: fixed;
    top: 40px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.ezy-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
    max-width: 440px;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #fff;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.ezy-toast.ezy-toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.ezy-toast.ezy-toast-hiding {
    transform: translateX(120%);
    opacity: 0;
}

.ezy-toast-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(5, 150, 105, 0.92));
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.ezy-toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(185, 28, 28, 0.92));
    border: 1px solid rgba(252, 165, 165, 0.3);
}

.ezy-toast-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(217, 119, 6, 0.92));
    border: 1px solid rgba(252, 211, 77, 0.3);
}

.ezy-toast-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(29, 78, 216, 0.92));
    border: 1px solid rgba(147, 197, 253, 0.3);
}

.ezy-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.ezy-toast-body {
    flex: 1;
    min-width: 0;
}

.ezy-toast-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.ezy-toast-message {
    font-weight: 400;
    font-size: 12.5px;
    opacity: 0.92;
}

.ezy-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    transition: color 0.15s;
    margin-top: -2px;
}

.ezy-toast-close:hover {
    color: #fff;
}
