/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

body.dark-theme .theme-toggle-btn i.bx-sun {
    color: #f9d71c;
}

body.light-theme .theme-toggle-btn i.bx-moon,
.theme-toggle-btn i.bx-moon {
    color: #6366f1;
}

/* Dark Theme Styles */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-theme header {
    background-color: #1e1e1e;
    border-bottom: 1px solid #333;
}

body.dark-theme footer {
    background-color: #1e1e1e;
    border-top: 1px solid #333;
}

/* Dark Mode Link Color Overrides */
body.dark-theme a {
    color:  #c1bcbc; /*#a5d8ff;  /* A softer light blue for better visibility on dark backgrounds */
}

body.dark-theme a:hover {
    color:  #74c0fc;   A slightly darker shade for hover state */
}

/* Override specific Tailwind classes in dark mode */
body.dark-theme .text-blue-600 {
    color: #c1bcbc; /*#a5d8ff !important;*/
}

body.dark-theme .text-blue-600:hover,
body.dark-theme .hover\:text-blue-800:hover {
    color: #74c0fc !important;
}

body.dark-theme .text-green-700 {
    color: #8ce99a !important; /* Lighter green for dark mode */
}

/* Pagination button colors in dark mode */
body.dark-theme .border {
    border-color: #333;
}


body.dark-theme a.bg-blue-600 {
    background-color: #4dabf7 !important;
}

body.dark-theme a.text-blue-600 {
    color:#b4b7bc!important;
}

body.dark-theme a.hover\:bg-blue-100:hover {
    background-color: #1e3a5f !important;
}

body.dark-theme footer h1 {
    color: #e0e0e0;
}

body.dark-theme .bg-white {
    background-color: #1e1e1e;
}

body.dark-theme .text-gray-700 {
    color: #e0e0e0;
}

body.dark-theme .hover\:bg-gray-100:hover {
    background-color: #333;
}

body.dark-theme .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Alpine x-cloak directive - hides elements until Alpine initializes */
[x-cloak] {
    display: none !important;
}
/* Markdown styling */
.markdown-content {
    line-height: 1.6;
}
.markdown-content h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.markdown-content h2 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.markdown-content h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.markdown-content p {
    margin-bottom: 0.75rem;
}
.markdown-content ul, .markdown-content ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}
.markdown-content ul {
    list-style-type: disc;
}
.markdown-content ol {
    list-style-type: decimal;
}
.markdown-content pre {
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
    overflow-x: auto;
}
.markdown-content pre code {
    font-family: monospace;
}
.markdown-content code {
    font-family: monospace;
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
    font-size: 1.1em;
    background-color: rgba(0, 0, 0, 0.1);
}
.markdown-content a {
    color: #3182ce;
    text-decoration: underline;
}
.markdown-content blockquote {
    border-left: 3px solid #cbd5e0;
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
}
.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}
.markdown-content table th, .markdown-content table td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
}
/* Dark mode adjustments */
.dark-theme .markdown-content code {
    background-color: rgba(255, 255, 255, 0.1);
}
.dark-theme .markdown-content blockquote {
    border-left-color: #4a5568;
}
.dark-theme .markdown-content table th, .dark-theme .markdown-content table td {
    border-color: #4a5568;
}

#notification-modal {
    position: fixed;
    border-radius: 8px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 8%;
    margin: 5px 0;
    background-color: #add8e6f0;
    border: 2px solid #6e8ec1;
    color: #2661c1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.25rem;
    z-index: 1000;
    transition: top 0.5s;
    }