#mind-spaces-wrapper {
    --ink: #0a0f1e;
    --ink-mid: #1e2a45;
    --ink-soft: #4a5568;
    --ink-ghost: #8a9bb5;
    --cream: #f8f7f4;
    --white: #ffffff;
    --accent: #031228;
    --accent-2: #8b5cf6;
    --danger: #e63946;

    --card-radius: 18px;
    --card-shadow:
        0 4px 24px rgba(10, 15, 30, 0.08), 0 1px 4px rgba(10, 15, 30, 0.04);
    --card-shadow-hover:
        0 16px 48px rgba(10, 15, 30, 0.14), 0 4px 12px rgba(10, 15, 30, 0.08);
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: "DM Sans", sans-serif;
}

#mind-spaces-wrapper .login-btn-index_link button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #1a365d 0%, #0f172a 100%) !important;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

#mind-spaces-wrapper .login-btn-index_link button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 92, 211, 0.3);
}

#mind-spaces-wrapper .login-btn-index_link p {
    margin: 0;
    font-size: 14px;
    color: #666;
}
.mindweco-knowledge-wrapper {
    max-width: 100%;
    padding: 0 20px 40px 20px;
}

.mindweco-knowledge-wrapper .mindweco-card-knowledge {
    background: linear-gradient(135deg, #1a365d 0%, #0f172a 100%) !important;
    color: white;
    padding: 32px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

#mind-spaces-wrapper .login-btn-index_link a {
    color: #1a365d;
    text-decoration: none;
    font-weight: 500;
}

#mind-spaces-wrapper .login-btn-index_link a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    #mind-spaces-wrapper .login-btn-index_link button {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 1200) {
    #mind-spaces-wrapper #page-notebooks-cards-container {
        grid-template-columns: 300px 300px !important ;
    }
    
}
#mind-spaces-wrapper .mindweco-nav-tabs,
#mind-spaces-wrapper .nav-tab-wrapper {
    margin-bottom: 0;
    border-bottom: none;
    display: flex;
    gap: 8px;
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
    padding: 8px 8px 0 8px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
    flex: 1;
}

#mind-spaces-wrapper .mindweco-nav-tab,
#mind-spaces-wrapper .nav-tab {
    padding: 14px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-radius: 12px 12px 0 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    text-align: center;
}

#mind-spaces-wrapper .mindweco-nav-tab i,
#mind-spaces-wrapper .nav-tab i {
    font-size: 16px;
}

#mind-spaces-wrapper .mindweco-nav-tab:hover,
#mind-spaces-wrapper .nav-tab:hover {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.08) !important;
    transform: translateY(-2px);
}

#mind-spaces-wrapper .mindweco-nav-tab.nav-tab-active,
#mind-spaces-wrapper .mindweco-nav-tab-active,
#mind-spaces-wrapper .nav-tab-active {
    color: #64748b !important;
    background: #ffffff !important;
    box-shadow:
        0 -3px 10px rgba(37, 99, 235, 0.1),
        0 3px 0 0 #64748b inset !important;
    border-bottom: 3px solid #64748b !important;
}

#mind-spaces-wrapper .mindweco-card {
    max-width: 100%;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

#mind-spaces-wrapper .mindweco-card h3,
#mind-spaces-wrapper .mindweco-card h4 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

#mind-spaces-wrapper .form-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
}

#mind-spaces-wrapper .form-table tr th {
    width: 150px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #374151;
    text-align: left;
    vertical-align: middle;
}

#mind-spaces-wrapper .form-table tr td {
    padding: 0.75rem 1rem;
}

#mind-spaces-wrapper .form-table input[type="text"],
#mind-spaces-wrapper .form-table input[type="url"],
#mind-spaces-wrapper .form-table input[type="password"] {
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #f9fafb;
}

#mind-spaces-wrapper .form-table input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    background: white;
}

#mind-spaces-wrapper .form-table input[readonly] {
    background-color: #f9fafb;
    color: #6b7280;
}

#mind-spaces-wrapper .form-table.mindweco-knowledge-repository {
    width: 100%;
}

#mind-spaces-wrapper .form-table.mindweco-knowledge-repository th {
    width: 200px;
    padding: 15px 10px 15px 0;
    font-weight: 600;
    vertical-align: middle;
}

#mind-spaces-wrapper .form-table.mindweco-knowledge-repository td {
    padding: 15px 0;
}

