/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #24292e;
    background-color: #ffffff;
}

/* 导航栏 */
.navbar {
    background-color: #24292e;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: #c9d1d9;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.nav-username {
    color: #f0f6fc;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-link:hover {
    background-color: #30363d;
    color: white;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

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

/* 页面头部 */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #24292e;
}

.page-header p {
    color: #586069;
    font-size: 1.1rem;
}

.breadcrumb {
    margin-bottom: 1rem;
    color: #586069;
}

.breadcrumb a {
    color: #0366d6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
}

/* 表单样式 */
.add-repo-section {
    background: #f6f8fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.add-repo-section h2 {
    margin-bottom: 1rem;
    color: #24292e;
}

.add-repo-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: #0366d6;
    box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
}

.form-help {
    color: #586069;
    font-size: 0.9rem;
}

.form-help ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #0366d6;
    color: white;
}

.btn-primary:hover {
    background-color: #0256cc;
}

.btn-outline {
    background-color: transparent;
    color: #0366d6;
    border: 1px solid #d1d5da;
}

.btn-outline:hover {
    background-color: #f6f8fa;
}

.btn-danger {
    background-color: #d73a49;
    color: white;
}

.btn-danger:hover {
    background-color: #cb2431;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* 仓库网格 */
.repos-section h2 {
    margin-bottom: 1.5rem;
    color: #24292e;
}

.repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.repo-card {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.repo-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.repo-name {
    margin: 0;
    font-size: 1.2rem;
}

.repo-name a {
    color: #0366d6;
    text-decoration: none;
}

.repo-name a:hover {
    text-decoration: underline;
}

.repo-actions {
    display: flex;
    gap: 0.5rem;
}

.repo-description {
    color: #586069;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.repo-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #586069;
    font-size: 0.9rem;
}

.stat-icon {
    font-size: 1rem;
}

.repo-meta {
    border-top: 1px solid #e1e4e8;
    padding-top: 1rem;
}

.text-muted {
    color: #586069;
}

/* Issues 列表 */
.filters-section {
    margin-bottom: 1.5rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #e1e4e8;
}

.filter-tab {
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #586069;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.filter-tab:hover {
    color: #24292e;
}

.filter-tab.active {
    color: #24292e;
    border-bottom-color: #0366d6;
}

.issues-list {
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background: white;
}

.issue-item {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #e1e4e8;
    transition: background-color 0.2s;
}

.issue-item:last-child {
    border-bottom: none;
}

.issue-item:hover {
    background-color: #f6f8fa;
}

.issue-status {
    margin-right: 1rem;
    padding-top: 0.25rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-open {
    background-color: #d4edda;
    color: #155724;
}

.status-closed {
    background-color: #f8d7da;
    color: #721c24;
}

.issue-content {
    flex: 1;
}

.issue-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.issue-title {
    margin: 0;
    font-size: 1.1rem;
}

.issue-title a {
    color: #24292e;
    text-decoration: none;
}

.issue-title a:hover {
    color: #0366d6;
}

.issue-number {
    color: #586069;
    font-size: 0.9rem;
}

.issue-body {
    color: #586069;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.issue-labels {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.label {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.issue-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #586069;
}

.issue-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar-sm {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.issue-comments {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-icon {
    font-size: 0.8rem;
}

.issue-actions {
    margin-left: 1rem;
    padding-top: 0.25rem;
}

/* Issue 详情页 */
.issue-detail {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.issue-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.issue-title-section {
    flex: 1;
}

.issue-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #24292e;
}

.issue-number-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.issue-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e4e8;
}

.author-info {
    margin-left: 0.5rem;
}

.issue-time {
    color: #586069;
    font-size: 0.9rem;
}

.markdown-content {
    line-height: 1.6;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.markdown-content p {
    margin-bottom: 1rem;
}

.markdown-content pre {
    background: #f6f8fa;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.markdown-content code {
    background: #f6f8fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.markdown-content blockquote {
    border-left: 4px solid #dfe2e5;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #586069;
}

.no-description {
    color: #586069;
    font-style: italic;
}

/* 评论区 */
.comments-section {
    margin-top: 2rem;
}

.comments-title {
    margin-bottom: 1.5rem;
    color: #24292e;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    display: flex;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}

.comment-author {
    margin-right: 1rem;
}

.comment-content {
    flex: 1;
    padding-bottom: 50px; /* 为编辑按钮留出空间 */
    position: relative;
}

.comment-edit-btn {
    background: none;
    border: none;
    color: #656d76;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s;
    position: absolute;
    bottom: 16px;
    right: 16px;
}

.comment-edit-btn:hover {
    color: #0969da;
    background-color: #f6f8fa;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-menu {
    position: relative;
}

.comment-menu-btn {
    background: none;
    border: none;
    color: #586069;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.comment-menu-btn:hover {
    background-color: #f6f8fa;
    color: #24292e;
}

.comment-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 120px;
    padding: 4px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    color: #24292e;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: background-color 0.2s ease;
}

.menu-item:hover {
    background-color: #f6f8fa;
}

.menu-item.delete-comment-btn {
    color: #dc3545;
}

.menu-item.delete-comment-btn:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.comment-author-name {
    color: #24292e;
}

.comment-time {
    color: #586069;
    font-size: 0.9rem;
}

.comment-edited {
    color: #586069;
    font-size: 0.8rem;
    font-style: italic;
}

.comment-body {
    margin-top: 0.5rem;
}

/* 编辑功能样式 */
.issue-actions-bottom {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e4e8;
    text-align: right;
}

.comment-actions {
    margin-top: 1rem;
    text-align: right;
}

.issue-edit-section,
.comment-edit-section {
    margin-top: 1rem;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    background: #f6f8fa;
}

.edit-tabs {
    display: flex;
    border-bottom: 1px solid #e1e4e8;
    background: white;
    border-radius: 6px 6px 0 0;
}

.tab-btn {
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #586069;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #24292e;
    background: #f6f8fa;
}

.tab-btn.active {
    color: #24292e;
    border-bottom-color: #0366d6;
    background: white;
}

.edit-content {
    position: relative;
}

.tab-panel {
    display: none;
    padding: 1rem;
}

.tab-panel.active {
    display: block;
}

.markdown-editor {
    width: 100%;
    min-height: 200px;
    padding: 0.75rem;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    background: white;
}

.markdown-editor:focus {
    outline: none;
    border-color: #0366d6;
    box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
}

.edit-actions {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e1e4e8;
    border-radius: 0 0 6px 6px;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

#preview-content,
.comment-edit-section .markdown-content {
    min-height: 100px;
    padding: 0.75rem;
    background: white;
    border: 1px solid #d1d5da;
    border-radius: 6px;
}

/* 编辑按钮图标样式 */
.btn svg {
    margin-right: 0.25rem;
    vertical-align: text-bottom;
}

/* 添加评论模块样式 */
.add-comment-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
}

.add-comment-container {
    display: flex;
    gap: 1rem;
}

.add-comment-form {
    flex: 1;
}

.comment-tabs {
    display: flex;
    border-bottom: 1px solid #e1e4e8;
    margin-bottom: 0;
}

.comment-tabs .tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: #586069;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.comment-tabs .tab-btn:hover {
    color: #24292e;
}

.comment-tabs .tab-btn.active {
    color: #24292e;
    border-bottom-color: #fd8c73;
}

.comment-input-container {
    border: 1px solid #e1e4e8;
    border-radius: 0 0 6px 6px;
    background: white;
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: none;
    border-radius: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    background: transparent;
}

.comment-textarea:focus {
    outline: none;
}

.comment-textarea::placeholder {
    color: #8b949e;
}

.markdown-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid #e1e4e8;
    background: #f6f8fa;
    border-radius: 0 0 6px 6px;
}

.toolbar-group {
    display: flex;
    gap: 0.25rem;
}

.toolbar-btn {
    padding: 0.25rem;
    border: none;
    background: transparent;
    color: #656d76;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-btn:hover {
    background: #e1e4e8;
    color: #24292e;
}

.comment-preview {
    min-height: 120px;
    padding: 0.75rem;
    background: white;
    border-radius: 0 0 6px 6px;
}

.preview-placeholder {
    color: #8b949e;
    font-style: italic;
    margin: 0;
}

.comment-actions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.comment-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #656d76;
    font-size: 0.8rem;
}

.comment-help svg {
    opacity: 0.7;
}

.comment-submit-actions {
    display: flex;
    gap: 0.5rem;
}

#submit-comment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .edit-actions {
        flex-direction: column;
    }
    
    .edit-actions .btn {
        width: 100%;
    }
    
    .issue-actions-bottom,
    .comment-actions {
        text-align: center;
    }
    
    .add-comment-container {
        flex-direction: column;
    }
    
    .comment-actions-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .toolbar-group {
        flex-wrap: wrap;
    }
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: #586069;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-info {
    color: #586069;
}

