/* Forum Specific Styles */

/* Forum Container */
.forum-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 2rem;
    box-sizing: border-box;
}

/* Auth Container */
.auth-container {
    max-width: 650px;
    width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    box-sizing: border-box;
}

/* Forum Header */
.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-strong);
}

.forum-title h1 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.forum-title p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

.forum-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-welcome {
    color: var(--color-text-primary);
    font-size: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--color-surface-elevated);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-strong);
}

.btn-secondary:hover {
    background: var(--color-surface-muted);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Forum Stats */
.forum-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-strong);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 3rem;
    background: var(--gradient-primary);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-heading);
}

.stat-label {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Categories */
.forum-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-strong);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.category-info {
    flex: 1;
}

.category-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

.category-info h3 a {
    color: var(--color-heading);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-info h3 a:hover {
    color: #7D45FF;
}

.lock-icon {
    font-size: 1rem;
    opacity: 0.6;
}

.category-info p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.category-stats {
    display: flex;
    gap: 1.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--color-border-muted);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7D45FF;
}

.stat-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.category-last-post {
    min-width: 200px;
}

.last-post-info {
    font-size: 0.9rem;
}

.last-topic {
    color: var(--color-link);
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.last-topic:hover {
    color: #FF095A;
}

.last-post-meta {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.no-posts {
    color: var(--color-text-muted);
    font-style: italic;
}

/* Recent Topics Sidebar */
.recent-topics-sidebar {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-strong);
}

.recent-topics-sidebar h3 {
    color: var(--color-heading);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.recent-topic-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border-muted);
}

.recent-topic-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-topic-item a {
    color: var(--color-link);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.3rem;
}

.recent-topic-item a:hover {
    color: #FF095A;
}

.recent-topic-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    gap: 0.5rem;
}

.recent-topic-meta .category {
    font-weight: 600;
}

/* Auth Pages */
.auth-container {
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.auth-card {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    max-width: 100%;
    width: 100%;
    border: 1px solid var(--color-border-strong);
    box-sizing: border-box;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--color-text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-border-strong);
    background: var(--color-input-background);
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7D45FF;
    box-shadow: var(--shadow-focus);
}

.form-group small {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.form-check {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
}

.form-check input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(125, 69, 255, 0.1);
    border: 1px solid #7D45FF;
    color: var(--color-text-primary);
}

.alert-error {
    background: rgba(255, 9, 90, 0.1);
    border: 1px solid #FF095A;
    color: var(--color-text-primary);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-muted);
}

.auth-footer p {
    color: var(--color-text-secondary);
    margin: 0.5rem 0;
}

.auth-footer a {
    color: #7D45FF;
    font-weight: 600;
}

.auth-footer a:hover {
    color: #FF095A;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-card {
        grid-template-columns: auto 1fr;
    }
    
    .category-stats,
    .category-last-post {
        grid-column: 1 / -1;
        border: none;
        padding: 0;
        margin-top: 1rem;
    }
    
    .category-stats {
        justify-content: flex-start;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--color-border-muted);
    }
}

@media (max-width: 768px) {
    .forum-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .forum-title h1 {
        font-size: 2rem;
    }
    
    .forum-stats {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
}

/* New Topic Form */
.new-topic-form {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-strong);
}

.new-topic-form h1 {
    font-size: 2rem;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.new-topic-form .form-group {
    margin-bottom: 1.5rem;
}

.new-topic-form label {
    display: block;
    color: var(--color-text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.new-topic-form input[type="text"],
.new-topic-form select,
.new-topic-form textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-background);
    border: 1px solid var(--color-border-muted);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.new-topic-form input:focus,
.new-topic-form select:focus,
.new-topic-form textarea:focus {
    outline: none;
    border-color: #ff8c42;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.new-topic-form textarea {
    resize: vertical;
    min-height: 200px;
}

.new-topic-form small {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-secondary {
    background: var(--color-surface-elevated);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-muted);
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
}

/* Category Pages */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--color-surface);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-strong);
}