#mind-spaces-wrapper
    .form-table.mindweco-knowledge-repository
    input[type="text"],
#mind-spaces-wrapper
    .form-table.mindweco-knowledge-repository
    input[type="password"] {
    width: 100%;
    max-width: 500px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#mind-spaces-wrapper .form-table.mindweco-knowledge-repository input:focus {
    border-color: #1a5cd3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 92, 211, 0.1);
}

#mind-spaces-wrapper .btn {
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.25s;
}

#mind-spaces-wrapper .btn-primary {
    background: linear-gradient(
        135deg,
        #1a365d 0%,
        #16243b 50%,
        #0f172a 100%
    ) !important;
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
    border: none;
}

#mind-spaces-wrapper .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

#mind-spaces-wrapper .btn-secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

#mind-spaces-wrapper .btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

#mind-spaces-wrapper .btn-danger {
    background: #dc2626;
    color: #fff;
}

#mind-spaces-wrapper .btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

#mind-spaces-wrapper .btn-success {
    background: #16a34a;
    color: #fff;
}

#mind-spaces-wrapper .btn-success:hover {
    background: #15803d;
    transform: translateY(-1px);
}

#mind-spaces-wrapper #mindweco-knowledge-repository-login-btn {
    background: linear-gradient(135deg, #1a365d 0%, #0f172a 100%) !important;
    color: white;
    border: none;
    padding: 0.375rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
    min-width: 150px;
}

#mind-spaces-wrapper #mindweco-knowledge-repository-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
    background: linear-gradient(
        135deg,
        #1a365d 0%,
        rgb(51, 77, 146) 100%
    ) !important;
}

#mind-spaces-wrapper #mindweco-knowledge-repository-login-btn:active {
    transform: translateY(0);
}

#mind-spaces-wrapper #mindweco-login-result {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

#mind-spaces-wrapper #mindweco-login-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#mind-spaces-wrapper #mindweco-login-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#mind-spaces-wrapper .toast-container {
    z-index: 9999;
}

#mind-spaces-wrapper .toast-body {
    font-weight: 500;
    font-size: 14px;
}

#mind-spaces-wrapper .notebooks-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

#mind-spaces-wrapper .notebooks-header {
    margin-bottom: 2.5rem;
}

#mind-spaces-wrapper .notebooks-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

#mind-spaces-wrapper .notebooks-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 1.5rem;
}

#mind-spaces-wrapper .notebooks-subtitle {
    font-size: 0.88rem;
    color: var(--ink-ghost);
    margin-top: 2px;
}

#mind-spaces-wrapper #add-page-based-notebook {
    background: linear-gradient(135deg, #0a0f1e 0%, #1e2a45 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 4px 14px rgba(10, 15, 30, 0.18) !important;
    transition: var(--transition) !important;
}

#mind-spaces-wrapper #add-page-based-notebook:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(10, 15, 30, 0.25) !important;
}

#mind-spaces-wrapper #remove-all-page-notebooks {
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    padding: 10px 18px !important;
    transition: var(--transition) !important;
    background: rgba(230, 57, 70, 0.08) !important;
    color: var(--danger) !important;
    border: 1.5px solid rgba(230, 57, 70, 0.2) !important;
}

#mind-spaces-wrapper #remove-all-page-notebooks:hover {
    background: var(--danger) !important;
    color: #fff !important;
    border-color: var(--danger) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.25) !important;
}

#mind-spaces-wrapper #search-input-page-notebooks {
    border: 1.5px solid #dde3f0 !important;
    border-radius: 12px !important;
    padding: 9px 16px 9px 40px !important;
    font-size: 0.88rem !important;
    background: var(--white) !important;
    color: var(--ink) !important;
    transition: var(--transition) !important;
    box-shadow: 0 2px 8px rgba(10, 15, 30, 0.04) !important;
}

#mind-spaces-wrapper #search-input-page-notebooks:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(44, 75, 223, 0.1) !important;
    outline: none !important;
}

#mind-spaces-wrapper #page-notebooks-cards-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    padding: 4px 0 24px !important;
}

@media (max-width: 1200px) {
    #mind-spaces-wrapper #page-notebooks-cards-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 700px) {
    #mind-spaces-wrapper #page-notebooks-cards-container {
        grid-template-columns: 1fr !important;
    }
}