/* 空状态 */
.loading-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #586069;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #586069;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #24292e;
}

/* Flash 消息 */
.flash-messages {
    margin-bottom: 1rem;
}

.flash-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
}

/* 页脚 */
.footer {
    background-color: #f6f8fa;
    padding: 1rem 0;
    border-top: 1px solid #e1e4e8;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    color: #586069;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .repos-grid {
        grid-template-columns: 1fr;
    }
    
    .repo-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .repo-actions {
        align-self: stretch;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .issue-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .issue-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .issue-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .comment-item {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 数据导出功能样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0;
    color: #24292e;
}

.btn-icon {
    margin-right: 0.5rem;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e1e4e8;
}

.modal-header h3 {
    margin: 0;
    color: #24292e;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #586069;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: #f6f8fa;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e1e4e8;
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    appearance: none;
}

.form-select:focus {
    outline: none;
    border-color: #0366d6;
    box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
}

.export-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f6f8fa;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
}

.info-item {
    margin-bottom: 0.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.btn-secondary {
    background-color: #f6f8fa;
    color: #24292e;
    border: 1px solid #d1d5da;
}

.btn-secondary:hover {
    background-color: #e1e4e8;
}

/* 进度覆盖层样式 */
.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    min-width: 300px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0366d6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-content p {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #24292e;
}

.progress-content small {
    color: #586069;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}