/* Admin Dashboard Styles */

/* Custom styles for the dashboard */
body {
    background-color: #f8f9fa;
}

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

/* Navbar dropdown styles */
.dropdown-item.active, 
.dropdown-item:active {
    background-color: #343a40;
    color: white;
}

.nav-item.dropdown .dropdown-toggle.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Make dropdown menus wider for better readability */
.dropdown-menu {
    min-width: 12rem;
}

/* Add a subtle hover effect for dropdown items */
.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Add spacing between icons and text */
.nav-link i, .dropdown-item i {
    margin-right: 0.5rem;
}

/* Improve spacing in navbar items */
.navbar-nav .nav-item {
    margin-right: 0.25rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.build-status {
    transition: all 0.3s ease;
}

/* Additional styles for future features */
.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

/* Markdown Preview Styles */
.markdown-preview {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #212529;
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.25rem;
}

.markdown-preview h1, 
.markdown-preview h2, 
.markdown-preview h3, 
.markdown-preview h4, 
.markdown-preview h5, 
.markdown-preview h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

.markdown-preview h1 { font-size: 2.25rem; border-bottom: 1px solid #eaecef; padding-bottom: 0.3rem; }
.markdown-preview h2 { font-size: 1.8rem; border-bottom: 1px solid #eaecef; padding-bottom: 0.3rem; }
.markdown-preview h3 { font-size: 1.5rem; }
.markdown-preview h4 { font-size: 1.25rem; }
.markdown-preview h5 { font-size: 1rem; }
.markdown-preview h6 { font-size: 0.875rem; }

.markdown-preview p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.markdown-preview a {
    color: #0d6efd;
    text-decoration: none;
}

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

.markdown-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

.markdown-preview blockquote {
    padding: 0.5rem 1rem;
    margin: 0 0 1rem;
    border-left: 0.25rem solid #e9ecef;
    color: #6c757d;
}

.markdown-preview pre {
    display: block;
    padding: 1rem;
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #212529;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    overflow-x: auto;
}

.markdown-preview code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
    color: #d63384;
    word-wrap: break-word;
}

.markdown-preview pre code {
    color: inherit;
    word-break: normal;
    background-color: transparent;
    padding: 0;
}

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

.markdown-preview li {
    margin-bottom: 0.25rem;
}

.markdown-preview table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.markdown-preview table th,
.markdown-preview table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.markdown-preview table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

.markdown-preview hr {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-4 {
        margin-top: 1.5rem;
    }
}