#mind-spaces-wrapper .page-notebook-card {
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: cardFadeIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    width: 100%;
}

#mind-spaces-wrapper .page-notebook-card:nth-child(1) {
    animation-delay: 0ms;
}
#mind-spaces-wrapper .page-notebook-card:nth-child(2) {
    animation-delay: 70ms;
}
#mind-spaces-wrapper .page-notebook-card:nth-child(3) {
    animation-delay: 140ms;
}
#mind-spaces-wrapper .page-notebook-card:nth-child(4) {
    animation-delay: 210ms;
}
#mind-spaces-wrapper .page-notebook-card:nth-child(5) {
    animation-delay: 280ms;
}
#mind-spaces-wrapper .page-notebook-card:nth-child(6) {
    animation-delay: 350ms;
}

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

#mind-spaces-wrapper .page-notebook-card .card {
    position: relative;
    border: none !important;
    border-radius: var(--card-radius) !important;
    background: var(--white) !important;
    box-shadow: var(--card-shadow) !important;
    overflow: hidden !important;
    transition: var(--transition) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    outline: 1.5px solid rgba(44, 75, 223, 0.08);
}

#mind-spaces-wrapper .page-notebook-card .card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--card-radius);
    background: linear-gradient(
        135deg,
        rgba(44, 75, 223, 0.03) 0%,
        rgba(139, 92, 246, 0.02) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

#mind-spaces-wrapper .page-notebook-card .card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent) !important;
    border-radius: 18px 0 0 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mind-spaces-wrapper .page-notebook-card .card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--card-shadow-hover) !important;
    outline-color: rgba(44, 75, 223, 0.18);
}

#mind-spaces-wrapper .page-notebook-card .card:hover::before,
#mind-spaces-wrapper .page-notebook-card .card:hover::after {
    opacity: 1;
}

#mind-spaces-wrapper .page-notebook-card .card-header {
    position: relative;
    z-index: 1;
    display: flex !important;
    align-items: center !important;
    padding: 18px 20px 14px !important;
    background: linear-gradient(135deg, #0a0f1e 0%, #1e2a45 100%) !important;
    border-bottom: none !important;
    gap: 10px !important;
}

#mind-spaces-wrapper .page-notebook-card .card-header strong {
    flex: 1 !important;
    min-width: 0 !important;
    font-family: "Playfair Display", serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #e8f0fe !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: 0.01em !important;
}

#mind-spaces-wrapper .page-notebook-card .card-header strong i {
    color: #8b9bb8 !important;
    margin-right: 6px !important;
}

#mind-spaces-wrapper .page-notebook-card .card-header .badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #c3d3f7 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    letter-spacing: 0.03em !important;
    backdrop-filter: blur(4px) !important;
    white-space: nowrap !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    transition: var(--transition) !important;
}

#mind-spaces-wrapper .page-notebook-card .card-header .badge:hover {
    background: rgba(44, 75, 223, 0.4) !important;
    color: #fff !important;
}

#mind-spaces-wrapper .page-notebook-card .remove-page-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #8a9bb5 !important;
    border-radius: 8px !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: var(--transition) !important;
}

#mind-spaces-wrapper .page-notebook-card .remove-page-card:hover {
    background: rgba(230, 57, 70, 0.2) !important;
    border-color: rgba(230, 57, 70, 0.4) !important;
    color: #e63946 !important;
    transform: scale(1.1) rotate(8deg) !important;
}

#mind-spaces-wrapper .page-notebook-card .card-body {
    position: relative;
    z-index: 1;
    flex: 1 !important;
    padding: 16px 18px !important;
    background: var(--white) !important;
}

#mind-spaces-wrapper .notebooks-grid-inner {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 !important;
}

#mind-spaces-wrapper .notebook-card {
    position: relative !important;
    background: var(--cream) !important;
    border: 1.5px solid #e8edf5 !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    min-height: 64px !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

#mind-spaces-wrapper .notebook-card::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 3px !important;
    height: 100% !important;
    background: var(--accent) !important;
    opacity: 0 !important;
    border-radius: 12px 0 0 12px !important;
    transition: opacity 0.25s ease !important;
    z-index: 1 !important;
}

#mind-spaces-wrapper .notebook-card:hover {
    border-color: rgba(44, 75, 223, 0.3) !important;
    background: #f0f4ff !important;
    box-shadow: 0 4px 12px rgba(44, 75, 223, 0.1) !important;
    transform: translateY(-2px) !important;
}

