/********** Template CSS **********/
:root {
    --primary: #1f2276;
    --secondary: #6c757d;
    --accent-color: #ff6b35;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --facebook-blue: #1877f2;
    --instagram-purple: #e4405f;
    --twitter-blue: #1da1f2;
    --whatsapp-green: #25d366;
    --font-family-base: 'Jost', sans-serif;
    --gradient-primary: linear-gradient(135deg, #1f2276 0%, #1f2276 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    --transition-standard: all 0.3s ease;
}

/* Enhanced Story Styles */
.story-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 15px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.story-wrapper {
    display: flex;
    gap: 15px;
    padding: 0 15px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.story-wrapper::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex: 0 0 auto;
    width: 80px;
    text-align: center;
    transition: transform 0.2s ease;
}

.story-item:hover {
    transform: translateY(-2px);
}

.story-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 3px;
    margin: 0 auto;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    position: relative;
}

.story-circle.new-story {
    background: var(--light);
    border: 2px dashed var(--secondary);
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
    background: white;
}

.story-username {
    font-size: 11px;
    font-weight: 500;
    margin-top: 6px;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-time {
    font-size: 10px;
    color: var(--secondary);
    margin-top: 2px;
}

/* Enhanced News Ticker */
.news-ticker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news {
    display: inline-block;
    white-space: nowrap;
    padding: 12px 0;
    animation: ticker 40s linear infinite;
    font-weight: 500;
}

.news span {
    margin: 0 30px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.card-header-custom {
    background: linear-gradient(135deg, var(--primary), #007bff);
    color: white;
    padding: 12px 20px;
    font-weight: 600;
    border: none;
}

/* Top Athletes Enhancement */
.top-athletes-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.athlete-card {
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease;
}

.athlete-card:hover {
    transform: translateY(-5px);
}

.athlete-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin: 0 auto 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.athlete-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 14px;
}

.athlete-stars {
    color: #ffc107;
    margin-bottom: 10px;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badges */
.badge-custom {
    background: linear-gradient(135deg, var(--primary), #007bff);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #007bff);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn.btn-primary {
    color: #FFFFFF;
}

.bg-primary {
    background-color: var(--primary) !important
}

.btn {
    color: var(--light-color);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Layout ***/
.sidebar {
    background: linear-gradient(180deg, var(--dark) 0%, #2d3748 100%) !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background: var(--light);
    transition: 0.5s;
    z-index: 999;
}

.sidebar .nav-link {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    margin: 2px 0;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    border-left-color: var(--primary);
    background: rgba(255,255,255,0.1);
    color: white !important;
}

/* Navbar Enhancement */
.navbar-light {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.content {
    margin-left: 250px;
    min-height: 100vh;
    background: #FFFFFF;
    transition: 0.5s;
}

@media (min-width: 992px) {
    .sidebar {
        margin-left: 0;
    }

    .sidebar.open {
        margin-left: -250px;
    }

    .content {
        width: calc(100% - 250px);
    }

    .content.open {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: 0;
    }

    .sidebar.open {
        margin-left: -250px;
    }

    .content {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .content {
        margin-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .story-item {
        width: 70px;
    }
    
    .story-circle {
        width: 60px;
        height: 60px;
    }
}


/*** Navbar ***/
.sidebar .navbar .navbar-nav .nav-link {
    padding: 7px 20px;
    color: var(--light);
    font-weight: 500;
    border-left: 3px solid var(--light);
    border-radius: 0 30px 30px 0;
    outline: none;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: #FFFFFF;
    border-color: var(--primary);
}

.sidebar .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #333333;
    border-radius: 40px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
    background: var(--light);
}

.sidebar .navbar .dropdown-toggle::after {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
    padding-left: 25px;
    border-radius: 0 30px 30px 0;
}

.content .navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 12px 0;
    color: var(--dark);
    outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 40px;
}

.content .navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.content .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 575.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }
}


/*** Date Picker ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.progress .progress-bar {
    width: 0px;
    transition: 2s;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 5px solid var(--primary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--dark);
    border-color: var(--primary);
}

.bg-success {
    background-color: var(--success-color) !important;
    border: none !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
    border: none !important;
}

.bg-info {
    background-color: var(--info-color) !important;
    border: none !important;
}

/* Post Creation Enhancement */
.post-creator {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-creator-header,
.post-creator-header h6,
.post-creator-header i {
    color: var(--light-color);
}

.post-creator-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1rem;
}

/* Dashboard Premium Button */
.btn-dashboard-premium {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    width: auto !important;
    min-width: 140px;
}

/* Username Color */
.profile-username {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Username Handle Badge */
.username-handle {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 500;
    display: inline-block;
}

.char-counter {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.char-counter.warning {
    color: var(--warning-color);
}

.char-counter.danger {
    color: var(--danger-color);
}

/* Media Upload Buttons */
.media-btn {
    background: linear-gradient(135deg, var(--secondary-color), #5a6268);
    border: none;
    border-radius: 20px;
    color: white;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.media-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Accordion Enhancement */
.accordion-enhanced .accordion-item {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.accordion-enhanced .accordion-button {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.accordion-enhanced .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-name {
        font-size: 1.25rem;
    }

    .btn-enhanced {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
        margin: 0.25rem 0;
        width: 100%;
    }

    .sticky-custom {
        position: relative;
        top: auto;
        max-height: none;
    }

    .media-btn {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* Loading States */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    margin: 1rem 0;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Business specific styles */
.boutique-btn {
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.boutique-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
}

.verified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 10;
}

.business-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.stat-card-business {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.stat-card-business:hover {
    transform: translateY(-2px);
}

.stat-card-business i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card-business .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    display: block;
}

.stat-card-business .label {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.bi-send-fill {
    color: var(--light-color) !important;
}

/* Product Selector Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.product-card-selection {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card-selection:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.product-card-selection.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(31, 34, 118, 0.05), rgba(255, 107, 53, 0.05));
}

.product-card-selection.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.product-card-selection.selected::after {
    content: '✓';
    font-weight: bold;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-selection:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-selection.selected .product-overlay {
    opacity: 1;
}

.check-icon {
    color: white;
    font-size: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    text-align: center;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    font-size: 12px;
    color: var(--secondary-color);
    margin: 0;
}

.no-products,
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--secondary-color);
}

.no-products i,
.error-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .product-card-selection {
        padding: 10px;
    }

    .product-image-container {
        height: 100px;
    }
}

/* Tagged Products Display Styles */
.tagged-products-section {
    background: rgba(31, 34, 118, 0.05);
    border: 1px solid rgba(31, 34, 118, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.tagged-products-section small {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.tagged-product-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tagged-product-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.tagged-product-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
}

.tagged-product-item .product-details {
    flex: 1;
}

.tagged-product-item .product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 2px;
    display: block;
}

.tagged-product-item .product-price {
    font-size: 12px;
    color: var(--secondary-color);
}

.tagged-product-item .btn-consulter {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tagged-product-item .btn-consulter:hover {
    background: #0056b3;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* Responsive for tagged products */
@media (max-width: 768px) {
    .tagged-products-section {
        padding: 10px;
    }

    .tagged-product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tagged-product-item .product-details {
        width: 100%;
    }

    .tagged-product-item .btn-consulter {
        align-self: flex-end;
    }
}

/* Post Card Enhancements */
.post-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #fafbfc, #f8f9fa);
}

.post-header .post-author {
    flex: 1;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-author-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.post-time {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin: 0;
}

.post-content {
    padding: 1.25rem;
}

.post-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.post-media {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.post-media img,
.post-media video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-media:hover img {
    transform: scale(1.02);
}

.post-actions {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafbfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.post-buttons {
    display: flex;
    gap: 0.5rem;
}

.post-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.post-btn.liked {
    color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.1);
}

.post-btn.liked:hover {
    background: rgba(231, 76, 60, 0.15);
}

.post-btn.liked i {
    color: #e74c3c !important;
}

.post-btn i {
    font-size: 1rem;
}

.post-dropdown {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.post-menu-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: #6c757d; */
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    color: var(--secondary-color);
}

.post-menu-btn:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
    color: #495057;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* Comments Section */
.comments-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f8f9fa;
}

.comment-item {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.comment-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark-color);
    margin: 0;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.comment-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--dark-color);
    margin: 0;
}

/* Comment Form */
.comment-form {
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.comment-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.comment-input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    resize: none;
    transition: all 0.3s ease;
}

.comment-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

.comment-submit {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.comment-submit:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Post Type Badges */
.post-type-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.post-type-badge.video {
    background: rgba(220, 53, 69, 0.9);
}

.post-type-badge.image {
    background: rgba(40, 167, 69, 0.9);
}

/* Loading States for Posts */
.post-skeleton {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-text {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-media {
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .post-header,
    .post-content,
    .post-actions {
        padding: 1rem;
    }

    .post-buttons {
        flex-wrap: wrap;
    }

    .post-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Post dropdown styles */
.post-dropdown {
    position: relative;
}

.post-menu-btn {
    background: none;
    border: none;
    color: #6c757d;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-menu-btn:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.dropdown-menu {
    min-width: 180px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
}

.dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 8px;
    width: calc(100% - 16px);
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
    transform: translateX(2px);
}

.dropdown-item.text-primary {
    color: var(--primary-color) !important;
}

.dropdown-item.text-primary:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #0056b3 !important;
}

.dropdown-item.text-danger {
    color: #dc3545 !important;
}

.dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #bd2130 !important;
}

.dropdown-divider {
    margin: 6px 0;
    opacity: 0.3;
}

.dropdown-item i {
    width: 20px;
    margin-right: 10px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .post-dropdown {
        position: relative;
        top: auto;
        right: auto;
    }

    .post-menu-btn {
        width: 32px;
        height: 32px;
    }
}

/* Modify form styles */
.modify-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.modify-form textarea.form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    resize: vertical;
}

.modify-form .btn {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
}

/* Toast notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 9999;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-notification.success {
    background: #28a745;
    color: white;
}

.toast-notification.error {
    background: #dc3545;
    color: white;
}

.toast-notification i {
    margin-right: 8px;
}

.bi-send-fill {
    color: var(--light-color) !important;
}

/* Tagged Products Widget Styles */
.tagged-products-widget {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(31, 34, 118, 0.03), rgba(255, 107, 53, 0.03));
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.single-tagged-product {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.single-tagged-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-tagged-product .border {
    border: 1px solid rgba(31, 34, 118, 0.2) !important;
    transition: border-color 0.3s ease;
}

.single-tagged-product:hover .border {
    border-color: var(--primary-color) !important;
}

.multiple-tagged-products .tagged-products-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.tagged-product-item {
    transition: all 0.3s ease;
}

.tagged-product-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tagged-product-item .border {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.tagged-product-item:hover .border {
    border-color: var(--primary-color) !important;
}

/* Scrollbar styling for products list */
.tagged-products-list::-webkit-scrollbar {
    width: 6px;
}

.tagged-products-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tagged-products-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.tagged-products-list::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.post-loading {
    padding: 20px;
    text-align: center;
}

.deleting {
    background: linear-gradient(45deg, rgba(255, 0, 0, .05), rgba(0, 0, 255, .05));
    animation: deletingGradient 2s ease infinite;
}

@keyframes deletingGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake {
    animation: shake 0.4s ease;
}

.chart-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #e9ecef 25%,
        #f8f9fa 37%,
        #e9ecef 63%
    );
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: 8px;
    z-index: 1;
}

@keyframes skeleton-loading {
    0% { background-position: 100% 0 }
    100% { background-position: -100% 0 }
}