/* Simple Frontend Enhancement - 在原基礎上輕量優化 */

/* 稍微美化容器，不改變大小和結構 */
.container {
    background: rgba(255,255,255,0.4) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
}

/* 輕微美化表單控件，保持原尺寸 */
.form-control {
    border-radius: 6px !important;
    border: 1px solid #ccc !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.form-control:focus {
    border-color: #5cb85c !important;
    box-shadow: 0 0 0 0.15rem rgba(92, 184, 92, 0.2) !important;
    outline: none !important;
}

/* 美化提交按鈕 */
.btn-default[type="submit"] {
    background: linear-gradient(135deg, #5cb85c, #449d44) !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    color: #fff !important;
    transition: all 0.2s ease !important;
}

.btn-default[type="submit"]:hover {
    background: linear-gradient(135deg, #449d44, #357a35) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(92, 184, 92, 0.3) !important;
    color: #fff !important;
}

/* 美化換算按鈕 */
#read_bi_btn {
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

#read_bi_btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(51, 122, 183, 0.3) !important;
}

/* 美化下拉選單 */
select.form-control {
    cursor: pointer !important;
}

/* 美化驗證碼圖片 */
#index_psn_img {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

#index_psn_img:hover {
    border-color: #5cb85c !important;
    box-shadow: 0 2px 6px rgba(92, 184, 92, 0.2) !important;
}

/* 美化伺服器標題區塊 */
.main-title {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    color: #495057 !important;
    font-weight: 600 !important;
}

/* 內聯下拉選單樣式 */
#server_selector {
    display: inline-block !important;
    width: auto !important;
    margin: 0 10px !important;
    border-radius: 4px !important;
    border: 1px solid #ccc !important;
    padding: 5px 10px !important;
    background: #fff !important;
}

/* 美化底部說明文字 - 減少空白間距 */
.pb-20 {
    background: rgba(0,0,0,0.75) !important;
    border-radius: 6px !important;
    padding: 12px !important;
    margin-top: 15px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* 減少底部說明文字前的大量空白 */
.col-md-12.col-xs-12.pb-20 br {
    display: none !important;
}

/* 簡單的響應式調整 */
@media (max-width: 768px) {
    .container {
        margin: 15px !important;
        padding: 25px 20px !important;
    }
    
    #server_selector {
        width: 100% !important;
        margin: 10px 0 !important;
        display: block !important;
    }
}