#mind-spaces-wrapper .notebook-card:hover::before {
    opacity: 1 !important;
}

#mind-spaces-wrapper .notebook-card.checked {
    border-color: var(--accent) !important;
    background: linear-gradient(135deg, #eef2ff 0%, #f0ebff 100%) !important;
    box-shadow: 0 4px 16px rgba(44, 75, 223, 0.15) !important;
}

#mind-spaces-wrapper .notebook-card.checked::before {
    opacity: 1 !important;
}

#mind-spaces-wrapper .notebook-card input[type="checkbox"],
#mind-spaces-wrapper .page-notebook-checkbox {
    -webkit-appearance: none;
    appearance: none;
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px !important;
    border: 2px solid #c8d3ea !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 12px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    margin: 0 !important;
    box-shadow: 0 1px 2px rgba(10, 15, 30, 0.04) !important;
    transition: var(--transition) !important;
}

#mind-spaces-wrapper .notebook-card input[type="checkbox"]:focus-visible,
#mind-spaces-wrapper .page-notebook-checkbox:focus-visible {
    outline: none !important;
    box-shadow:
        0 0 0 3px rgba(44, 75, 223, 0.14),
        0 1px 2px rgba(10, 15, 30, 0.04) !important;
}

#mind-spaces-wrapper .notebook-card input[type="checkbox"]:checked,
#mind-spaces-wrapper .page-notebook-checkbox:checked {
    border-color: var(--accent) !important;
    background-color: var(--accent) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5,8.5 6.5,11.5 12.5,4.5'/%3E%3C/svg%3E") !important;
    box-shadow: 0 4px 10px rgba(3, 18, 40, 0.18) !important;
}

#mind-spaces-wrapper .notebook-card input[type="checkbox"]:checked:hover,
#mind-spaces-wrapper .page-notebook-checkbox:checked:hover {
    background-color: #0b1f3f !important;
    border-color: #0b1f3f !important;
}

#mind-spaces-wrapper .notebook-card .notebook-content {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

#mind-spaces-wrapper .notebook-card .notebook-text,
#mind-spaces-wrapper .notebook-text {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--ink-mid) !important;
    line-height: 1.35 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    transition: color 0.2s !important;
    margin-bottom: 0 !important;
    word-wrap: normal !important;
}

#mind-spaces-wrapper .notebook-card.checked .notebook-text {
    color: var(--accent) !important;
}

#mind-spaces-wrapper .notebook-card .notebook-meta,
#mind-spaces-wrapper .notebook-meta {
    display: flex !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
    font-size: 0.8rem !important;
    color: #9ca3af !important;
    align-items: center !important;
    margin-top: auto !important;
}

#mind-spaces-wrapper .notebook-card .notebook-badge,
#mind-spaces-wrapper .notebook-badge {
    background: rgba(44, 75, 223, 0.07) !important;
    color: #4a5ea8 !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    display: inline-flex !important;
    align-items: center !important;
}

#mind-spaces-wrapper .notebook-card.checked .notebook-badge {
    background: rgba(44, 75, 223, 0.15) !important;
    color: var(--accent) !important;
}

#mind-spaces-wrapper .page-notebook-card .card-body .border-top {
    border-top: 1px dashed #dde3f0 !important;
    margin-top: 14px !important;
    padding-top: 12px !important;
}

#mind-spaces-wrapper .toggle-all-notebooks {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    border: 1.5px solid #d0d8f0 !important;
    color: var(--accent) !important;
    background: rgba(44, 75, 223, 0.04) !important;
    transition: var(--transition) !important;
    letter-spacing: 0.02em !important;
}

#mind-spaces-wrapper .toggle-all-notebooks:hover {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
    transform: none !important;
    box-shadow: 0 4px 10px rgba(44, 75, 223, 0.25) !important;
}

#mind-spaces-wrapper .nb-pagination {
    margin-top: 12px !important;
}

#mind-spaces-wrapper .nb-prev-page,
#mind-spaces-wrapper .nb-next-page {
    border-radius: 8px !important;
    border: 1.5px solid #d8deee !important;
    color: var(--ink-soft) !important;
    background: var(--white) !important;
    padding: 4px 10px !important;
    transition: var(--transition) !important;
}

