/* ===================================
   现代简约基础样式
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #fafafa;
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: #1a1a1a;
    line-height: 1.5;
}

.btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: inherit;
}

.btn:hover {
    background-color: #f9fafb;
    color: #1f2937;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 主要按钮样式 - 主题色底色白字 */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #487ae6 0%, #456edd 100%);
    color: white;
    border-color: #487ae6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

/* 次要按钮样式 - 小尺寸 */
.btn-small {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 10px;
}

/* 图标按钮样式 */
.btn-icon {
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 10px;
}

/* 专注模式按钮特定样式 */
#focus-toggle {
    font-size: 11px !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px !important;
    height: 28px !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #6b7280 !important;
    border: none !important;
    box-shadow: none !important;
    transition: color 0.15s ease, background-color 0.15s ease !important;
}

#focus-toggle:hover {
    color: #101922 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

#focus-toggle.active {
    background: #ffffff !important;
    color: #101922 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* 专注模式图标调整 */
#focus-toggle .focus-icon {
    width: 12px !important;
    height: 12px !important;
}

#focus-toggle .focus-icon::before {
    width: 8px !important;
    height: 8px !important;
    top: 2px !important;
    left: 2px !important;
}

#focus-toggle.active .focus-icon::before {
    width: 8px !important;
    height: 8px !important;
    font-size: 8px !important;
}

/* 面板关闭按钮 - 简约风格 */
.panel-header .btn-icon {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px 12px;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    min-width: auto;
    margin-right: -16px;
}

.panel-header .btn-icon:hover {
    color: #64748b;
    background: transparent;
    transform: none;
    box-shadow: none;
}

.panel-header .btn-icon:active {
    color: #475569;
    transform: none;
}

/* ===================================
   iframe样式继承
   =================================== */

/* 确保iframe中的按钮继承框架样式 */
iframe .btn,
iframe button {
    font-family: inherit !important;
    box-sizing: border-box !important;
}

/* 如果iframe中的页面没有自己的按钮样式，则继承框架样式 */
iframe .btn:not([class*="btn-"]) {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

iframe .btn:not([class*="btn-"]):hover {
    background-color: #f9fafb !important;
    color: #1f2937 !important;
    border-color: #d1d5db !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* ===================================
   现代简约顶部导航栏
   =================================== */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

.brand {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;

    background-clip: text;
}

.brand-clickable {
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 8px 8px 8px 30px;
    border-radius: 8px;
    /* margin: -8px -12px; */
}

.brand-clickable:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.brand-clickable:active {
    transform: translateY(0);
}



.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}


/* ===================================
   现代简约主内容区域
   =================================== */
.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* ===================================
   现代简约面板容器
   =================================== */
.panel {
    background-color: #ffffff;
    border: none;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    margin: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.panel.hidden {
    display: none;
}

.panel.resizing {
    transition: none;
}

.panel-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    letter-spacing: -0.25px;
    height: 44px;
}

.panel-content {
    height: calc(100% - 44px);
    overflow: auto;
}

.panel iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: white;
    pointer-events: auto;
}

.resizing .panel iframe {
    pointer-events: none;
}

/* 专注模式下隐藏关闭按钮 */
.focus-mode .btn-icon {
    display: none;
}

/* 专注模式下隐藏面板头部的关闭按钮 - 确保优先级 */
.focus-mode .panel-header .btn-icon {
    display: none !important;
}

/* ===================================
   现代简约拖拽分隔条
   =================================== */
.resizer {
    background-color: #f1f5f9;
    cursor: col-resize;
    width: 2px;
    position: relative;
    user-select: none;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 4px;
}

.resizer:hover {
    background-color: #3b82f6;
    width: 4px;
    margin: 0 3px;
}

.resizer.dragging {
    background-color: #3b82f6;
    width: 4px;
    margin: 0 3px;
}

.resizer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -6px;
    right: -6px;
    bottom: 0;
    cursor: col-resize;
}

.focus-mode .resizer {
    display: none !important;
}

/* ===================================
   现代简约专注模式图标
   =================================== */
.focus-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    position: relative;
    flex-shrink: 0;
}

/* 空心状态（默认） */
.focus-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
}

/* 实心状态（选中时） */
#focus-toggle.active .focus-icon::before {
    content: '✓';
    background: transparent;
    color: white;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
}