.category-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.category-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--color-text-secondary);
}

.topics-list {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-strong);
}

.no-topics {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-secondary);
}

.topics-table {
    width: 100%;
}

.topics-header {
    display: grid;
    grid-template-columns: 1fr 100px 100px 200px;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-surface-elevated);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.topic-row {
    display: grid;
    grid-template-columns: 1fr 100px 100px 200px;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border-muted);
    transition: background 0.2s;
}

.topic-row:hover {
    background: var(--color-surface-hover);
}

.topic-row.pinned {
    background: rgba(255, 215, 0, 0.05);
}

.topic-title-col {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.topic-link {
    color: var(--color-text-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}

.topic-link:hover {
    color: #ff8c42;
}

.topic-meta {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.topic-stats-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    color: var(--color-text-primary);
    font-weight: 600;
}

.topic-lastpost-col {
    display: flex;
    align-items: center;
}

.lastpost-info {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.lastpost-time {
    color: var(--color-text-primary);
    font-weight: 600;
}

.lastpost-author {
    font-size: 0.8rem;
}

/* Topic/Post Pages */
.topic-header {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-strong);
}

.topic-header h1 {
    color: var(--color-text-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    background: var(--color-surface);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-strong);
}

.post-author {
    text-align: center;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin: 0 auto 1rem;
}

.author-username {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.author-role {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.author-stats {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
}

.post-content {
    flex: 1;
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border-muted);
}

.post-date {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.post-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

.post-link:hover {
    color: #ff8c42;
}

.post-body {
    color: var(--color-text-primary);
    line-height: 1.6;
}

.post-edited {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Reply Form */
.reply-form {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-strong);
}

.reply-form h3 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.reply-locked {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--color-text-secondary);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-muted);
}

.login-prompt {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-strong);
}

.login-prompt a {
    color: #ff8c42;
    text-decoration: none;
    font-weight: 600;
}

/* Breadcrumb */
.forum-breadcrumb {
    padding: 1rem 0;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forum-breadcrumb a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.forum-breadcrumb a:hover {
    color: #ff8c42;
}

/* Markdown Content Styles */
.markdown-content {
    line-height: 1.6;
}

.markdown-content h1, 
.markdown-content h2, 
.markdown-content h3, 
.markdown-content h4, 
.markdown-content h5, 
.markdown-content h6 {
    color: var(--color-text-primary);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.markdown-content h1 { font-size: 2rem; }
.markdown-content h2 { font-size: 1.75rem; }
.markdown-content h3 { font-size: 1.5rem; }
.markdown-content h4 { font-size: 1.25rem; }
.markdown-content h5 { font-size: 1.1rem; }
.markdown-content h6 { font-size: 1rem; }

.markdown-content strong {
    font-weight: 600;
    color: var(--color-text-primary);
}

.markdown-content em {
    font-style: italic;
}

.markdown-content code {
    background: var(--color-background);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #ff8c42;
}

.markdown-content pre {
    background: var(--color-background);
    border: 1px solid var(--color-border-muted);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-content pre code {
    background: transparent;
    padding: 0;
    color: var(--color-text-primary);
    font-size: 0.875rem;
}

.markdown-content blockquote {
    border-left: 4px solid #ff8c42;
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--color-text-secondary);
    font-style: italic;
}

.markdown-content ul,
.markdown-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-content li {
    margin: 0.5rem 0;
}

.markdown-content a {
    color: #ff8c42;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content img,
.markdown-content .markdown-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.markdown-content hr {
    border: none;
    border-top: 1px solid var(--color-border-muted);
    margin: 2rem 0;
}

/* Markdown Help */
.markdown-help {
    margin: 1rem 0;
}

.markdown-help details {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-muted);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.markdown-help summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-primary);
    padding: 0.5rem 0;
    user-select: none;
}

.markdown-help summary:hover {
    color: #ff8c42;
}

.markdown-help ul {
    margin: 1rem 0 0.5rem 0;
    padding-left: 1.5rem;
    list-style: none;
}

.markdown-help li {
    margin: 0.5rem 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.markdown-help code {
    background: var(--color-background);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #ff8c42;
}

/* Post Action Links */
.post-action-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
    opacity: 0.7;
}

.post-action-link:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #ef4444;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* Delete Confirmation Styles */
.delete-confirmation-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border-strong);
    max-width: 700px;
    width: 100%;
    margin: 2rem auto;
    overflow: hidden;
    box-sizing: border-box;
}

