/* Buttons  */
button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 2px 2px var(--accent-color);
}

button:hover:after {
    width: 100%;
}

button:active {
    transform: translateY(1px);
    box-shadow: 1px 1px var(--accent-color);
}

.action-btn {
    display: block;
    margin: 20px;
    min-width: 250px;
    min-height: 48px;
    z-index: 100;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 4px 4px var(--accent-color);
}

@media screen and (max-width:767px),
screen and (max-device-width:767px) {
    button {
        padding: 8px 16px;
        font-size: 14px;
        min-height: 44px;
    }
    
    button#refresh {
        margin-top: 0px;
    }
    
    .action-btn {
        min-width: 80%;
        min-height: 44px;
        font-size: 16px;
        margin: var(--spacing-unit) auto;
    }
    
    /* 增强移动设备上的按钮可点击区域 */
    button, .action-btn {
        padding: 10px 15px;
    }
    
    /* 改进Tab按钮在移动设备上的显示 */
    .tab-btn button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 5px;
        min-width: 60px;
    }
    
    /* 添加触摸反馈 */
    button:active {
        transform: scale(0.96);
        transition: transform 0.1s;
    }
}

/* Font awesome */
.fa {
    font-size: 20px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

button:hover .fa {
    transform: scale(1.2);
}

/* Tab buttons */
#options > div.tab-btn {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: var(--spacing-unit) 0;
}

#options > div.tab-btn > button {
    width: auto;
    min-width: 50px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.8);
    transform: none;
    transition: all 0.3s ease;
}

#options > div.tab-btn > button:hover {
    transform: translateY(-3px);
    box-shadow: 3px 3px var(--accent-color);
}

#options > div.tab-btn > button.active {
    background-color: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-2px);
}

#options > div.tab-btn > button > * {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width:767px),
screen and (max-device-width:767px) {
    #options > div.tab-btn {
        gap: 5px;
    }
    
    #options > div.tab-btn > button {
        min-width: 40px;
        padding: 8px 12px;
    }
    
    .fa {
        font-size: 18px;
        margin-right: 5px;
    }
}
