/* Custom CSS for Mmtune */

:root {
    --primary-color: #10b986;
    --primary-hover: #059669;
    --primary-dark: #047857;
    --footer-bg: #101828;
    --text-gray: #1f2937;
    --text-gray-light: #6b7280;
    --border-gray: #e5e7eb;
	--dot-color: #3193C1;
	--before-color: #065E52;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    scroll-behavior: smooth;
	padding: 5px;
    background-color: #ffffff;
    color: var(--text-gray);
	
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
    color: var(--text-gray);
}

a:hover {
    text-decoration: none;
}

button {
    cursor: pointer;
}

/* Primary Color Overrides */
.text-primary {
    color: var(--primary-color) !important;
}

.text-gray{
    color: var(--text-gray) !important;
}
.bg-primary {
    background-color: var(--primary-color) !important;
}
.bg-light{
    background-color: #e5e7eb !important;
}
.bg-custom-light
{
    background-color: #f5f5f5 !important;
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.bg-green-gradient {
    background: linear-gradient(to bottom, #10b986, #059669);
}

.bg-green-gradient-dark {
    background: linear-gradient(to bottom, #059669, #047857);
}
.screenshots-carousel .slick-prev::before, .screenshots-carousel .slick-next::before
{
    color: var(--before-color) !important;
    background-color: transparent !important;
}

/* Navbar Styles */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--border-gray);
    padding-top: 20px;
    padding-bottom: 20px;
}

.navbar-custom .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-custom .nav-link {
    color: var(--text-gray);
    font-weight: 600;
    padding: 0.5rem .2rem;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover {
    color: var(--primary-color);
}

/* Footer Styles */
footer {
    background-color: var(--footer-bg) !important;
    color: #d1d5dc !important;
    padding: 2rem 0 0 0;
}

footer h3 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

footer a {
    color: #d1d5dc;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
}

.footer-ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-ul li {
    width: 50%;
    margin-bottom: 0.5rem;
}

/* Dropdown Styles */
.dropdown-menu-custom {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    width: 12rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-gray);
    padding: 0.5rem 0;
    z-index: 1050;
}

.dropdown-menu-custom.show {
    display: block;
}

.dropdown-menu-custom .dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-gray);
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.dropdown-menu-custom .dropdown-item:hover {
    background-color: #f3f4f6;
    color: var(--text-gray);
}

/* Mobile Menu Styles */
#mobileMenu {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid var(--border-gray);
    animation: slideDown 0.3s ease-out;
}

#mobileMenu.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Avatar Styles */
.avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.avatar-sm {
    width: 1.75rem;
    height: 1.75rem;
}

.avatar-md {
    width: 2rem;
    height: 2rem;
}

.avatar-lg {
    width: 2.5rem;
    height: 2.5rem;
}