.delete-header {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border-muted);
}

.delete-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: shake 0.5s ease-in-out;
}

.delete-icon-topic {
    filter: grayscale(100%) brightness(0.7);
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.delete-header h1 {
    font-size: 1.75rem;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
}

.delete-header p {
    color: var(--color-text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.delete-preview {
    background: var(--color-surface-elevated);
    padding: 1.5rem;
    margin: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #dc2626;
}

.delete-preview-topic {
    border-left-color: #f59e0b;
}

.preview-meta {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-author {
    font-weight: 600;
    color: var(--color-text-primary);
}

.preview-separator {
    opacity: 0.5;
}

.preview-date {
    opacity: 0.8;
}

.preview-content {
    color: var(--color-text-primary);
    line-height: 1.6;
}

.topic-preview-header h3 {
    color: var(--color-text-primary);
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
}

.topic-preview-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.topic-preview-content {
    color: var(--color-text-primary);
    line-height: 1.6;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-muted);
}

.delete-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.delete-warning-severe {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
}

.warning-text strong {
    color: var(--color-text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.delete-warning p {
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.6;
}

.delete-form {
    padding: 1.5rem;
    background: var(--color-surface-elevated);
    border-top: 1px solid var(--color-border-muted);
}

.delete-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger-outline {
    background: transparent;
    color: #dc2626;
    border: 2px solid #dc2626;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-danger-outline:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-1px);
}

/* Topic Header Layout */
.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.topic-header-main {
    flex: 1;
}

.topic-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

/* Responsive adjustments for tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .delete-confirmation-card {
        max-width: 90%;
        margin: 2rem auto;
    }
    
    .auth-container {
        max-width: 80%;
    }
}

/* Responsive adjustments for delete UI */
@media (max-width: 768px) {
    .delete-confirmation-card {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .auth-container {
        margin: 1rem auto;
        padding: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .delete-actions {
        grid-template-columns: 1fr;
    }
    
    .btn-cancel {
        order: 2;
    }
    
    .delete-icon {
        font-size: 3rem;
    }
    
    .delete-header h1 {
        font-size: 1.5rem;
    }
    
    .topic-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .topic-actions {
        width: 100%;
    }
    
    .btn-danger-outline {
        width: 100%;
        justify-content: center;
    }
}

/* Forgot Password & Reset Password Styles */
.error-message,
.success-message {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

.error-message {
    background: rgba(255, 9, 90, 0.1);
    border: 1px solid #FF095A;
    color: var(--color-text-primary);
}

.success-message {
    background: rgba(125, 255, 125, 0.1);
    border: 1px solid #00dd00;
    color: var(--color-text-primary);
}

.error-icon,
.success-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-muted);
    color: var(--color-text-secondary);
}

.auth-links a {
    color: #7D45FF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #FF095A;
}

.auth-links .separator {
    margin: 0 0.5rem;
    color: var(--color-text-muted);
}

.auth-info {
    background: var(--color-surface-elevated);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--color-border-muted);
}

.auth-info h3 {
    color: var(--color-text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.auth-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-info ul li {
    color: var(--color-text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.auth-info ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #7D45FF;
    font-weight: bold;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--color-surface-elevated);
    border-radius: 6px;
}

.strength-bar {
    height: 6px;
    background: var(--color-border-muted);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-strength small {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
}

.form-help {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button disabled state */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}


