/* ================================
   科技风格全局样式
   适用于所有unicorn主题页面
   ================================ */

/* === 全局背景 === */
body {
    background: linear-gradient(135deg, #0a0a16 0%, #141625 50%, #0f0c29 100%) !important;
    color: #e0e6ff;
    min-height: 100vh;
}

/* 确保所有容器透明 */
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl {
    background: transparent !important;
}

/* 主内容区域 */
.main-container {
    background: transparent;
    padding: 40px 0;
}

/* === 统一卡片样式 === */
.card,
.tech-card {
    background: rgba(25, 30, 55, 0.6) !important;
    border: 1px solid rgba(70, 90, 150, 0.3) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(10px);
    color: #e0e6ff;
}

.card-header,
.tech-card-header {
    background: rgba(20, 25, 45, 0.8) !important;
    border-bottom: 1px solid rgba(70, 90, 150, 0.3) !important;
    color: #4fc3f7;
}

.card-body,
.tech-card-body {
    color: #e0e6ff;
}

.card-title {
    color: #bb86fc;
}

.text-muted {
    color: #8a9ab0 !important;
}

/* === 表单样式 === */
.form-control,
.form-select {
    background: rgba(15, 20, 40, 0.6) !important;
    border: 1px solid rgba(70, 90, 150, 0.3) !important;
    color: #e0e6ff !important;
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(20, 25, 45, 0.8) !important;
    border-color: #4fc3f7 !important;
    box-shadow: 0 0 0 0.2rem rgba(79, 195, 247, 0.15) !important;
    color: #e0e6ff !important;
}

.form-control::placeholder {
    color: #6a7a90 !important;
}

.form-label,
.col-form-label,
label {
    color: #b8c5e0;
}

/* === 按钮样式 === */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #2196f3, #6a1b9a) !important;
    border: none !important;
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.btn-outline-primary {
    background: transparent !important;
    border: 2px solid #4fc3f7 !important;
    color: #4fc3f7 !important;
}

.btn-outline-primary:hover {
    background: rgba(79, 195, 247, 0.1) !important;
    border-color: #4fc3f7 !important;
    color: #4fc3f7 !important;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #4caf50, #388e3c) !important;
    border: none !important;
}

.btn-info {
    background: linear-gradient(135deg, #00bcd4, #0097a7) !important;
    border: none !important;
}

.btn-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    border: none !important;
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
    border: none !important;
}

.btn-secondary {
    background: rgba(70, 90, 150, 0.5) !important;
    border: 1px solid rgba(70, 90, 150, 0.3) !important;
}

/* === 标签样式 === */
.badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.bg-primary {
    background: linear-gradient(135deg, #2196f3, #6a1b9a) !important;
}

.bg-success {
    background: linear-gradient(135deg, #4caf50, #388e3c) !important;
}

.bg-info {
    background: linear-gradient(135deg, #00bcd4, #0097a7) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
}

.bg-dark {
    background: rgba(20, 25, 45, 0.8) !important;
}

.bg-secondary {
    background: rgba(70, 90, 150, 0.5) !important;
}

/* === 表格样式 === */
.table {
    color: #e0e6ff;
}

.table-hover tbody tr:hover {
    background: rgba(79, 195, 247, 0.1);
}

.table thead th {
    background: rgba(20, 25, 45, 0.8);
    border-color: rgba(70, 90, 150, 0.3);
    color: #4fc3f7;
}

.table td,
.table th {
    border-color: rgba(70, 90, 150, 0.2);
}

/* === 分页样式 === */
.pagination {
    gap: 8px;
}

.page-link {
    background: rgba(25, 30, 55, 0.6);
    border: 1px solid rgba(70, 90, 150, 0.3);
    color: #4fc3f7;
    border-radius: 8px;
    margin: 0 4px;
}

.page-link:hover {
    background: rgba(79, 195, 247, 0.1);
    border-color: #4fc3f7;
    color: #4fc3f7;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #2196f3, #6a1b9a);
    border-color: transparent;
}

/* === 导航标签 === */
.nav-pills .nav-link {
    background: rgba(25, 30, 55, 0.5);
    border: 1px solid rgba(70, 90, 150, 0.3);
    color: #b8c5e0;
    border-radius: 8px;
    margin-right: 8px;
    transition: all 0.3s;
}

.nav-pills .nav-link:hover {
    background: rgba(79, 195, 247, 0.1);
    border-color: #4fc3f7;
    color: #4fc3f7;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #2196f3, #6a1b9a) !important;
    border-color: transparent !important;
    color: white !important;
}

/* === Modal样式 === */
.modal-content {
    background: rgba(25, 30, 55, 0.95);
    border: 1px solid rgba(70, 90, 150, 0.3);
    backdrop-filter: blur(10px);
    color: #e0e6ff;
}

.modal-header {
    border-bottom-color: rgba(70, 90, 150, 0.3);
}

.modal-footer {
    border-top-color: rgba(70, 90, 150, 0.3);
}

.modal-title {
    color: #bb86fc;
}

.btn-close {
    filter: invert(1);
}

/* === 统计卡片样式优化 === */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning,
.card.bg-danger {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* === 链接样式 === */
a {
    color: #4fc3f7;
    transition: all 0.3s;
}

a:hover {
    color: #bb86fc;
}

/* === 文本颜色 === */
.text-primary {
    color: #4fc3f7 !important;
}

.text-success {
    color: #4caf50 !important;
}

.text-info {
    color: #00bcd4 !important;
}

.text-warning {
    color: #ff9800 !important;
}

.text-danger {
    color: #f44336 !important;
}

/* === 边框颜色 === */
.border-primary {
    border-color: #4fc3f7 !important;
}

.border-success {
    border-color: #4caf50 !important;
}

/* === Alert样式 === */
.alert {
    background: rgba(25, 30, 55, 0.8);
    border: 1px solid rgba(70, 90, 150, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.alert-primary {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.5);
    color: #4fc3f7;
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
    color: #4caf50;
}

.alert-danger {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
    color: #f44336;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.2);
    border-color: rgba(255, 152, 0, 0.5);
    color: #ff9800;
}

.alert-info {
    background: rgba(0, 188, 212, 0.2);
    border-color: rgba(0, 188, 212, 0.5);
    color: #00bcd4;
}

/* === 输入组样式 === */
.input-group-text {
    background: rgba(20, 25, 45, 0.8);
    border: 1px solid rgba(70, 90, 150, 0.3);
    color: #b8c5e0;
}

/* === 单选框和复选框样式 === */
.form-check-input {
    background-color: rgba(15, 20, 40, 0.6);
    border-color: rgba(70, 90, 150, 0.3);
}

.form-check-input:checked {
    background-color: #4fc3f7;
    border-color: #4fc3f7;
}

.form-check-label {
    color: #b8c5e0;
}

/* === 响应式优化 === */
@media (max-width: 768px) {
    .main-container {
        padding: 20px 0;
    }
    
    .card,
    .tech-card {
        border-radius: 12px !important;
    }
}