#mind-spaces-wrapper .nb-prev-page:hover:not(:disabled),
#mind-spaces-wrapper .nb-next-page:hover:not(:disabled) {
    background: var(--ink-mid) !important;
    color: #fff !important;
    border-color: var(--ink-mid) !important;
}

#mind-spaces-wrapper .nb-prev-page:disabled,
#mind-spaces-wrapper .nb-next-page:disabled {
    opacity: 0.3 !important;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.18);
    }
    100% {
        transform: scale(1);
    }
}

#mind-spaces-wrapper .animate-pulse {
    animation: badgePulse 0.5s ease !important;
}

#mind-spaces-wrapper .pagination-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 32px !important;
    padding: 12px 20px !important;
    background: var(--white) !important;
    border-radius: 50px !important;
    box-shadow: 0 2px 12px rgba(10, 15, 30, 0.06) !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border: 1.5px solid #e8edf5 !important;
}

#mind-spaces-wrapper #card-prev-page,
#mind-spaces-wrapper #card-next-page {
    border-radius: 10px !important;
    border: 1.5px solid #d8deee !important;
    color: var(--ink-soft) !important;
    background: var(--white) !important;
    font-size: 0.85rem !important;
    padding: 6px 14px !important;
    transition: var(--transition) !important;
}

#mind-spaces-wrapper #card-prev-page:hover:not(:disabled),
#mind-spaces-wrapper #card-next-page:hover:not(:disabled) {
    background: var(--ink) !important;
    color: #fff !important;
    border-color: var(--ink) !important;
}

#mind-spaces-wrapper #card-prev-page:disabled,
#mind-spaces-wrapper #card-next-page:disabled {
    opacity: 0.25 !important;
}

#mind-spaces-wrapper .page-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

#mind-spaces-wrapper .page-btn:hover:not(:disabled) {
    border-color: #0073aa;
    color: #0073aa;
    background: #f3f4f6;
}

#mind-spaces-wrapper .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#mind-spaces-wrapper .modal-content {
    border-radius: 20px !important;
    border: none !important;
    overflow: hidden !important;
    box-shadow: 0 32px 80px rgba(10, 15, 30, 0.22) !important;
    padding: 0;
}

#mind-spaces-wrapper .modal-header {
    background: linear-gradient(135deg, #031228 0%, #45659f 100%);
    color: #fff;
    font-weight: 700;
    padding: 24px 28px;
    border-bottom: none;
    border-radius: 0;
}

#mind-spaces-wrapper .modal-footer {
    border-top: 1px solid #edf0f7 !important;
    padding: 16px 24px !important;
}

#mind-spaces-wrapper .modal-footer .btn {
    min-width: 120px;
}

#mind-spaces-wrapper #pageBasedNotebookModal .modal-dialog {
    max-width: 900px;
}

#mind-spaces-wrapper #pageBasedNotebookModal .modal-body {
    padding: 1.5rem;
}

#mind-spaces-wrapper #pageBasedNotebookModal .form-check-input.page-checkbox,
#mind-spaces-wrapper #pageBasedNotebookModal #select-all-pages {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid #c8d3ea;
    border-radius: 4px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(10, 15, 30, 0.04);
    transition: var(--transition);
}

#mind-spaces-wrapper #pageBasedNotebookModal .form-check-input.page-checkbox:focus-visible,
#mind-spaces-wrapper #pageBasedNotebookModal #select-all-pages:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(44, 75, 223, 0.14),
        0 1px 2px rgba(10, 15, 30, 0.04);
}

#mind-spaces-wrapper #pageBasedNotebookModal .form-check-input.page-checkbox:checked,
#mind-spaces-wrapper #pageBasedNotebookModal #select-all-pages:checked {
    border-color: var(--accent);
    background-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5,8.5 6.5,11.5 12.5,4.5'/%3E%3C/svg%3E");
    box-shadow: 0 4px 10px rgba(3, 18, 40, 0.18);
}

#mind-spaces-wrapper #pageBasedNotebookModal .form-check-input.page-checkbox:checked:hover,
#mind-spaces-wrapper #pageBasedNotebookModal #select-all-pages:checked:hover {
    background-color: #0b1f3f;
    border-color: #0b1f3f;
}

#mind-spaces-wrapper #pageBasedNotebookModal .form-check-input.page-checkbox:disabled,
#mind-spaces-wrapper #pageBasedNotebookModal #select-all-pages:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

