/**
 * 资源占位CSS
 * 这个文件提供默认样式来替代缺失的图片资源
 */

/* 替代缺失的背景图片 */
[style*="background-image: url('../images/background.png')"],
[style*="background-image:url('../images/background.png')"],
[style*="background-image: url('images/background.png')"],
[style*="background-image:url('images/background.png')"] {
    background-image: none !important;
    background-color: #f5f5f5 !important;
}

/* 替代缺失的边框图片 */
[style*="border-image: url('../images/border.png')"],
[style*="border-image:url('../images/border.png')"],
[style*="border-image: url('images/border.png')"],
[style*="border-image:url('images/border.png')"] {
    border-image: none !important;
    border: 2px solid #3498db !important;
    border-radius: 4px !important;
}

/* 覆盖CSS中直接定义的边框图片 */
.pixel-border,
.tool-container,
.dialog,
.add-student,
.sidebar {
    border-image: none !important;
    border: 2px solid #3498db !important;
    border-radius: 4px !important;
}

/* 替代CSS中直接引用的背景图片 */
.hero,
.feature-card,
.tool-container,
.seating-container,
.zoo-container,
.tree-container {
    border-image: none !important;
    border: 2px solid #3498db !important;
    border-radius: 4px !important;
}

/* 添加背景色替代缺失的背景图片 */
body {
    background-color: #f5f5f5 !important;
    background-image: none !important;
}

/* 修复全屏模式样式 */
.fullscreen-mode {
    background-image: none !important;
    background-color: #f5f5f5 !important;
}

/* 统一按钮样式 */
button, 
.button, 
.action-btn, 
.submit-btn, 
#add-class-btn,
.fullscreen-btn,
.control-btn {
    background-color: #5b8731 !important;
    color: white !important;
    font-family: Arial, sans-serif !important;
    border: 2px solid #333 !important;
    border-radius: 4px !important;
    padding: 8px 15px !important;
    box-shadow: none !important;
}

/* 按钮悬停效果 */
button:hover, 
.button:hover, 
.action-btn:hover, 
.submit-btn:hover, 
#add-class-btn:hover,
.fullscreen-btn:hover,
.control-btn:hover {
    background-color: #3b511a !important;
}

/* 添加字体替代 */
body,
h1, h2, h3, h4, h5, h6,
.minecraft-text,
.pixel-text,
.minecraft-button-text,
.minecraft-title {
    font-family: 'Courier New', monospace !important;
}

/* 表格样式 */
th {
    background-color: #5b8731 !important;
    color: white !important;
}

/* 修复logo和header */
.logo {
    content: "班级管理" !important;
    display: inline-block !important;
    width: 80px !important;
    height: 80px !important;
    background-color: #5b8731 !important;
    color: white !important;
    text-align: center !important;
    line-height: 80px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
}

/* 对话框样式 */
.dialog-overlay {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.dialog {
    background-color: white !important;
} 