.avatar-initials {
    background-color: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Slick Carousel Customizations */
.screenshot-slide {
    padding: 0 15px;
}

.screenshot-slide .screenshot-item {
    margin: 0 auto;
}

.slick-prev, .slick-next {
    z-index: 1;
}

.slick-prev {
    left: -50px;
}

.slick-next {
    right: -50px;
}

.friends-friends-carousel .slick-next {
    right: -10px !important;
}

.friends-friends-carousel .slick-prev {
    left: -19px !important;
}

.slick-prev:before, .slick-next:before {
    color: var(--primary-color) !important;
    font-size: 30px !important;
}

.slick-dots {
    bottom: -50px !important;
}

.slick-dots li button:before {
    color: var(--before-color) !important;
    font-size: 12px !important;
}

.slick-dots li.slick-active button:before {
    color: var(--dot-color) !important;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-custom {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .slick-prev {
        left: -10px;
    }
    
    .slick-next {
        right: -10px;
    }
}

@media (max-width: 575.98px) {
    .footer-ul li {
        width: 100%;
    }
    .hero-section{
        padding-top: 1rem !important;
    }
    .comment-html img {
        width: 100% !important;
        height: auto !important;
    }
}

/* Utility Classes */
.text-primary-hover:hover {
    color: var(--primary-color) !important;
}

.bg-primary-hover:hover {
    background-color: var(--primary-hover) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.scroll-mt-nav {
    scroll-margin-top: 80px;
}

/* Smooth Transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Hover Background */
.hover-bg-light:hover {
    background-color: #f3f4f6 !important;
}

/* Text Colors */
.text-gray-700 {
    color: var(--text-gray) !important;
}

.text-gray-400 {
    color: #9ca3af !important;
}

.text-secondary {
    color: #6b7280 !important;
}

/* Border Colors */
.border-secondary {
    border-color: #4b5563 !important;
}

/* Small Text */
small, .small {
    font-size: 0.875rem;
}
.xsmall {
    font-size: 0.75rem;
}

/* Home Page Specific Styles */
.hero-section {
    background: linear-gradient(to bottom, #10b986, #059669);
    color: #ffffff;
    padding-top: 2rem;
    padding-bottom: 1.0rem;
}

.stats-card {
    background-color: #10b986;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.text-custom-dark {
    color: #1e2939;
}

.text-custom-gray {
    color: #4a5565;
}

.text-custom-gray-light {
    color: #6a7282;
}

.text-custom-gray-lighter {
    color: #99a1af;
}

.text-custom-orange {
    color: #fd8810;
}

.bg-custom-gray-light {
    background-color: #f9fafb;
}

.border-custom-primary {
    border-color: #10b986 !important;
}

.border-t-custom {
    border-top: 5px solid #10b986;
}

.border-l-custom {
    border-left: 5px solid #10b986;
}

.card-hover-effect {
    transition: all 0.3s ease;
}

.card-hover-effect:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #059669;
}

.card-hover-scale:hover {
    transform: scale(1.05);
}

.media-image {
    height: 11rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-image:hover {
    transform: scale(1.1);
}

.icon-circle {
    width: 4rem;
    height: 4rem;
    background-color: #10b986;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.icon-circle:hover {
    transform: scale(1.1);
}

.text-green-50 {
    color: #f0fdf4;
}

.text-green-600 {
    color: #16a34a;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-green-500 {
    background-color: #22c55e;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-red-600 {
    background-color: #dc2626;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 1rem;
    height: 1rem;
    background-color: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.min-h-60 {
    min-height: 60px;
}

.py-26 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.sticky-top-nav {
    position: sticky;
    top: 6rem;
}

.aspect-video {
    position: relative;
    width: 100%;
}

.pt-40 {
    padding-top: 1rem;
}

.bg-gradient-primary {
    background: linear-gradient(to bottom right, #10b986, #16a34a);
}

.bg-dark-custom {
    background-color: #101828;
}

.border-l-custom {
    border-left: 5px solid #10b986;
}

.cursor-pointer {
    cursor: pointer;
}

.bg-green-50-hover:hover {
    background-color: #f0fdf4 !important;
}

/* ============================================
   REUSABLE FORM STYLES (For all modules)
   ============================================ */

/* Form Input Fields - Standard styling */
.form-input-custom {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.form-input-custom:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 132, 0.2);
}

/* Form Labels */
.form-label-custom {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

/* Form Select */
.form-select-custom {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
}

.form-select-custom:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 132, 0.2);
}

/* Form Textarea */
.form-textarea-custom {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    resize: vertical;
}

.form-textarea-custom:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 132, 0.2);
}

/* Form File Input */
.form-file-custom {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.form-file-custom:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 132, 0.2);
}

/* Form Checkbox */
.form-checkbox-custom {
    width: 1rem;
    height: 1rem;
    color: var(--primary-color);
    border-color: #d1d5db;
    border-radius: 0.25rem;
}

.form-checkbox-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 132, 0.2);
}

/* ============================================
   REUSABLE CARD STYLES (For listings)
   ============================================ */

/* Listing Card - Standard card for articles, blogs, media, etc. */
.listing-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

.listing-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #059669;
}

