/**
 * Admin styles for SeekMake Core with modern design inspired by seekmake.com
 *
 * @since      1.0.0
 * @package    SeekMake_Core
 */

/* ===== RESET & GLOBAL ===== */
.seekmake-admin-wrapper * {
    box-sizing: border-box;
}

.seekmake-admin-wrapper {
    margin: 0 20px 0 0;
    background: #f5f8ff;
    min-height: calc(100vh - 32px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== HEADER SECTION ===== */
.seekmake-admin-header {
    background: #ffffff;
    padding: 24px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.seekmake-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.seekmake-logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.seekmake-logo {
    height: 40px;
    width: auto;
    display: block;
}

.seekmake-tagline {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== USER INFO ===== */
.seekmake-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.seekmake-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1d6ade;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.seekmake-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.seekmake-user-email {
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.seekmake-user-status {
    color: #86efac;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.seekmake-user-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #86efac;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.seekmake-disconnect-btn {
    background: #ffffff;
    color: #ef4444;
    border: 1px solid #fecaca;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.seekmake-disconnect-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

/* ===== WELCOME SECTION ===== */
.seekmake-welcome-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.seekmake-welcome-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.seekmake-welcome-title {
    font-size: 38px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.seekmake-brand {
    color: #1d6ade;
}

.seekmake-welcome-description {
    font-size: 17px;
    color: #64748b;
    margin: 0 0 24px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== ONE TIME NOTICE ===== */
.seekmake-one-time-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 32px;
    padding: 12px 24px;
    background: #ebf3fe;
    border: 2px solid #1d6ade;
    border-radius: 50px;
    max-width: 480px;
}

.seekmake-one-time-notice svg {
    flex-shrink: 0;
}

.seekmake-one-time-notice p {
    margin: 0;
    color: #0a2d5e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* ===== FEATURES GRID ===== */
.seekmake-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.seekmake-feature-card {
    background: white;
    padding: 28px 22px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: left;
}

.seekmake-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(44, 127, 184, 0.2);
    border-color: #2c7fb8;
}

.seekmake-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.seekmake-feature-icon-quote {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.seekmake-feature-icon-dashboard {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.seekmake-feature-icon-bot {
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
    color: #7c3aed;
}

.seekmake-feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.seekmake-feature-card p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== FEATURE UNLOCK NOTICE ===== */
.seekmake-features-unlock-notice {
    margin-top: 40px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid #10b981;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.seekmake-features-unlock-notice svg {
    flex-shrink: 0;
}

.seekmake-features-unlock-notice p {
    margin: 0;
    color: #065f46;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}

/* ===== FEATURES ACTIVATED SECTION ===== */
.seekmake-features-activated {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 40px;
}

.seekmake-success-banner {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid #10b981;
    border-radius: 11px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.seekmake-success-banner svg {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.seekmake-success-banner h3 {
    margin: 0 0 6px 0;
    font-size: 19px;
    font-weight: 700;
    color: #065f46;
}

.seekmake-success-banner p {
    margin: 0;
    font-size: 14px;
    color: #047857;
}

/* ===== QUICK START GUIDE ===== */
.seekmake-quick-start {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.seekmake-quick-start h4 {
    margin: 0 0 20px 0;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
}

.seekmake-shortcode-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.seekmake-shortcode-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.seekmake-shortcode-card code {
    background: #e0e7ff;
    color: #3730a3;
    padding: 7px 11px;
    border-radius: 5px;
    font-size: 12px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    font-weight: 600;
}

.seekmake-shortcode-card span {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.seekmake-elementor-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
}

.seekmake-elementor-note svg {
    flex-shrink: 0;
}

/* ===== DASHBOARD CONTAINER ===== */
.seekmake-dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 40px 40px;
    position: relative;
}

.seekmake-dashboard-container.unauthenticated {
    max-width: 1400px;
}

/* ===== AUTH CARD ===== */
.seekmake-auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.seekmake-auth-header {
    padding: 36px 36px 32px;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, white 100%);
    border-bottom: 1px solid #e2e8f0;
}

.seekmake-auth-logo {
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
}

.seekmake-auth-logo img {
    height: 36px;
    width: auto;
}

.seekmake-auth-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.seekmake-auth-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

/* Auth Content - replaces iframe */
.seekmake-auth-content {
    padding: 40px 36px;
    background: white;
}

.seekmake-auth-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.seekmake-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.seekmake-feature-item svg {
    flex-shrink: 0;
}

.seekmake-feature-item span {
    font-size: 15px;
    color: #0f172a;
    font-weight: 500;
}

/* Auth Buttons Container */
.seekmake-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

/* Base Connect Button */
.seekmake-connect-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Sign Up Button (Primary) */
.seekmake-signup-button {
    background: linear-gradient(135deg, #2c7fb8, #1e5a8e);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(44, 127, 184, 0.4);
}

.seekmake-signup-button:hover {
    background: linear-gradient(135deg, #1e5a8e, #164a75);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 127, 184, 0.5);
    color: white;
}

/* Log In Button (Secondary) */
.seekmake-login-button {
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.seekmake-login-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-2px);
}

.seekmake-connect-button svg {
    flex-shrink: 0;
}

.seekmake-auth-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
    text-align: center;
}

.seekmake-auth-note svg {
    flex-shrink: 0;
}

/* ===== AUTHENTICATED DASHBOARD ===== */
.seekmake-authenticated-wrapper {
    position: relative;
    min-height: calc(100vh - 200px);
    padding: 0;
}

.seekmake-dashboard-main {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    max-width: 1600px;
}

.seekmake-dashboard-iframe {
    width: 100%;
    height: calc(100vh - 220px);
    min-height: 800px;
    border: 0;
    display: block;
    background: white;
}

/* Hide welcome section when authenticated */
.seekmake-dashboard-container.authenticated .seekmake-welcome-section {
    display: none;
}

/* Hide features activated banner from dashboard container when inside wrapper */
.seekmake-authenticated-wrapper+.seekmake-dashboard-container .seekmake-features-activated {
    display: none;
}

/* ===== LOADING OVERLAY ===== */
.seekmake-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 250, 252, 0.97);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.seekmake-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.seekmake-loading-content {
    text-align: center;
}

.seekmake-spinner-modern {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    position: relative;
}

.seekmake-spinner-modern::before,
.seekmake-spinner-modern::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.seekmake-spinner-modern::before {
    width: 56px;
    height: 56px;
    border-top-color: #2c7fb8;
    border-right-color: #2c7fb8;
    animation: spin 1s linear infinite;
}

.seekmake-spinner-modern::after {
    width: 40px;
    height: 40px;
    top: 8px;
    left: 8px;
    border-top-color: #45a5d6;
    border-right-color: #45a5d6;
    animation: spin 0.7s linear infinite reverse;
}

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

.seekmake-loading-text {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* ===== SETTINGS PAGE ===== */
.seekmake-settings-wrap {
    max-width: 1200px;
    background: #f8fafc;
    margin: 0;
    padding: 40px;
}

.seekmake-settings-wrap h1 {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 28px 0;
}

.seekmake-settings-wrap form {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 28px;
    margin: 0 0 28px 0;
    border-radius: 11px;
}

.seekmake-settings-info {
    margin-top: 28px;
}

.seekmake-info-box {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 22px;
    margin-bottom: 20px;
    border-radius: 11px;
}

.seekmake-info-box h3 {
    margin-top: 0;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
}

.seekmake-plugin-list,
.seekmake-shortcode-list {
    list-style: none;
    padding: 0;
}

.seekmake-plugin-list li,
.seekmake-shortcode-list li {
    padding: 11px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    margin-bottom: 7px;
    font-size: 14px;
}

.seekmake-shortcode-list code {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-weight: 600;
}

/* ===== FORM ELEMENTS ===== */
#seekmake_manufacturer_id {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#seekmake_manufacturer_id:focus {
    border-color: #2c7fb8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 127, 184, 0.1);
}

.seekmake-settings-wrap .description {
    color: #64748b;
    font-size: 13px;
    margin-top: 7px;
    line-height: 1.5;
    font-weight: 400;
}

/* ===== BUTTONS ===== */
.seekmake-settings-wrap .button-primary {
    background: linear-gradient(135deg, #2c7fb8, #1e5a8e);
    border: none;
    color: white;
    padding: 11px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(44, 127, 184, 0.35);
}

.seekmake-settings-wrap .button-primary:hover,
.seekmake-settings-wrap .button-primary:focus {
    background: linear-gradient(135deg, #1e5a8e, #164a75);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 127, 184, 0.45);
}

/* ===== NOTICES ===== */
.notice.seekmake-notice {
    position: relative;
    padding: 14px 18px;
    margin: 18px 0;
    border-radius: 8px;
    border-left: 4px solid;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1400px) {
    .seekmake-dashboard-iframe {
        height: calc(100vh - 300px);
    }
}

@media screen and (max-width: 782px) {
    .seekmake-admin-wrapper {
        margin: 0 10px 0 0;
    }

    .seekmake-admin-header {
        padding: 18px 20px;
    }

    .seekmake-header-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .seekmake-user-info {
        width: 100%;
        justify-content: space-between;
    }

    .seekmake-welcome-section {
        padding: 36px 20px;
    }

    .seekmake-welcome-title {
        font-size: 28px;
    }

    .seekmake-welcome-description {
        font-size: 15px;
    }

    .seekmake-features-grid {
        grid-template-columns: 1fr;
    }

    .seekmake-dashboard-container {
        padding: 20px;
    }

    .seekmake-auth-header,
    .seekmake-iframe-container,
    .seekmake-auth-footer {
        padding: 20px;
    }

    .seekmake-iframe-container {
        min-height: 650px;
    }

    .seekmake-auth-iframe {
        height: 650px;
    }

    .seekmake-dashboard-iframe {
        height: calc(100vh - 400px);
        min-height: 500px;
    }

    .seekmake-settings-wrap {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .seekmake-welcome-title {
        font-size: 24px;
    }

    .seekmake-logo-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .seekmake-user-info {
        padding: 10px;
    }

    .seekmake-disconnect-btn {
        padding: 6px 11px;
        font-size: 11px;
    }

    .seekmake-auth-iframe {
        height: 600px;
    }
}

/* ===== FEATURES GRID ===== */
.seekmake-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.seekmake-feature-card {
    background: white;
    padding: 32px 24px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: left;
}

.seekmake-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(29, 106, 222, 0.15);
    border-color: #1d6ade;
}

.seekmake-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.seekmake-feature-icon-quote {
    background: #ebf3fe;
    color: #1d6ade;
}

.seekmake-feature-icon-dashboard {
    background: #fef3c7;
    color: #d97706;
}

.seekmake-feature-icon-bot {
    background: #ede9fe;
    color: #7c3aed;
}

.seekmake-feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.seekmake-feature-card p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ===== FEATURE UNLOCK NOTICE ===== */
.seekmake-features-unlock-notice {
    margin-top: 48px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.seekmake-features-unlock-notice svg {
    flex-shrink: 0;
}

.seekmake-features-unlock-notice p {
    margin: 0;
    color: #1e40af;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

/* ===== FEATURES ACTIVATED SECTION ===== */
.seekmake-features-activated {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

.seekmake-success-banner {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.seekmake-success-banner svg {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.seekmake-success-banner h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #065f46;
}

.seekmake-success-banner p {
    margin: 0;
    font-size: 15px;
    color: #047857;
}

/* ===== QUICK START GUIDE ===== */
.seekmake-quick-start {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.seekmake-quick-start h4 {
    margin: 0 0 24px 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.seekmake-shortcode-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.seekmake-shortcode-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seekmake-shortcode-card code {
    background: #e0e7ff;
    color: #3730a3;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.seekmake-shortcode-card span {
    font-size: 13px;
    color: #64748b;
}

.seekmake-elementor-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 16px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 14px;
    color: #92400e;
}

.seekmake-elementor-note svg {
    flex-shrink: 0;
}

/* ===== DASHBOARD CONTAINER ===== */
.seekmake-dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
}

.seekmake-dashboard-container.unauthenticated {
    max-width: 1200px;
}

/* ===== AUTH CARD ===== */
.seekmake-auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.seekmake-auth-header {
    padding: 40px 40px 32px;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, white 100%);
    border-bottom: 1px solid #e2e8f0;
}

.seekmake-auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.seekmake-auth-header p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.seekmake-iframe-wrapper {
    padding: 40px;
    min-height: 600px;
    position: relative;
}

.seekmake-auth-iframe {
    width: 100%;
    height: 600px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
}

.seekmake-auth-footer {
    padding: 24px 40px 32px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.seekmake-auth-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.seekmake-auth-note svg {
    flex-shrink: 0;
}

/* ===== MAIN DASHBOARD ===== */
.seekmake-main-dashboard {
    background: white;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.seekmake-dashboard-iframe {
    width: 100%;
    height: calc(100vh - 280px);
    min-height: 700px;
    border: 0;
    display: block;
}

/* ===== LOADING OVERLAY ===== */
.seekmake-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.seekmake-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.seekmake-loading-content {
    text-align: center;
}

.seekmake-spinner-modern {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    position: relative;
}

.seekmake-spinner-modern::before,
.seekmake-spinner-modern::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.seekmake-spinner-modern::before {
    width: 60px;
    height: 60px;
    border-top-color: #1d6ade;
    border-right-color: #1d6ade;
    animation: spin 1s linear infinite;
}

.seekmake-spinner-modern::after {
    width: 44px;
    height: 44px;
    top: 8px;
    left: 8px;
    border-top-color: #60a5fa;
    border-right-color: #60a5fa;
    animation: spin 0.7s linear infinite reverse;
}

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

.seekmake-loading-text {
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

/* ===== SETTINGS PAGE ===== */
.seekmake-settings-wrap {
    max-width: 1200px;
    background: #f8fafc;
    margin: 0;
    padding: 40px;
}

.seekmake-settings-wrap h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 32px 0;
}

.seekmake-settings-wrap form {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 32px;
    margin: 0 0 32px 0;
    border-radius: 12px;
}

.seekmake-settings-info {
    margin-top: 32px;
}

.seekmake-info-box {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 12px;
}

.seekmake-info-box h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.seekmake-plugin-list,
.seekmake-shortcode-list {
    list-style: none;
    padding: 0;
}

.seekmake-plugin-list li,
.seekmake-shortcode-list li {
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
}

.seekmake-shortcode-list code {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

/* ===== FORM ELEMENTS ===== */
#seekmake_manufacturer_id {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#seekmake_manufacturer_id:focus {
    border-color: #1d6ade;
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 106, 222, 0.1);
}

.seekmake-settings-wrap .description {
    color: #64748b;
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.5;
}

/* ===== BUTTONS ===== */
.seekmake-settings-wrap .button-primary {
    background: #1d6ade;
    border: none;
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(29, 106, 222, 0.25);
}

.seekmake-settings-wrap .button-primary:hover,
.seekmake-settings-wrap .button-primary:focus {
    background: #0a2d5e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 106, 222, 0.35);
}

/* ===== NOTICES ===== */
.notice.seekmake-notice {
    position: relative;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1400px) {
    .seekmake-dashboard-iframe {
        height: calc(100vh - 300px);
    }
}

@media screen and (max-width: 782px) {
    .seekmake-admin-wrapper {
        margin: 0 10px 0 0;
    }

    .seekmake-admin-header {
        padding: 20px;
    }

    .seekmake-header-content {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .seekmake-user-info {
        width: 100%;
        justify-content: space-between;
    }

    .seekmake-welcome-section {
        padding: 40px 20px;
    }

    .seekmake-welcome-title {
        font-size: 32px;
    }

    .seekmake-welcome-description {
        font-size: 16px;
    }

    .seekmake-features-grid {
        grid-template-columns: 1fr;
    }

    .seekmake-dashboard-container {
        padding: 20px;
    }

    .seekmake-auth-header,
    .seekmake-iframe-wrapper,
    .seekmake-auth-footer {
        padding: 24px 20px;
    }

    .seekmake-dashboard-iframe {
        height: calc(100vh - 400px);
        min-height: 500px;
    }

    .seekmake-settings-wrap {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .seekmake-welcome-title {
        font-size: 24px;
    }

    .seekmake-logo-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .seekmake-user-info {
        padding: 12px;
    }

    .seekmake-disconnect-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ===== SUCCESS OVERLAY ===== */
.seekmake-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.seekmake-success-overlay.active {
    opacity: 1;
}

.seekmake-success-content {
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.seekmake-success-overlay.active .seekmake-success-content {
    transform: scale(1);
}

.seekmake-success-checkmark-container {
    margin: 0 auto 32px;
    width: 120px;
    height: 120px;
}

.seekmake-success-checkmark {
    width: 120px;
    height: 120px;
    display: block;
}

.seekmake-success-checkmark-circle {
    stroke: #22c55e;
    stroke-width: 3;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-linecap: round;
    fill: #22c55e;
    animation: stroke-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.seekmake-success-overlay.active .seekmake-success-checkmark-circle {
    animation: stroke-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards;
}

.seekmake-success-checkmark-check {
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.seekmake-success-overlay.active .seekmake-success-checkmark-check {
    animation: stroke-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.7s forwards;
}

@keyframes stroke-circle {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes stroke-check {
    100% {
        stroke-dashoffset: 0;
    }
}

.seekmake-success-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.seekmake-success-message {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* ===== SUCCESS STATE (AUTHENTICATED) ===== */
.seekmake-success-state {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.seekmake-success-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.seekmake-success-icon-large {
    margin: 0 auto 32px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.seekmake-success-heading {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.seekmake-success-description {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.seekmake-activated-widgets {
    margin: 0 0 40px 0;
    padding: 32px;
    background: #f5f8ff;
    border-radius: 16px;
}

.seekmake-activated-widgets h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 24px 0;
    text-align: center;
}

.seekmake-widget-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.seekmake-widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.seekmake-widget-item:hover {
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.seekmake-widget-item svg {
    flex-shrink: 0;
}

.seekmake-widget-item span {
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
}

.seekmake-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.seekmake-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.seekmake-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.seekmake-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    color: white;
}

.seekmake-btn-secondary {
    background: white;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.seekmake-btn-secondary:hover {
    background: #f5f3ff;
    transform: translateY(-1px);
    color: #4f46e5;
    border-color: #4f46e5;
}

@media screen and (max-width: 768px) {
    .seekmake-success-card {
        padding: 40px 24px;
    }

    .seekmake-success-heading {
        font-size: 24px;
    }

    .seekmake-activated-widgets {
        padding: 24px 16px;
    }

    .seekmake-success-actions {
        flex-direction: column;
    }

    .seekmake-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== NEXT STEPS SECTION ===== */
.seekmake-next-steps {
    margin-top: 48px;
    text-align: left;
}

.seekmake-next-steps>h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 32px 0;
    text-align: center;
}

.seekmake-step-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.seekmake-step-card:hover {
    border-color: #1d6ade;
    box-shadow: 0 4px 12px rgba(29, 106, 222, 0.1);
}

.seekmake-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.seekmake-step-content {
    flex: 1;
}

.seekmake-step-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.seekmake-step-content p {
    font-size: 15px;
    color: #475569;
    margin: 0 0 20px 0;
    line-height: 1.7;
}

.seekmake-shortcode-examples {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.seekmake-shortcode-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: white;
    border: 2px solid #e0e7ff;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.seekmake-shortcode-item:hover {
    border-color: #a5b4fc;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.seekmake-shortcode-item code {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4338ca;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    border: 1px solid #c7d2fe;
}

.seekmake-shortcode-item span {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .seekmake-step-card {
        flex-direction: column;
        padding: 24px;
    }

    .seekmake-step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .seekmake-shortcode-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===== NEW SUCCESS SCREEN DESIGN (LOVABLE-INSPIRED) ===== */
.seekmake-new-success-wrapper {
    background: #f8fafc;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    padding: 0;
    margin: -24px;
}

/* Success Header */
.seekmake-success-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 40px;
}

.seekmake-success-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.seekmake-header-logo img {
    height: 32px;
    width: auto;
}

.seekmake-dashboard-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.seekmake-dashboard-link:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.seekmake-dashboard-link svg {
    width: 16px;
    height: 16px;
}

/* Success Hero Section */
.seekmake-success-hero {
    text-align: center;
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.seekmake-success-icon-wrapper {
    margin-bottom: 24px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.seekmake-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #dcfce7;
    color: #166534;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.seekmake-success-title {
    font-size: 48px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.seekmake-powered-text {
    color: #3b82f6;
}

.seekmake-success-subtitle {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Widgets Section */
.seekmake-widgets-section {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.seekmake-widgets-header {
    text-align: center;
    margin-bottom: 40px;
}

.seekmake-widgets-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.seekmake-widgets-header p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.seekmake-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Widget Cards */
.seekmake-widget-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.seekmake-widget-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
    transform: translateY(-4px);
}

.seekmake-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.seekmake-widget-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.seekmake-active-badge {
    padding: 4px 12px;
    background: #dcfce7;
    color: #166534;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seekmake-widget-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.seekmake-widget-card>p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* Feature List */
.seekmake-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seekmake-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #475569;
}

.seekmake-feature-list li svg {
    flex-shrink: 0;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .seekmake-widgets-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .seekmake-new-success-wrapper {
        margin: -16px;
    }

    .seekmake-success-header {
        padding: 16px 20px;
    }

    .seekmake-success-hero {
        padding: 40px 20px;
    }

    .seekmake-success-title {
        font-size: 32px;
    }

    .seekmake-success-subtitle {
        font-size: 16px;
    }

    .seekmake-widgets-section {
        padding: 20px;
    }

    .seekmake-widget-card {
        padding: 24px;
    }
}

/* ===== SETTINGS ANIMATIONS ===== */
@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#seekmake-settings-disconnect:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}