/* ===================================
   现代简约工具栏样式
   =================================== */
.toolbar {
    height: 44px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);

    padding: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 100;
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
}



/* 现代简约工具栏按钮样式 */
.toolbar .btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1 !important;
    font-family: inherit !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.toolbar button:hover,
.toolbar .btn:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px) !important;
}

.toolbar button:active,
.toolbar .btn:active {
    background-color: #f1f5f9 !important;
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

/* 工具栏中的主要按钮 */
.toolbar .btn-primary,
.toolbar .primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.toolbar .btn-primary:hover,
.toolbar .primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: white !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* 工具栏中的成功按钮 */
.toolbar .btn-success,
.toolbar .success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border-color: #10b981 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.toolbar .btn-success:hover,
.toolbar .success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* 工具栏中的警告按钮 */
.toolbar .btn-warning,
.toolbar .warning {
    background-color: #f59e0b !important;
    color: white !important;
    border-color: #f59e0b !important;
}

.toolbar .btn-warning:hover,
.toolbar .warning:hover {
    background-color: #d97706 !important;
}

/* 帮助按钮特殊样式 */
.toolbar .help-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #60a5fa !important;
    color: white !important;
    border-color: #60a5fa !important;
    font-weight: bold !important;
    position: relative !important;
}

.toolbar .help-btn:hover {
    background-color: #3b82f6 !important;
}

/* 工具栏中的选择框 */
.toolbar-select {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 150px;
    height: 27px;
    padding: 0 16px;
    line-height: 26px;
}


.toolbar select:hover {
    border-color: #9ca3af;
}

.toolbar select:focus {
    outline: none;
    border-color: #73a8fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ===================================
   面板宽度设置
   =================================== */
.editor-panel {
    flex: 1;
    min-width: 100px;
}

.preview-panel {
    flex: 1;
    min-width: 100px;
}

.mindmap-panel {
    flex: 2;
    min-width: 200px;
}

.focus-mode .panel:not(.hidden) {
    flex: 1 !important;
}

/* ===================================
   现代简约专注模式提示
   =================================== */
.focus-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.focus-mode .focus-indicator {
    opacity: 1;
}

/* ===================================
   现代简约提示信息
   =================================== */
.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
    font-size: 15px;
    text-align: center;
    line-height: 1.6;
    padding: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    margin: 16px;
}

