:root {
    --primary: #072d17;
    /* Green primary */
    --secondary: #295734;
    --third: #f9c11b;
    /* Yellow */
    --border: #E5E7EB;
    --hover: #F9FAFB;
}

h3 {
    font-size: 24px;
    font-weight: bold;
}

body {
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Minimal Cards */
.content-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* Search */
.search-input {
    background: white;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(1, 175, 126, 0.1);
}

/* Button */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 175, 126, 0.3);
}

.btn-gradient:disabled {
    background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-gradient:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Stat Cards */
.stat-card {
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Comment Card */
.comment-card {
    background: #FAFBFC;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 12px;
}

.comment-card:hover {
    background: white;
    border-color: var(--primary);
}

/* Colorful Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.avatar-fallback {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Small Avatar */
.avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.avatar-sm-fallback {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--third) 100%);
}

/* Override Tailwind indigo colors with green theme */
.text-indigo-600,
.text-indigo-700 {
    color: var(--primary) !important;
}

.hover\:text-indigo-600:hover,
.hover\:text-indigo-800:hover {
    color: var(--primary) !important;
}

.bg-indigo-50 {
    background-color: rgba(1, 175, 126, 0.1) !important;
}

.bg-blue-50 {
    background-color: rgba(1, 175, 126, 0.08) !important;
}

.bg-green-50 {
    background-color: rgba(172 220 101 / 16%) !important
}

.bg-red-50 {
    background-color: rgba(249, 193, 27, 0.1) !important;
}

.border-blue-200 {
    border-color: rgba(1, 175, 126, 0.3) !important;
}

.border-green-200 {
    border-color: rgba(147, 201, 71, 0.3) !important;
}

.border-red-200 {
    border-color: rgba(249, 193, 27, 0.3) !important;
}

.text-blue-600,
.text-green-600 {
    color: var(--primary) !important;
}

.text-blue-700,
.text-green-700 {
    color: #019366 !important;
}

.bg-red-100 {
    background-color: rgba(249, 193, 27, 0.15) !important;
}

a {
    text-decoration: none !important;
}

ul {
    padding: 0 !important;
}

.row {
    padding: 0 !important;
}

/* Sidebar */
.sidebar-compact {
    background: white;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.sidebar-header {
    padding: 8px 14px;
    border-bottom: 0.5px solid #DDDDDD;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0px;
    border-radius: 6px;
    color: #000000;
    font-weight: normal;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cat-item:hover,
.cat-item.active {
    /* background: rgba(1, 175, 126, 0.1); */
    color: #009951;
}

.sidebar-body {
    padding: 8px 14px;
}

.detail-heading {
    font-size: 33px;
    font-weight: 500;
    color: '#000000';
}

/* Modal */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.show {
    display: flex; /* Show as flex to center content */
}

.modal-content-custom {
    background: white; /* Solid white background */
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    position: relative; /* Changed from absolute */
    z-index: 10000; /* Higher z-index */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.3s ease-out;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}

.modal-icon.success {
    background: #D1FAE5;
    color: #059669;
}

.modal-icon.error {
    background: #FEE2E2;
    color: #DC2626;
}

.modal-icon.warning {
    background: #FEF3C7;
    color: #D97706;
}

.modal-icon.info {
    background: #DBEAFE;
    color: #2563EB;
}

.meta-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #606060;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.meta-compact:hover {
    color: var(--primary);
    background: #F3F4F6;
}

.comment-field {
    border: 1px solid #DDDDDD;
}

.comment-field[readonly] {
    cursor: pointer;
    background-color: #F9FAFB;
    user-select: none;
}

.comment-field[readonly]:hover {
    background-color: #F3F4F6;
    border-color: #16A34A;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #111827;
    margin-bottom: 8px;
}

.modal-message {
    font-size: 14px;
    text-align: center;
    color: #6B7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.modal-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 45, 23, 0.3);
}

.modal-btn-secondary {
    background: #F3F4F6;
    color: #374151;
}

.modal-btn-secondary:hover {
    background: #E5E7EB;
}

/* Button loading state */
.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #e6f7f2 0%, #d4f3ea 100%);
    border: 1px solid #01af7e;
    color: #01af7e;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Post body content styling */
.text-gray-700.break-all h1 {
    font-size: 2em;
    font-weight: 700;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    line-height: 1.2;
    color: #111827;
}

.text-gray-700.break-all h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 0.83em;
    margin-bottom: 0.83em;
    line-height: 1.3;
    color: #1f2937;
}

.text-gray-700.break-all h3 {
    font-size: 1.17em;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 1em;
    line-height: 1.4;
    color: #374151;
}

.text-gray-700.break-all p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.text-gray-700.break-all ul,
.text-gray-700.break-all ol {
    padding-left: 2em !important;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.text-gray-700.break-all li {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.text-gray-700.break-all blockquote {
    border-left: 4px solid var(--border);
    padding-left: 1em;
    margin: 1em 0;
    color: #6B7280;
    font-style: italic;
}

.text-gray-700.break-all pre {
    background: #f3f4f6;
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1em 0;
}

.text-gray-700.break-all code {
    background: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.text-gray-700.break-all a {
    color: var(--primary);
    text-decoration: underline !important;
}

.text-gray-700.break-all a:hover {
    color: var(--secondary);
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}





@media (max-width: 700px) {
  .meta-compact {
    font-size: 11px;
  }
  .meta-compact svg {
   height: 11px;
   margin-top: 1px !important;
  }
}
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
