/**
 * 短网址系统 - 自定义样式
 */

/* 通用 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 缩短URL输入框 */
#singleForm .input-group-text {
    background-color: #f8f9fa;
}

/* 结果展示区域 */
.result-box {
    border-left: 4px solid #0d6efd;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表格优化 */
.table th {
    white-space: nowrap;
    font-weight: 600;
}

/* 大屏：允许表格横向滚动（Bootstrap 默认行为），但不强制覆盖 */

/* 手机端适配 */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    h1.display-5 {
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .input-group-lg > .form-control {
        font-size: 0.9rem;
    }
    
    .input-group-lg > .btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    /* 小屏幕复制按钮优化 */
    .copy-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .btn-group-sm > .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* 平板端适配 */
@media (min-width: 577px) and (max-width: 991px) {
    h1.display-5 {
        font-size: 2rem;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 边栏 */
.sidebar {
    position: sticky;
    top: 1rem;
}

.sidebar .nav-link {
    color: #495057;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}

.sidebar .nav-link i {
    width: 1.25rem;
    text-align: center;
    margin-right: 0.5rem;
}

/* 卡片悬停效果 */
.card.hover-shadow {
    transition: box-shadow 0.2s;
}
.card.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
}

/* Toast提示 */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1055;
}

/* 模态框遮罩 */
.modal-backdrop {
    background-color: rgba(0,0,0,0.5);
}
