/* Tryly.ai Admin Styles - Minimalist Design */

/* Main Container */
.tryly-admin-wrap {
    margin: 20px 20px 0 2px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tryly-admin-container {
    max-width: 100%;
    margin: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.tryly-admin-header {
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.tryly-logo {
    display: inline-block;
    margin-bottom: 20px;
}

/* Content */
.tryly-admin-content {
    padding: 40px;
}

/* Connect Section */
.tryly-connect-section {
    text-align: center;
}

.tryly-connect-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Connect Button */
.tryly-connect-button {
    display: inline-block;
    padding: 14px 32px;
    background: #5e17eb;
    color: white;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tryly-connect-button:hover {
    background: #4e07db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(94, 23, 235, 0.3);
}

.tryly-connect-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Connected Section */
.tryly-connected-section {
    text-align: center;
}

/* Status */
.tryly-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tryly-status-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.tryly-status-text {
    font-size: 14px;
    color: #10b981;
    font-weight: 500;
}

/* Account Info */
.tryly-account-info {
    font-size: 16px;
    color: #333;
    margin-bottom: 30px;
}

/* Actions */
.tryly-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.tryly-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.tryly-button-primary {
    background: #5e17eb;
    color: white;
}

.tryly-button-primary:hover {
    background: #4e07db;
    color: white;
    text-decoration: none;
}

.tryly-button:not(.tryly-button-primary) {
    background: #f3f4f6;
    color: #374151;
}

.tryly-button:not(.tryly-button-primary):hover {
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
}

.tryly-button-secondary {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.tryly-button-secondary:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

/* Error Message Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Loading Spinner */
.tryly-connect-button:disabled::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tab Navigation */
.tryly-tabs-nav {
    display: flex;
    gap: 0;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 0;
}

.tryly-tab {
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    position: relative;
    background: transparent;
}

.tryly-tab:hover {
    color: #374151;
    background: #ffffff;
    text-decoration: none;
}

.tryly-tab.active {
    color: #5e17eb;
    background: #ffffff;
    border-bottom-color: #5e17eb;
}

.tryly-tab:focus {
    outline: none;
    box-shadow: none;
}

/* Tab Content */
.tryly-tab-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

/* Connection Status Bar */
.tryly-connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 6px;
    font-size: 14px;
}

.tryly-connection-status.connected {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.tryly-connection-status.not-connected {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.tryly-connection-status .status-icon::before {
    content: "●";
    font-size: 12px;
}

.tryly-connection-status.connected .status-icon::before {
    color: #10b981;
}

.tryly-connection-status.not-connected .status-icon::before {
    color: #f59e0b;
}

/* Get Started Tab - New Onboarding Design */
.tryly-onboarding-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tryly-onboarding-header {
    text-align: center;
    margin-bottom: 48px;
}

.tryly-onboarding-header h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    color: #111827;
    font-weight: 600;
}

.tryly-subtitle {
    margin: 0;
    font-size: 16px;
    color: #6b7280;
}

/* Onboarding Steps */
.tryly-onboarding-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
}

.tryly-onboarding-step {
    flex: 1;
    max-width: 320px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.tryly-onboarding-step:hover {
    border-color: #5e17eb;
    box-shadow: 0 8px 16px rgba(94, 23, 235, 0.15);
    transform: translateY(-2px);
}

.step-number-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #5e17eb, #7c3aed);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin: 0 auto 16px;
}

.step-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #111827;
}

.step-content p {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 14px;
}

/* Step Divider */
.step-divider {
    width: 60px;
    height: 2px;
    background: #e5e7eb;
    position: relative;
}

.step-divider::after {
    content: "→";
    position: absolute;
    top: -12px;
    right: -10px;
    font-size: 20px;
    color: #d1d5db;
}

/* Button Styles Update */
.tryly-button-outline {
    background: white;
    color: #5e17eb;
    border: 2px solid #5e17eb;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.tryly-button-outline:hover {
    background: #5e17eb;
    color: white;
    text-decoration: none;
}

/* Feature Grid */
.tryly-onboarding-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.tryly-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tryly-feature {
    text-align: center;
}

.feature-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
    color: #5e17eb;
}

.tryly-feature strong {
    display: block;
    color: #111827;
    font-size: 14px;
    margin-bottom: 4px;
}

.tryly-feature span {
    color: #6b7280;
    font-size: 12px;
}

/* Success State */
.success-checkmark {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 16px;
}

/* Connected Actions */
.tryly-connected-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.tryly-action-card {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.tryly-action-card:hover {
    border-color: #5e17eb;
    box-shadow: 0 8px 16px rgba(94, 23, 235, 0.15);
    text-decoration: none;
    transform: translateY(-2px);
    background: white;
}

.action-icon {
    display: block;
    font-size: 36px;
    margin-bottom: 12px;
    color: #5e17eb;
}

.tryly-action-card h3 {
    margin: 0 0 8px 0;
    color: #111827;
    font-size: 16px;
}

.tryly-action-card p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

/* Disconnect Section */
.tryly-disconnect-section {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* How It Works Tab */
.tryly-how-it-works h2,
.tryly-troubleshooting h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #111827;
    font-size: 24px;
}

.tryly-section {
    margin-bottom: 32px;
}

.tryly-section h3 {
    color: #111827;
    font-size: 18px;
    margin-bottom: 16px;
}

.tryly-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.tryly-info-box h4 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #1e40af;
    font-size: 16px;
}

.tryly-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comparison-column {
    background: white;
    padding: 16px;
    border-radius: 6px;
}

.comparison-column strong {
    display: block;
    margin-bottom: 12px;
    color: #111827;
    font-size: 14px;
}

.comparison-column ul {
    margin: 0;
    padding-left: 20px;
    color: #4b5563;
    font-size: 14px;
}

/* Process Flow */
.tryly-process-flow {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.flow-step {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.flow-step strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 14px;
}

.flow-step span {
    color: #6b7280;
    font-size: 13px;
}

.flow-arrow {
    color: #9ca3af;
    font-size: 20px;
    flex-shrink: 0;
}

/* Info Note */
.tryly-info-note {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
}

.tryly-info-note p {
    margin: 0;
    color: #92400e;
}

/* Products Columns */
.tryly-products-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.products-supported h4,
.products-not-supported h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #111827;
    font-size: 15px;
}

/* Supported Products */
.tryly-supported-products,
.tryly-unsupported-products {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 16px 16px 32px;
    list-style: none;
}

.tryly-supported-products li {
    margin-bottom: 8px;
    color: #059669;
}

.tryly-unsupported-products li {
    margin-bottom: 8px;
    color: #dc2626;
}

/* Troubleshooting Tab */
.tryly-faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.tryly-faq-item h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #111827;
    font-size: 16px;
}

.tryly-faq-item p {
    color: #4b5563;
    margin-bottom: 12px;
}

.tryly-faq-item ul,
.tryly-faq-item ol {
    margin: 0;
    padding-left: 20px;
    color: #4b5563;
}

.tryly-faq-item li {
    margin-bottom: 6px;
}

/* Support Options */
.tryly-support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.support-option {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
}

.support-option strong {
    color: #111827;
}

/* Status Table */
.tryly-status-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.tryly-status-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.tryly-status-table td:first-child {
    font-weight: 500;
    color: #4b5563;
}

.status-connected {
    color: #10b981;
}

.status-not-connected {
    color: #ef4444;
}

/* Modal Styles */
.tryly-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tryly-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tryly-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tryly-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #111827;
}

