/* Main layout */
.dante-admin {
    display: flex;
    min-height: calc(100vh - 32px);
    background: #f0f0f1;
}

/* Sidebar styles */
.dante-sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid #dcdcde;
    padding: 20px 0;
}

.dante-logo {
    padding: 6px 10px 10px;
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 12px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    background: linear-gradient(to right, #f8f9fa, #ffffff, #f8f9fa);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dante-logo img {
    max-width: 70%;
    height: auto;
    max-height: 35px;
    filter: drop-shadow(0 1px 2px rgba(99, 102, 241, 0.1));
    position: relative;
    top: -2px;
}

.dante-logo a {
    outline: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dante-logo a:focus {
    outline: none;
    box-shadow: none;
}

/* Removing the logo hover effect */
.dante-logo:hover img {
    transform: none;
}

.dante-nav {
    display: flex;
    flex-direction: column;
}

.dante-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #1d2327;
    text-decoration: none;
    font-size: 14px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.dante-nav-item:hover {
    background: #f6f7f7;
    color: #2271b1;
}

.dante-nav-item.active {
    background: #f0f7fc;
    color: #2271b1;
    border-left-color: #2271b1;
}

.dante-nav-icon {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

/* Main content area */
.dante-content {
    flex: 1;
    padding: 24px;
    max-width: 1200px;
}

.dante-wrap {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dante-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.dante-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0;
    padding: 0;
}

.dante-welcome-text {
    color: #646970;
    font-size: 14px;
    margin-top: 8px;
}

.dante-welcome-text a {
    color: #007cba;
    text-decoration: none;
}

.dante-welcome-text a:hover {
    text-decoration: underline;
}

/* Section styles */
.dante-section {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 24px;
}

.dante-section-header {
    margin-bottom: 24px;
}

.dante-section-title {
    font-size: 16px;
    font-weight: 500;
    color: #1d2327;
    margin: 0 0 8px;
}

.dante-section-description {
    color: #50575e;
    font-size: 14px;
    margin: 0;
}

/* Step styles */
.dante-step-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.dante-step-number {
    width: 32px;
    height: 32px;
    background: #007cba;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 16px;
    flex-shrink: 0;
}

.dante-step-info {
    flex-grow: 1;
}

.dante-step-action {
    margin-top: 24px;
    padding-left: 48px;
}

/* Status styles */
.dante-status-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dante-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.dante-status-badge .dashicons {
    margin-right: 8px;
}

.dante-status-badge.success {
    background: #edfaef;
    color: #00844a;
}

.dante-status-badge.warning {
    background: #fcf9e7;
    color: #996800;
}

.dante-status-badge.error {
    background: #fef2f2;
    color: #dc2626;
}

.dante-status-badge.error .dashicons {
    color: #dc2626;
}

/* Form elements */
.dante-form-row {
    margin-bottom: 24px;
}

.dante-form-row:last-child {
    margin-bottom: 0;
}

.dante-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d2327;
}

.dante-input {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 14px;
}

.dante-select {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

/* Button styles */
.dante-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.dante-btn:hover {
    /* Generic hover style for all buttons */
    text-decoration: none;
}

.dante-btn-primary {
    background: #2271b1;
    color: #fff;
}

.dante-btn-primary:hover {
    background: #135e96;
    color: white;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.dante-btn-primary:disabled {
    background: #72aee6;
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.8);
}

.dante-btn-secondary {
    background: #f6f7f7;
    color: #2271b1;
    border: 1px solid #2271b1;
}

.dante-btn-secondary:hover {
    background: #f0f0f1;
    color: #135e96;
}

/* Additional specificity for important buttons */
a.dante-btn-primary,
button.dante-btn-primary,
.dante-step-action .dante-btn-primary,
.dante-status-info .dante-btn-primary {
    background: #2271b1;
    color: #fff;
    text-decoration: none;
}

a.dante-btn-primary:hover,
button.dante-btn-primary:hover,
.dante-step-action .dante-btn-primary:hover,
.dante-status-info .dante-btn-primary:hover {
    background: #135e96;
    color: #ffffff !important;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

/* Premium card */
.dante-premium-card {
    background: #a61e4d;
    color: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
}

.dante-premium-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.dante-premium-card p {
    font-size: 14px;
    margin: 0 0 16px 0;
    opacity: 0.9;
}

.dante-premium-features {
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.dante-premium-features li {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 8px;
}

.dante-premium-features li:before {
    content: "✓";
    margin-right: 8px;
    font-weight: bold;
}

.dante-btn-premium {
    background: #ffd700;
    color: #1d2327;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.2s;
}

.dante-btn-premium:hover {
    background: #ffed4a;
    transform: translateY(-1px);
}

/* Support section */
.dante-support-section {
    background: #f0f7fc;
    border: 1px solid #007cba;
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
}

.dante-support-section h3 {
    color: #007cba;
    font-size: 16px;
    margin: 0 0 12px 0;
}

.dante-support-section p {
    color: #1d2327;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.dante-support-email {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.dante-support-email:hover {
    text-decoration: underline;
}

/* Message styles */
.dante-message {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 16px;
    display: flex;
    align-items: center;
}

.dante-message.success {
    background-color: #e7f5ea;
    color: #0c6b1d;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #0c6b1d;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.dante-message.error {
    background-color: #fef0f0;
    color: #b71c1c;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #b71c1c;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.dante-message.warning {
    background-color: #fff9e6;
    color: #966100;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #966100;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.dante-message.loading {
    background-color: #f0f8ff;
    color: #0073aa;
    padding: 10px 15px;
    border-left: 4px solid #0073aa;
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.dante-message.loading:before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: #0073aa;
    border-radius: 50%;
    margin-right: 10px;
    animation: dante-spin 1s linear infinite;
}

.dante-loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 115, 170, 0.2);
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: dante-spin 1s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes dante-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Alert Styles */
.dante-floating-alert {
    position: fixed;
    top: 32px;
    right: 32px;
    padding: 12px 20px;
    background: #edfaef;
    border: 1px solid #00844a;
    border-radius: 4px;
    color: #00844a;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.dante-floating-alert:before {
    content: "✓";
    font-weight: bold;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Loading spinner */
.dante-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: dante-spin 1s linear infinite;
    margin-left: 10px;
}
@keyframes dante-spin {
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .dante-admin {
        flex-direction: column;
    }

    .dante-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dcdcde;
    }

    .dante-content {
        padding: 16px;
    }
}

/* Additional utility classes to replace inline styles */
.dante-flex-container {
    display: flex;
    gap: 16px;
}

.dante-flex-item {
    flex: 1;
}

.dante-margin-top {
    margin-top: 16px;
}

.dante-margin-top-24 {
    margin-top: 24px;
}

.dante-margin-bottom-24 {
    margin-bottom: 24px;
}

.dante-hidden {
    display: none;
}

.dante-description {
    font-size: 12px;
    color: #646970;
    margin-top: 4px;
}

.dante-font-weight-600 {
    font-weight: 600;
}

/* Progress step styles */
.dante-step-spinner {
    display: inline-block;
    margin-left: auto;
    margin-right: 15px;
    animation: dante-spin 1s linear infinite;
}

.progress-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 10px;
}

.progress-step-content {
    flex-grow: 1;
    margin-left: 15px;
}

.dante-progress-step {
    position: relative;
    padding-right: 40px;
}

/* Chatbot Details Styles */
.dante-chatbot-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    margin-top: 16px;
}

.dante-chatbot-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.dante-chatbot-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.dante-stat-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dante-stat-icon {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dante-stat-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.dante-stat-content {
    flex: 1;
}

.dante-stat-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.dante-stat-value {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.dante-stat-value.status-active {
    color: #059669;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.dante-stat-value.status-inactive {
    color: #dc2626;
    background: #fef2f2;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Statistics Loading and Error States */
.dante-loading-stats {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: #64748b;
    font-style: italic;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px dashed #cbd5e1;
}

.dante-stat-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 4px;
    border: 1px solid #fee2e2;
    font-weight: 500;
}

/* Fallback warning styles */
.dante-fallback-warning,
.dante-warning-note,
.dante-error-note {
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.dante-fallback-warning {
    background-color: #fff8e5;
    border-left: 4px solid #ffb900;
    color: #826200;
}

.dante-warning-note {
    background-color: #fff8e5;
    border-left: 4px solid #ffb900;
    color: #826200;
}

.dante-error-note {
    background-color: #fbeaea;
    border-left: 4px solid #dc3232;
    color: #8a2424;
}

/* Status button variations */
.dante-status-badge.limited {
    background-color: #ffb900;
    color: #fff;
}

.dante-version {
    display: inline-block;
    font-size: 12px;
    color: #666;
    background: #f0f0f1;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Modal Styles */
.dante-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: danteModalFadeIn 0.3s ease-out;
}

.dante-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    animation: danteModalSlideIn 0.3s ease-out;
}

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

.dante-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #1d2327;
}

.dante-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #646970;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.dante-modal-close:hover {
    background: #f6f7f7;
    color: #135e96;
}

.dante-modal-body {
    padding: 24px;
}

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

.dante-modal-content {
    max-height: 70vh;
    overflow-y: auto;
}

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

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

/* Progress indicator for chatbot creation */
.dante-progress {
    margin-top: 20px;
}

.dante-progress-step {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.dante-progress-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f0f1;
    color: #646970;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
}

.dante-progress-indicator.active {
    background: #2271b1;
    color: #fff;
}

.dante-progress-indicator.completed {
    background: #00844a;
    color: #fff;
}

.dante-progress-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dante-progress-title {
    font-weight: 500;
    font-size: 14px;
    color: #1d2327;
    margin-bottom: 4px;
}

.dante-progress-description {
    font-size: 12px;
    color: #646970;
}