/* 通用样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: 600;
}

.main-content {
    padding: 20px;
}

.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    font-weight: 600;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.btn {
    border-radius: 0.3rem;
}

/* 表单样式 */
.form-control {
    border-radius: 0.3rem;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 登录页面样式 */
.login-form {
    max-width: 380px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* 管理员后台样式 */
.sidebar {
    min-height: calc(100vh - 56px);
    background-color: #f8f9fa;
    padding: 20px 0;
}

.sidebar .nav-link {
    color: #333;
    border-radius: 0;
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.page-title {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-table th, .phone-table td {
    vertical-align: middle;
}

.action-btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.pagination {
    margin-bottom: 0;
}

.alert-float {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.btn-primary {
    background-color: #4a89dc;
    border-color: #4a89dc;
}

.btn-primary:hover {
    background-color: #3a70c0;
    border-color: #3a70c0;
}

/* 复制按钮样式 */
#copy-btn, #clear-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

#copy-btn:hover, #clear-btn:hover {
    background-color: #e9ecef;
}

#copy-btn:active, #clear-btn:active {
    transform: scale(0.95);
}

#result-container {
    white-space: pre-wrap;
    font-size: 16px;
    line-height: 1.6;
    padding: 15px;
}

/* 会话恢复相关样式 */
.recovery-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
}

.session-indicator {
    font-size: 0.85rem;
    padding: 5px 0;
}

/* Markdown样式 */
#result-container h1, #result-container h2, #result-container h3,
#result-container h4, #result-container h5, #result-container h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#result-container h1 { font-size: 1.8rem; }
#result-container h2 { font-size: 1.6rem; }
#result-container h3 { font-size: 1.4rem; }
#result-container h4 { font-size: 1.2rem; }

#result-container strong {
    font-weight: 600;
}

#result-container em {
    font-style: italic;
}

#result-container code {
    background-color: #f8f9fa;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-family: monospace;
}

.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
}

.img-preview {
    max-width: 100%;
    max-height: 150px;
    margin-top: 10px;
    display: none;
}

.red-text {
    color: red;
    font-weight: bold;
}

.black-text {
    color: black;
}

.paste-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.paste-area:hover, .paste-area.active {
    border-color: #4a89dc;
    background-color: #f0f4f9;
}

.paste-area.dragover {
    border-color: #4a89dc;
    background-color: #e6f0ff;
}

.paste-instruction {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.paste-icon {
    font-size: 24px;
    color: #4a89dc;
    margin-bottom: 10px;
}

/* 断点续传提示样式 */
#reconnect-alert {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 300px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 会话状态指示器样式 */
#session-indicator {
    background-color: #e9ecef;
    padding: 5px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: opacity 0.3s ease;
}

#session-indicator.fade-out {
    opacity: 0;
}