.tryly-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.tryly-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.tryly-modal-body {
    padding: 20px;
}

.tryly-modal-body p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.6;
}

.tryly-modal-body ol,
.tryly-modal-body ul {
    margin: 16px 0;
    padding-left: 24px;
    color: #4b5563;
}

.tryly-modal-body li {
    margin-bottom: 8px;
}

.tryly-modal-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.tryly-modal-footer .button {
    margin: 0;
}

.tryly-have-account,
.tryly-try-again {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .tryly-tabs-nav {
        flex-direction: column;
    }

    .tryly-tab {
        border-bottom: none;
        border-left: 2px solid transparent;
        margin-bottom: 0;
        margin-left: -2px;
    }

    .tryly-tab.active {
        border-left-color: #5e17eb;
        border-bottom-color: transparent;
    }

    /* Onboarding Responsive */
    .tryly-onboarding-steps {
        flex-direction: column;
        gap: 16px;
    }

    .step-divider {
        width: 2px;
        height: 40px;
        margin: 0 auto;
    }

    .step-divider::after {
        content: "↓";
        top: auto;
        bottom: -18px;
        left: -8px;
        right: auto;
    }

    .tryly-feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tryly-connected-actions {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tryly-comparison {
        grid-template-columns: 1fr;
    }

    .tryly-products-columns {
        grid-template-columns: 1fr;
    }

    .tryly-process-flow {
        flex-direction: column;
        text-align: left;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 600px) {
    .tryly-admin-container {
        border-radius: 0;
        box-shadow: none;
    }

    .tryly-admin-header,
    .tryly-admin-content {
        padding: 24px;
    }

    .tryly-actions {
        flex-direction: column;
    }

    .tryly-button {
        width: 100%;
    }
}
