@import url('./common.css');

body {
    background: #000;
}

iframe {
    width: 100%;
    display: block;
    height: calc(100vh - 40px);
    border: none;
}

.viewbox {
    height: 40px;
    width: 40px;
    vertical-align: middle;
}


.gview {
    stroke: #fff
}

.rectview {
    fill: #000;
    stroke: #000;
    stroke-width: 1;
    transition: all 0.3s ease;
}

.gview {
    stroke: #fff
}

/* hover状态 */
a:hover .rectview {
    fill: #fff;
    stroke: #000;
    stroke-width: 1;
}

a:hover .gview {
    stroke: #000
}

/* CSS */
#fileInput {
    padding: 10px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    color: #333;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

#fileInput:hover {
    border-color: #999;
}

/* CSS */
#fileInput::file-selector-button {

    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;

}

#fileInput::file-selector-button:hover {
    background: #45a049;
}

/* CSS */
.styled-select {
    height: 45px;
    padding: 8px 30px 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    width: 100%;
    /* 可选：固定宽度 */
    box-sizing: border-box;
    appearance: none;
    /* 隐藏默认箭头 */
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="30" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.styled-select:hover {
    border-color: #888;
}

.styled-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.btnGroup .li {
    cursor: pointer;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #efefef;
}

.btnGroup .li:hover {
    background-color: #ccc;
}

.btnGroup h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.btnGroup p {
    margin: 0 0 0 0;
    font-size: 13px;
    word-wrap: break-word;
}

/* Caps Lock 指示器样式 */
#capsIndicator {
    position: relative;
    display: flex;
    align-self: center;
    margin-top: auto;
    margin-bottom: auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

/* 特殊的几个li不需要button风格 */
li#capsIndicator:hover,
li#versionLabel:hover {
    background-color: initial !important;
    color: inherit !important;
}

.caps-letter {
    font: bold 16px/1 'Arial', sans-serif;
    color: #666;
    z-index: 2;
}

.caps-indicator {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: transparent;
    transition: all 0.3s ease;
}

/* Caps Lock 激活状态 */
#capsIndicator.active .caps-letter {
    color: #d32f2f;
    /* 红色文字 */
}

#capsIndicator.active .caps-indicator {
    border-color: #d32f2f;
    /* 红色边框 */
    background: rgba(211, 47, 47, 0.1);
    /* 浅红背景 */
}

.version-label {
    margin-left: auto;
    font-family: 'Roboto Mono', monospace;
    /*等宽字体更整齐*/
    font-size: .75rem;
    /*12px大小*/
    color: #888;
    /*中性灰色*/
    letter-spacing: .5px;
    /*字间距微调*/
    padding-left: .5rem;
    /*与大写指示器间距*/
    user-select: text;
    /*允许文字选中*/
}