#mind-spaces-wrapper #pageBasedNotebookModal .form-check-input.page-checkbox:disabled:checked,
#mind-spaces-wrapper #pageBasedNotebookModal #select-all-pages:disabled:checked {
    opacity: 1;
}

#mind-spaces-wrapper .page-selection-item,
#mind-spaces-wrapper .page-selection-item * {
    cursor: pointer;
}

#mind-spaces-wrapper .page-selection-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px !important;
    border: 1.5px solid #e8edf5 !important;
    padding: 14px 16px !important;
    background: var(--white) !important;
    transition: var(--transition) !important;
    margin-bottom: 10px !important;
}

#mind-spaces-wrapper .page-selection-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #031228 0%, #45659f 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

#mind-spaces-wrapper .page-selection-item:hover {
    border-color: rgba(44, 75, 223, 0.25) !important;
    background: #f4f7ff !important;
    box-shadow: 0 4px 12px rgba(44, 75, 223, 0.08) !important;
}

#mind-spaces-wrapper .page-selection-item:hover::before {
    opacity: 1;
}

#mind-spaces-wrapper .page-selection-item.selected {
    border-color: #031228 !important;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%) !important;
    box-shadow: 0 4px 16px rgba(44, 75, 223, 0.12) !important;
}

#mind-spaces-wrapper .page-selection-item.selected::before {
    opacity: 1;
}

#mind-spaces-wrapper .page-selection-item.selected .page-title {
    color: #9ca3af;
    font-weight: 600;
}

#mind-spaces-wrapper .page-selection-item .page-title {
    font-weight: 600;
    color: var(--ink-mid);
    font-size: 0.9rem;
}

#mind-spaces-wrapper .empty-state-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.2rem !important;
    padding: 4rem 2rem !important;
    background: var(--white) !important;
    border-radius: 20px !important;
    box-shadow: var(--card-shadow) !important;
    text-align: center !important;
    outline: 1.5px dashed #c8d3ea !important;
    max-width: 100% !important;
}

.empty-state-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #e0f2ff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-text {
    max-width: 350px;
    font-size: 0.95rem;
    line-height: 1.5;
}

#page-notebooks-cards-container.is-empty {
  display: flex !important;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  width: 100%;
}

.mindweco-pagination-empty {
  width: 100%;
  max-width: 100%;
  display: block;
}

.inbox-icon-knowledge {
    font-size:3rem;
    color:#355586;
}

#mind-spaces-wrapper input[type="text"],
#mind-spaces-wrapper input[type="number"] {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.25s;
}

#mind-spaces-wrapper input[type="text"]:focus,
#mind-spaces-wrapper input[type="number"]:focus {
    border-color: #031228;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

#mind-spaces-wrapper .go-login-link:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
}

#mind-spaces-wrapper .go-login-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 16px;
    background:#0d6efd;
    color:#fff;
    border-radius:8px;
    text-decoration:none;
    font-weight:500;
}

#mind-spaces-wrapper .go-login-link i {
    font-size: 16px;
}
#mind-spaces-wrapper .go-login-link span {
    font-size: 15px;
}

#mind-spaces-wrapper .nav-tab-wrapper,
#mind-spaces-wrapper .wrap h2.nav-tab-wrapper,
#mind-spaces-wrapper h1.nav-tab-wrapper {
    border-bottom: 1px solid #c3c4c7;
    padding-top: 9px;
    padding-bottom: 0;
    line-height: inherit;
    margin: 20px 0;
}

.header-select-search {
    justify-content: space-between;
}

#mind-spaces-wrapper .password-wrapper {
    position: relative;
    max-width: 500px;
}

#mind-spaces-wrapper .password-wrapper input {
    width: 100%;
    padding: 10px 40px 10px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

#mind-spaces-wrapper .password-wrapper .eye-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    font-size: 18px;
    transition: color 0.2s;
}

#mind-spaces-wrapper .password-wrapper .eye-icon:hover {
    color: #000;
}

#mind-spaces-wrapper .mindweco-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 900px) {
    #mind-spaces-wrapper .notebooks-grid-inner {
        grid-template-columns: 1fr !important;
    }
    #mind-spaces-wrapper .notebooks-title-wrapper {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