.listing-card-image {
    width: 100%;
    height: 11rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-card-image {
    transform: scale(1.1);
}

.listing-card-body {
    padding: 1rem;
}

.listing-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.listing-card-title:hover {
    color: var(--primary-color);
}

.listing-card-description {
    color: var(--text-gray-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.listing-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-gray-light);
    margin-bottom: 0.5rem;
}

.listing-card-stats {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ============================================
   REUSABLE BUTTON STYLES
   ============================================ */

.btn-custom-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-custom-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.btn-custom-secondary {
    background-color: #e5e7eb;
    color: var(--text-gray);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-custom-secondary:hover {
    background-color: #d1d5db;
    color: var(--text-gray);
}

.btn-custom-blue {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-custom-blue:hover {
    background-color: #2563eb;
    color: #ffffff;
}

.btn-custom-red {
    background-color: #ef4444;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-custom-red:hover {
    background-color: #dc2626;
    color: #ffffff;
}

/* ============================================
   FILTER SIDEBAR STYLES
   ============================================ */

.filter-sidebar {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 1px solid var(--border-gray);
}

.filter-sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.filter-form-group {
    margin-bottom: 1rem;
}

/* ============================================
   MOBILE FILTER SIDEBAR
   ============================================ */

.mobile-filter-sidebar {
    position: fixed;
    inset: 0;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    margin-top: 0px !important;
}

.mobile-filter-sidebar.show {
    transform: translateX(0);
}

.mobile-filter-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.mobile-filter-content {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 20rem;
    background-color: #ffffff;
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding: 1.5rem;
}

/* ============================================
   CONTENT SECTION STYLES
   ============================================ */

.content-section {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid var(--primary-color);
    line-break: anywhere;
	word-wrap: break-word;
    word-break: normal;
    line-break: auto;
}
.res_text
{
	  overflow-wrap: anywhere;
    word-break: break-all;
}
.content-section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-primary-hover:hover {
    color: var(--primary-color) !important;
}

.bg-primary-hover:hover {
    background-color: var(--primary-hover) !important;
}

.transition-all-custom {
    transition: all 0.3s ease;
}

.min-h-40 {
    min-height: 40px;
}

.sticky-top-nav {
    position: sticky;
    top: 6rem;
}

.transition-opacity-custom {
    transition: opacity 0.3s ease;
}

.bg-gradient-primary {
    background: linear-gradient(to bottom right, #10b986, #059669);
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ============================================
   PAGINATION STYLING
   ============================================ */

.pagination {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-gray);
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 2.5rem;
    text-align: center;
}

.pagination .page-link:hover {
    color: var(--primary-color);
    background-color: #f9fafb;
    border-color: var(--primary-color);
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    color: #ffffff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 132, 0.1);
    border-color: var(--primary-color);
}

/* For Bootstrap's pagination class */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0.375rem;
}

/* Media hover effect */
.media-item-hover:hover .media-overlay {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.media-item-hover:hover .media-overlay span {
    opacity: 1 !important;
}

/* Aspect ratio square */
.aspect-square {
    position: relative;
    width: 100%;
}

.aspect-square::before {
    content: '';
    display: block;
    padding-bottom: 100%;
}

.aspect-square > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gradient primary */
.bg-gradient-primary {
    background: linear-gradient(to bottom right, var(--primary-color), #059669);
}

/* Dark background */
.bg-dark-custom {
    background-color: #1f2937;
}

/* Media image class */
.media-image {
    object-fit: cover;
}

/* Sticky top nav */
.sticky-top-nav {
    position: sticky;
    top: 6rem;
}

/* Bootstrap nav tabs custom styling */
.nav-tabs .nav-link {
    border: none;
    color: var(--primary-color);
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--text-gray);
}

.nav-tabs .nav-link.active {
    border: none;
    color: var(--primary-color);
    background-color: transparent;
    font-weight: 700;
}

/* Badge purple */
.bg-purple {
    background-color: #6f42c1 !important;
}

/* Hover border and text utilities */
.hover-border-custom-primary:hover {
    border-color: var(--primary-color) !important;
}

.hover-text-custom-primary:hover {
    color: var(--primary-color) !important;
}

.hover-bg-red-50:hover {
    background-color: #fef2f2 !important;
}

.bg-gradient-custom-primary {
    background: linear-gradient(to bottom right, var(--primary-color), #059669);
}