.placeholder small {
    margin-top: 12px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

/* ===================================
   现代简约加载状态
   =================================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-weight: 500;
    font-size: 15px;
}

.loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid #e0e7ff;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin-left: 12px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===================================
   现代简约状态文本样式
   =================================== */
.status-text {
    margin-left: auto;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* ===================================
   现代简约工具类
   =================================== */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.resizing {
    cursor: col-resize !important;
}

.resizing * {
    cursor: col-resize !important;
}

/* 现代简约动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 面板淡入动画 */
.panel {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 按钮点击波纹效果 */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:active::after {
    width: 100px;
    height: 100px;
}

/* ===================================
   详情面板图标（三态，无外层按钮效果）
   =================================== */
.ico-btn {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #4b5563;
    /* 默认深灰（由状态类覆盖） */

    /* 使用 CSS custom properties 指定图标路径（由 HTML 提供 --ico / --ico-fallback） */
    -webkit-mask: var(--ico) center / contain no-repeat;
    mask: var(--ico) center / contain no-repeat;

    /* fallback：在不支持 mask 的环境下使用 background-image
    background-image: var(--ico-fallback);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; */
}

/* 三种状态色直接作用于元素本身 */
/* 深灰 */
.ico-btn.state-default {
    background-color: #4b5563;
}

/* 浅灰（关闭） */
.ico-btn.state-off {
    background-color: #cbd5e1;
}

/* 蓝色（激活） */
.ico-btn.state-on {
    background-color: #2563eb;
}


/*  hover */
.ico-btn:hover {
    background-color: #7389aa;
}

.ico-btn:hover.state-off {
    background-color: #94a3b8;
}

.ico-btn:hover.state-on {
    background-color: #1d4ed8;
}

/* ===================================
   现代简约响应式设计
   =================================== */
@media (max-width: 768px) {
    .header {
        padding: 0 12px;
        height: 56px;
        align-items: center;
        display: flex;
        justify-content: space-between;
        z-index: 1200;
        background: #ffffff;
    }

    .brand {
        font-size: 18px;
        margin-right: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1 1 auto;
    }



    /* 顶部 header 的高度压缩，content 底部预留菜单栏高度 */
    .header {
        height: 56px;
    }

    .main-content {
        margin: 0;
        border-radius: 0;
        padding-bottom: 50px;
        /* 给底部 tab 留空间 */
    }

    /* 移动端去除面板外边距与圆角，iframe 占满 */
    .panel {
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .panel .panel-content,
    .panel iframe {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* iframe 外层若有额外容器，尽量清除内边距 */
    .iframe-wrapper,
    .iframe-container {
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }


    #doc-sidebar {
        top: 56px !important;
        height: calc(100vh - 56px);
    }


    /* 移动端显示认证区域，隐藏专注按钮 */
    .header-right {
        display: flex !important;
        align-items: center;
        margin-left: auto;
    }

    /* 移动端认证区域样式调整 */
    #auth-area {
        margin-left: 8px !important;
        margin-right: 8px !important;
    }

    #auth-link,
    #auth-user {
        height: 32px !important;
        font-size: 11px !important;
        padding: 0 8px !important;
    }

    #auth-username {
        font-size: 11px !important;
        max-width: 60px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    #auth-logout {
        height: 32px !important;
        font-size: 11px !important;
        padding: 0 8px !important;
    }

    /* 隐藏专注按钮以适应移动端空间 */
    #focus-toggle {
        display: none !important;
    }


    .btn-small {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .focus-icon {
        width: 14px;
        height: 14px;
    }

    .focus-icon::before {
        top: 2px;
        left: 2px;
        width: 10px;
        height: 10px;
    }

    #focus-toggle.active .focus-icon::before {
        font-size: 9px;
        width: 14px;
        height: 14px;
    }

    .panel {
        margin: 6px 4px;
        border-radius: 8px;
    }

    /* 专注模式界面优化：去除间距并让面板占满 */
    .focus-mode .panel {
        margin: 0;
        padding: 8px;
        border-radius: 0;
    }

    /* 调整专注提示在小屏的位置 */
    .focus-indicator {
        top: 8px;
        left: 12px;
        right: auto;
        font-size: 12px;
        padding: 4px 8px;
    }

    /* 通用防止按钮文本换行 */
    .btn span,
    .btn-small span,
    #focus-toggle span {
        white-space: nowrap;
    }

    /* editor 的帮助问号保持圆形并且适当放大，避免变成椭圆 */
    .toolbar .help-btn {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
    }

    /* 隐藏批量操作计数（移动端不显示“已选中X个节点”） */
    #batchOperations {
        display: none !important;
    }

    /* 如果有 iframe 内按钮，确保不换行 */
    iframe .btn,
    iframe button {
        white-space: nowrap !important;
    }

    /* 移动底部 tabs（mobile-tabs）样式 */
    .mobile-tabs {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        display: none;
        /* 仅移动端显示时通过 media 打开 */
        background: linear-gradient(180deg, #ffffff, #fbfdff);
        border-top: 1px solid #e6eef6;
        z-index: 1300;
        padding: 6px 8px;
        justify-content: space-around;
        align-items: center;
        gap: 6px;
    }

    .mobile-tabs .tab {
        flex: 1 1 auto;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 14px;
        white-space: nowrap;
        background: transparent;
        border: none;
    }

    .mobile-tabs .tab.active {
        background: rgba(59, 130, 246, 0.08);
        color: #2563eb;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
    }

    /* 小屏时隐藏 header 内的 .tabs，显示底部 mobile-tabs */
    .header .tabs {
        display: none !important;
    }

    .mobile-tabs {
        display: flex;
    }

    /* 隐藏批量操作计数（保险） */
    #batchOperations {
        display: none !important;
    }

    /* 统一在移动端隐藏所有面板头部（panel-header），但排除节点详情弹窗 */
    .panel-header:not(#nodeDetails .panel-header) {
        display: none !important;
    }
}

/* ===================================
   AI按钮加载动画样式
   =================================== */
.mw-fab.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.mw-fab.loading .ico-btn {
    /* 隐藏原图标 */
    opacity: 0;
}

.mw-fab.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: mw-fab-spin 1s linear infinite;
}

@keyframes mw-fab-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}