@media (max-width: 782px) {
    #mind-spaces-wrapper .form-table.mindweco-knowledge-repository th,
    #mind-spaces-wrapper .form-table.mindweco-knowledge-repository td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    #mind-spaces-wrapper .form-table.mindweco-knowledge-repository th {
        padding-bottom: 5px;
    }
    #mind-spaces-wrapper
        .form-table.mindweco-knowledge-repository
        input[type="text"],
    #mind-spaces-wrapper
        .form-table.mindweco-knowledge-repository
        input[type="password"] {
        max-width: 100%;
    }
    #mind-spaces-wrapper .mindweco-knowledge-wrapper {
        padding: 0;
    }
    #mind-spaces-wrapper .mindweco-nav-tab {
        padding: 10px 15px;
        font-size: 14px;
        min-width: 120px;
    }
    #mind-spaces-wrapper .mindweco-grid {
        grid-template-columns: 1fr;
    }
   input[type=checkbox]:checked:before {
    width: 1.4rem !important;
    height: 1rem !important;
   }
   .mindweco-knowledge-wrapper {
    padding: 0;
   }
}

@media (max-width: 600px) {
    #mind-spaces-wrapper .mindweco-header-card {
        padding: 15px 18px;
    }
    #mind-spaces-wrapper .mindweco-header-card h4 {
        font-size: 20px;
    }
    #mind-spaces-wrapper .mindweco-nav-tabs {
        flex-direction: column;
    }
    #mind-spaces-wrapper .mindweco-nav-tab {
        min-width: 100%;
        border-radius: 8px;
        margin-bottom: 5px;
    }
    #mind-spaces-wrapper .mindweco-nav-tab.nav-tab-active {
        border-bottom: none;
        border-left: 4px solid #1a5cd3;
    }
    #mind-spaces-wrapper .mindweco-card {
        padding: 20px 15px;
    }
    #mind-spaces-wrapper .mindweco-container {
        width: 100%;
        height: 80%;
        bottom: 0;
        right: 0;
    }
    #mind-spaces-wrapper #mindweco-btn-wrapper.visible,
    #mind-spaces-wrapper .mindweco-trigger-container.visible {
        bottom: 18px !important;
        right: 18px !important;
        z-index: 99999 !important;
    }
    #mind-spaces-wrapper .mindweco-trigger-btn {
        width: 56px !important;
        height: 56px !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
    }
    #mind-spaces-wrapper .mindweco-trigger-btn img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    #mind-spaces-wrapper .message-content {
        padding: 4px 10px;
    }
    #mind-spaces-wrapper .mindweco-header {
        padding: 8px;
    }
    #mind-spaces-wrapper .mindweco-header-content img {
        width: 40px;
        height: 40px;
        border-radius: 50px;
    }
    #mind-spaces-wrapper .mindweco-clear-btn,
    #mind-spaces-wrapper .mindweco-send-btn {
        width: 30px;
        height: 30px;
        border-radius: 50%;
    }
    #mind-spaces-wrapper .page-notebook-card .card {
        width: 80%;
    }
    #mind-spaces-wrapper .help-container {
        right: 40px !important;
    }
    #mind-spaces-wrapper .notebooks-container {
        padding: 1rem !important;
    }
    .modal-backdrop.show {
        opacity: 0 !important;
        width: 0vw !important;
    }
}
.count-badge-label {
    color: rgb(216 220 225 / 75%) !important;
}

#toggle-password-visibility {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

#mind-spaces-wrapper .mind-spaces-title {
    margin: 0;
    color: #fff;
    font-size: 25px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .page-notebook-card {
        align-items: center; 
        width: 90%;          
        margin: 0 auto 15px auto;
    }

    #mind-spaces-wrapper #page-notebooks-cards-container {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center; 
        gap: 15px;           
        padding: 10px;          
    }

    #mind-spaces-wrapper #search-input-page-notebooks {
        max-width: 60%;
    }
    #mind-spaces-wrapper .notebooks-title {
        font-size: 1.2rem;
    }
}

.mindweco-login-space-view-warn {
    grid-column:1/-1;
    background-color:#fee2e2;
    color:#b91c1c;
    padding:12px 16px;
    border-radius:8px;font-weight:500;text-align:center;
}

#page-notebooks-cards-container.is-empty {
    display: block !important;
    width: 100%;
    text-align: center;
}

@media (max-width: 480px) {
    .container-description-added-view {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .view-added-page {
        display: flex !important;
        justify-content: center !important;
        align-items: baseline !important;
        gap: 5px !important;
    }
}
