/* StateBusinesses - Main Stylesheet */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 8px;
    --body-bg: #f0f2f5;
    --card-bg: #ffffff;
    --card-header-bg: #ffffff;
    --border-color: #e9ecef;
    --text-color: #212529;
    --muted-color: #6c757d;
    --surface-hover: #f8f9fa;
}

/* General Styles */
html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    background-color: var(--card-bg);
    color: var(--text-color);
    overflow: visible;
    margin-bottom: 1rem;
}

.card-header {
    background-color: var(--card-header-bg);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

/* Post Card */
.post-card {
    transition: box-shadow 0.2s;
}

.post-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.post-content {
    font-size: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.post-images img {
    cursor: pointer;
    transition: opacity 0.2s;
}

.post-images img:hover {
    opacity: 0.9;
}

/* Reaction Button */
.reaction-btn:hover {
    background-color: #e9ecef;
}

.reaction-btn i {
    transition: transform 0.2s;
}

.reaction-btn:hover i {
    transform: scale(1.2);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
}

/* Avatar */
.rounded-circle {
    border: 2px solid #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

/* Notification Badge */
.notification-badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    z-index: 1300;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--surface-hover);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.theme-toggle i {
    pointer-events: none;
}

/* Sticky Sidebar */
.sticky-top {
    z-index: 1000;
}

.navbar.sticky-top {
    z-index: 1400;
}

.chat-panel.sticky-top {
    z-index: 950;
}

/* Search Bar */
.navbar .input-group .form-control {
    background-color: rgba(255,255,255,.9);
}

.navbar .input-group .form-control:focus {
    background-color: #fff;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #111 !important;
    color: #f8f9fa !important;
}

footer h5,
footer p,
footer li,
footer .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a:hover {
    color: #ffffff !important;
}

/* Verified Badge */
.fa-check-circle.text-primary {
    margin-left: 4px;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Empty State */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

/* Comments Section */
.comments-section {
    background-color: var(--card-header-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.comment-item {
    background-color: var(--card-bg);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.comment-form .input-group .form-control {
    border-right: none;
}

.comment-form .input-group .btn {
    border-left: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.comment-form .input-group .form-control:focus {
    border-right: none;
    box-shadow: none;
}

.comment-form .input-group .form-control:focus + .btn {
    border-color: var(--primary-color);
}

/* Modal */
.modal-content {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
    
    .card {
        border-radius: 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Utilities */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate-2 {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mention Autocomplete */
.mention-suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.mention-suggestion-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.mention-suggestion-item:hover {
    background-color: #f8f9fa;
}

.mention-suggestion-item img {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
}

.reaction-summary {
    min-height: 24px;
}

.reaction-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background-color: rgba(13, 110, 253, 0.08);
    font-weight: 600;
    font-size: 0.85rem;
}

.reaction-summary-item i {
    font-size: 0.85rem;
}

.reaction-summary-total {
    font-size: 0.9rem;
}

.reaction-summary-empty {
    font-size: 0.85rem;
}

.reaction-label {
    margin-left: 0.35rem;
    font-weight: 600;
}

.reaction-picker {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    display: inline-flex;
    gap: 0.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    z-index: 1100;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.reaction-picker::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    background-color: inherit;
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.reaction-picker-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--muted-color);
    transition: transform 0.15s ease, color 0.15s ease;
}

.reaction-picker-item i {
    font-size: 1.2rem;
}

.reaction-picker-item:hover {
    transform: translateY(-2px) scale(1.05);
    color: var(--primary-color);
}

.reaction-picker-item:hover i {
    color: var(--primary-color);
}

.reaction-color-like {
    color: #0d6efd;
}

.reaction-color-love {
    color: #d63384;
}

.reaction-color-celebrate {
    color: #fd7e14;
}

.reaction-color-insightful {
    color: #20c997;
}

.reaction-color-support {
    color: #6610f2;
}

.reaction-summary-item--love {
    background-color: rgba(214, 51, 132, 0.12);
}

.reaction-summary-item--celebrate {
    background-color: rgba(253, 126, 20, 0.12);
}

.reaction-summary-item--insightful {
    background-color: rgba(32, 201, 151, 0.12);
}

.reaction-summary-item--support {
    background-color: rgba(102, 16, 242, 0.12);
}

.reaction-btn.active {
    background-color: rgba(13, 110, 253, 0.08);
    color: var(--primary-color);
    font-weight: 600;
}

.comment-toggle-btn.active,
.share-btn.active {
    background-color: var(--surface-hover);
}

.connection-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.85), rgba(102, 16, 242, 0.85));
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 6px rgba(13, 110, 253, 0.25);
    position: relative;
}

.connection-card {
    padding: 0.75rem;
    border: 1px solid rgba(13, 110, 253, 0.08);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.connection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.12);
}

.suggested-connections-card .btn-outline-primary {
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
}

.for-you-insights li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.for-you-insights li:last-child {
    border-bottom: none;
}

.for-you-insights .badge {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.for-you-insights small {
    display: block;
}

.insight-icon {
    font-size: 1rem;
}

.insight-icon i {
    font-size: 1rem;
}

.post-comment-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-comment-count .comment-count-number {
    font-weight: 600;
}

.post-comment-count .comment-count-label {
    text-transform: lowercase;
}

.comments-list {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.35);
    border-radius: 3px;
}

.dark-mode-surface {
    transition: background-color 0.2s ease;
}

body.dark-mode .dark-mode-surface {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Chat Panel */
.chat-panel {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.chat-panel .card-header {
    background-color: var(--card-header-bg);
    border-bottom: 1px solid var(--border-color);
}

.chat-panel-body {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 150px);
    padding: 0;
}

.chat-connections {
    padding: 1rem 1rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    max-height: 220px;
    overflow-y: auto;
}

.chat-connections-header {
    margin-bottom: 0.75rem;
}

.chat-connections ul {
    margin: 0;
    padding: 0;
}

.chat-connections li + li {
    margin-top: 0.35rem;
}

.chat-contact {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid rgba(13, 110, 253, 0.08);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
}

.chat-contact:hover {
    border-color: rgba(13, 110, 253, 0.4);
    transform: translateY(-1px);
}

.chat-contact.active {
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.15);
}

.chat-contact-avatar {
    position: relative;
    width: 38px;
    height: 38px;
}

.chat-contact-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(13, 110, 253, 0.15);
}

.chat-status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22c55e;
    border: 2px solid var(--card-bg);
}

.chat-contact-body {
    flex: 1;
    min-width: 0;
}

.chat-contact-name {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.chat-contact-status {
    display: block;
    font-size: 0.75rem;
    color: var(--muted-color);
}

.chat-placeholder {
    padding: 2.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-placeholder-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

.chat-conversation {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
}

.chat-conversation-header {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    background-color: var(--card-header-bg);
}

.chat-messages {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    background-color: var(--card-header-bg);
    overflow-y: auto;
    max-height: 320px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.25);
    border-radius: 3px;
}

.chat-message {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
}

.chat-message:last-child {
    margin-bottom: 0;
}

.chat-message--own {
    justify-content: flex-end;
}

.chat-message-bubble {
    max-width: 78%;
    padding: 0.6rem 0.85rem;
    border-radius: var(--border-radius);
    background-color: rgba(13, 110, 253, 0.08);
    color: var(--text-color);
    position: relative;
    font-size: 0.925rem;
    line-height: 1.4;
}

.chat-message--own .chat-message-bubble {
    background-color: var(--primary-color);
    color: #fff;
}

.chat-message-bubble p {
    margin: 0 0 0.35rem;
}

.chat-message-time {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.55);
}

.chat-message--own .chat-message-time {
    color: rgba(255, 255, 255, 0.75);
}

.chat-composer {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.chat-composer .form-control {
    border: 1px solid var(--border-color);
    border-right: none;
    padding: 0.65rem 0.75rem;
}

.chat-composer .btn {
    border-radius: 0;
    padding: 0.65rem 0.9rem;
}

body.dark-mode .chat-panel .card-header,
body.dark-mode .chat-conversation-header,
body.dark-mode .chat-messages {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .chat-contact {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .chat-contact.active {
    border-color: rgba(13, 110, 253, 0.6);
}

body.dark-mode .chat-message-bubble {
    background-color: rgba(13, 110, 253, 0.28);
}

body.dark-mode .chat-message--own .chat-message-bubble {
    background-color: rgba(13, 110, 253, 0.85);
}

body.dark-mode {
    --body-bg: #121212;
    --card-bg: #1e1e1e;
    --card-header-bg: #242424;
    --border-color: rgba(255,255,255,0.08);
    --text-color: #e9ecef;
    --muted-color: #adb5bd;
    --surface-hover: rgba(255,255,255,0.08);
}

body.dark-mode .navbar-light {
    background-color: #1e1e1e !important;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .navbar-light .navbar-brand {
    color: var(--text-color) !important;
}

body.dark-mode .navbar-light .btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

body.dark-mode .navbar-light .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
}

body.dark-mode .btn-outline-light.theme-toggle {
    border-color: rgba(255,255,255,0.6);
    color: rgba(255,255,255,0.9);
}

body.dark-mode .btn-outline-light.theme-toggle:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

body.dark-mode .btn-outline-secondary.theme-toggle {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.85);
}

body.dark-mode .btn-outline-secondary.theme-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

body.dark-mode .reaction-summary-item {
    background-color: rgba(13, 110, 253, 0.18);
}

body.dark-mode .reaction-summary-item--love {
    background-color: rgba(214, 51, 132, 0.25);
}

body.dark-mode .reaction-summary-item--celebrate {
    background-color: rgba(253, 126, 20, 0.25);
}

body.dark-mode .reaction-summary-item--insightful {
    background-color: rgba(32, 201, 151, 0.25);
}

body.dark-mode .reaction-summary-item--support {
    background-color: rgba(102, 16, 242, 0.25);
}

body.dark-mode .connection-card {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .reaction-picker {
    background-color: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.55);
}

body.dark-mode .reaction-picker::after {
    background-color: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .reaction-picker-item {
    color: var(--muted-color);
}

body.dark-mode .for-you-insights li {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .connection-avatar {
    box-shadow: 0 3px 6px rgba(13, 110, 253, 0.35);
}

body.dark-mode .bg-light {
    background-color: rgba(255,255,255,0.06) !important;
}

body.dark-mode .text-muted {
    color: var(--muted-color) !important;
}

body.dark-mode .mention-suggestions {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

body.dark-mode .mention-suggestion-item:hover {
    background-color: var(--surface-hover);
}

/* Marketplace */
.marketplace-container {
    max-width: 1240px;
}

.marketplace-hero {
    background: linear-gradient(135deg, rgba(13,110,253,0.08), rgba(13,110,253,0.02));
    border: 1px solid rgba(13, 110, 253, 0.15);
}

.marketplace-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.marketplace-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.15);
}

.marketplace-card-image {
    position: relative;
    overflow: hidden;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    height: 200px;
}

.marketplace-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketplace-type-badge,
.marketplace-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.marketplace-featured {
    left: auto;
    right: 12px;
}

.marketplace-price {
    font-weight: 700;
    color: var(--primary-color);
}

.marketplace-price-main {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.marketplace-stat {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
}

.marketplace-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f8f9fa;
}

.marketplace-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketplace-related {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(13,110,253,0.08);
}

.marketplace-related:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13,110,253,0.12);
}

.marketplace-related-thumb {
    height: 150px;
    overflow: hidden;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.marketplace-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketplace-hero-image {
    height: 360px;
    object-fit: cover;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.marketplace-attribute {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1rem;
    height: 100%;
}

.marketplace-attribute .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.marketplace-description p,
.marketplace-description ul,
.marketplace-description ol {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.marketplace-description ul,
.marketplace-description ol {
    padding-left: 1.1rem;
}

.marketplace-description li {
    margin-bottom: 0.25rem;
}

.marketplace-gallery-tile img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.marketplace-delivery-options {
    background-color: #f8f9fa;
}

.marketplace-orders table td,
.marketplace-orders table th {
    vertical-align: middle;
}

.marketplace-orders .badge {
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

.marketplace-detail .card,
.marketplace-orders .card,
.marketplace-container .card {
    border-radius: var(--border-radius);
}

.bg-indigo {
    background-color: #4c3fef !important;
    color: #fff !important;
}

@media (max-width: 992px) {
    .marketplace-hero-image {
        height: 260px;
    }

    .marketplace-card-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .marketplace-card-image {
        height: 160px;
    }

    .marketplace-thumb {
        width: 56px;
        height: 56px;
    }
}

/* Invoice Styles */
.invoice-table th {
    background-color: #f8f9fa;
}

.invoice-total {
    font-size: 1.25rem;
    font-weight: bold;
}

/* Product Card */
.product-card {
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,.15);
}

.product-image {
    height: 200px;
    object-fit: cover;
}

/* Portal Card */
.portal-card {
    border-left: 4px solid var(--primary-color);
}

/* Admin Styles */
.admin-sidebar {
    background-color: #2c3e50;
    min-height: calc(100vh - 56px);
    color: white;
}

.admin-sidebar a {
    color: rgba(255,255,255,.8);
    padding: 0.75rem 1rem;
    display: block;
    transition: background-color 0.2s;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background-color: rgba(255,255,255,.1);
    color: white;
    text-decoration: none;
}

.stats-card {
    border-left: 4px solid var(--primary-color);
}

.stats-card.success {
    border-left-color: var(--success-color);
}

.stats-card.warning {
    border-left-color: var(--warning-color);
}

.stats-card.danger {
    border-left-color: var(--danger-color);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
