/* 自定义样式补充 */
.notification {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 快捷键输入框特殊样式 */
input[id^="hotkey_"] {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-align: center;
    background-color: #f8fafc;
}

input[id^="hotkey_"]:focus {
    background-color: #e0f2fe;
    border-color: #0284c7;
}

/* PPT文件项悬停效果 */
.bg-gray-50:hover {
    background-color: #f1f5f9;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* 按钮悬停动画 */
button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 文件图标动画 */
.fa-file-powerpoint {
    transition: transform 0.2s ease;
}

.bg-gray-50:hover .fa-file-powerpoint {
    transform: scale(1.1);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .flex.items-center.justify-between {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .flex.items-center.space-x-4 {
        flex-direction: column;
        gap: 1rem;
    }
    
    input[type="text"] {
        width: 100%;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .bg-white {
        background-color: #374151;
    }
    
    .bg-gray-50 {
        background-color: #4b5563;
    }
    
    .text-gray-800 {
        color: #f9fafb;
    }
    
    .text-gray-700 {
        color: #e5e7eb;
    }
    
    .border-gray-300 {
        border-color: #6b7280;
    }
}
