/* Enhanced Dark Theme Styles for Secure Forum - Reduced Stark Black */
:root {
    /* Light theme (default) variables */
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --secondary-color: #607D8B;
    --secondary-dark: #455A64;
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --warning-color: #FFC107;
    --info-color: #00BCD4;
    --dark-color: #212121;
    --light-color: #F5F5F5;
    --text-color: #333333;
    --text-light: #FFFFFF;
    --bg-color: #F5F5F5;
    --card-bg: #FFFFFF;
    --card-secondary-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-accent: rgba(0, 0, 0, 0.15);
    --header-bg: rgba(33, 33, 33, 0.95);
    --header-text: #FFFFFF;
    --footer-bg: rgba(33, 33, 33, 0.95);
    --footer-text: #FFFFFF;
    --accent-glow: rgba(33, 150, 243, 0.15);
    --thread-hover: rgba(33, 150, 243, 0.05);
    --inactive-color: #757575;
    --quote-color: #f5f5f5;
    --code-bg: #f5f5f5;
    --code-color: #333333;
    --spoiler-bg: #f0f0f0;
    --button-hover: rgba(0, 0, 0, 0.05);
}
/* Add these CSS styles to your forum's stylesheet */

/* Ownership warning styles */
.paypal-transaction.ownership-error .paypal-header.warning {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.paypal-transaction.ownership-error .product-info {
    background-color: #fff8f8;
}

/* Owner label */
.product-owner {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 6px;
    background-color: #e9f5ff;
    border-radius: 4px;
    border: 1px solid #cce5ff;
    color: #004085;
    font-size: 0.85em;
}

/* Highlight owner in product list */
.product-card:has([data-owner]) {
    position: relative;
}

.product-card:has([data-owner]):before {
    content: "Your Product";
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: bold;
}
/* Dark Theme Variables - Enhanced with Softer Colors */
[data-theme="dark"] {
    /* Base colors */
    --primary-color: #7986CB;         /* Indigo 300 */
    --primary-dark: #5C6BC0;          /* Indigo 400 */
    --secondary-color: #9575CD;       /* Deep Purple 300 */
    --secondary-dark: #7E57C2;        /* Deep Purple 400 */
    --success-color: #66BB6A;         /* Green 400 */
    --danger-color: #EF5350;          /* Red 400 */
    --warning-color: #FFCA28;         /* Amber 400 */
    --info-color: #4FC3F7;            /* Light Blue 300 */
    
    /* Surface colors - SOFTER BLACKS */
    --dark-color: #1E2130;            /* Deep blue-grey instead of black */
    --light-color: #252836;           /* Lighter blue-grey */
    --text-color: #DADFE9;            /* Light blue-tinted text */
    --text-light: #F8F9FA;            /* Off-white text */
    --bg-color: #1A1C28;              /* Deep blue-grey background */
    --card-bg: #252836;               /* Card background with blue tint */
    --card-secondary-bg: #2E3347;     /* Secondary card with blue tint */
    
    /* Accent colors */
    --border-color: #363A4F;          /* Border color with blue tint */
    --shadow-color: rgba(103, 58, 183, 0.25);    /* Primary shadow - purple */
    --shadow-accent: rgba(123, 31, 162, 0.35);   /* Secondary shadow - deeper purple */
    --header-bg: rgba(26, 28, 40, 0.97);         /* Header background - blue-grey */
    --header-text: #DADFE9;                      /* Header text */
    --footer-bg: rgba(26, 28, 40, 0.97);         /* Footer background - blue-grey */
    --footer-text: #DADFE9;                      /* Footer text */
    --accent-glow: rgba(103, 58, 183, 0.2);      /* Purple glow for accents */
    --thread-hover: rgba(103, 58, 183, 0.1);     /* Hover effect for threads */
    --inactive-color: #8F94A8;                   /* Inactive blue-grey text */
    
    /* Grey swatches for various elements - WITH BLUE TINT */
    --grey-100: #444B67;  /* Light blue-grey */
    --grey-200: #3A4058;  /* Medium blue-grey */
    --grey-300: #2E3347;  /* Blue-grey */
    --grey-400: #282C3E;  /* Dark blue-grey */
    --grey-500: #252836;  /* Darker blue-grey */
    --grey-600: #1E2130;  /* Deepest blue-grey */
    
    /* BBCode styling */
    --quote-color: #2C3144;                      /* Dark blue-grey for quotes */
    --code-bg: #323649;                          /* Blue-grey for code blocks */
    --code-color: #DADFE9;                       /* Light blue-grey text for code blocks */
    --spoiler-bg: #292D3E;                       /* Blue-grey for spoilers */
    --button-hover: rgba(255, 255, 255, 0.1);    /* Light hover effect */
}

/* Apply theme variables to elements */
[data-theme="dark"] body {
	
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] header {
    background-color: var(--header-bg);
    color: var(--header-text);
    box-shadow: 0 2px 10px var(--shadow-color);
    border-bottom: 1px solid var(--grey-400);
}

[data-theme="dark"] footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    box-shadow: 0 -2px 10px var(--shadow-color);
    border-top: 1px solid var(--grey-400);
}

/* Card backgrounds with enhanced shadows and sheen effects */
[data-theme="dark"] .auth-box,
[data-theme="dark"] .forum-container,
[data-theme="dark"] .profile-container,
[data-theme="dark"] .seo-container {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color), 0 0 0 1px var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
/* PayPal Transaction */
.paypal-transaction {
    margin: 15px 0;
    border: 1px solid #0070ba;
    border-radius: 8px;
    overflow: hidden;
}

.paypal-header {
    background-color: #0070ba;
    color: white;
    padding: 8px 15px;
    font-weight: bold;
}

.paypal-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-name {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.product-price {
    font-weight: bold;
    font-size: 1.4em;
    color: #0070ba;
}

.product-description {
    color: #666;
    line-height: 1.5;
}

.paypal-actions {
    text-align: right;
}

.paypal-buy-button {
    background-color: #0070ba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.paypal-buy-button:hover {
    background-color: #005ea6;
}

/* Transaction Receipt */
.transaction-receipt {
    background-color: #f8f8f8;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

.receipt-header {
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.receipt-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.download-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-button:hover {
    background-color: #388E3C;
}
/* Digital Products section */
.digital-products-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 992px) {
  .digital-products-container {
    grid-template-columns: 3fr 2fr;
  }
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  
  overflow-y: auto;
  padding-right: 10px;
}

.product-list::-webkit-scrollbar {
  width: 6px;
}

.product-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.product-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.product-list::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.product-card-header {
  padding: 15px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  max-width: 75%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-card-body {
  padding: 15px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
  font-size: 13px;
}

.product-price {
  font-weight: bold;
  color: #2196F3;
}

.product-file, .product-date {
  color: #777;
}

.product-card-footer {
  background-color: #f8f8f8;
  border-top: 1px solid #eee;
  padding: 15px;
}

.product-code p {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 13px;
  color: #666;
}

.product-markup {
  display: block;
  background-color: #f1f1f1;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
  font-family: monospace;
  font-size: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-markup-btn {
  font-size: 12px;
}

/* Upload product form */
.upload-product-form {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  position: sticky;
  top: 20px;
}

.upload-product-form h4 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-product-form h4:before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background-color: #2196F3;
  border-radius: 2px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #666;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: #2196F3;
  outline: none;
}

.form-control-file {
  width: 100%;
  font-size: 14px;
  color: #333;
}

.file-upload-progress {
  margin-top: 10px;
}

.progress {
  height: 6px;
  background-color: #f5f5f5;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #2196F3;
  border-radius: 3px;
}

#upload-product-btn {
  width: 100%;
  margin-top: 5px;
}

/* Empty states */
.empty-message {
  text-align: center;
  padding: 30px;
  color: #999;
  font-style: italic;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  color: #666;
}

.loading-spinner i {
  margin-right: 10px;
  color: #2196F3;
}

/* Error states */
.error-message {
  background-color: #FFEBEE;
  border-left: 4px solid #F44336;
  padding: 15px;
  margin: 15px 0;
  color: #D32F2F;
}

/* Delete profile button */
#delete-profile-btn {
  margin-top: 20px;
  background-color: #f8f8f8;
  color: #F44336;
  border: 1px solid #F44336;
}

#delete-profile-btn:hover {
  background-color: #F44336;
  color: white;
}

/* Dark theme support */
[data-theme="dark"] .profile-container {
  background-color: #262626;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .profile-header {
  border-bottom-color: #333;
}

[data-theme="dark"] #profile-username {
  color: #eee;
}

[data-theme="dark"] .profile-section {
  background-color: #2d2d2d;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .profile-section h3 {
  color: #eee;
}

[data-theme="dark"] .detail-label {
  color: #aaa;
}

[data-theme="dark"] .detail-value {
  color: #ddd;
}

[data-theme="dark"] .activity-stat {
  background-color: #333;
}

[data-theme="dark"] .activity-label {
  color: #aaa;
}

[data-theme="dark"] .character-counter {
  color: #aaa;
}

[data-theme="dark"] .product-card {
  background-color: #333;
  border-color: #444;
}

[data-theme="dark"] .product-card-header {
  background-color: #2a2a2a;
  border-bottom-color: #444;
}

[data-theme="dark"] .product-card-header h4 {
  color: #eee;
}

[data-theme="dark"] .product-file, 
[data-theme="dark"] .product-date {
  color: #bbb;
}

[data-theme="dark"] .product-card-footer {
  background-color: #2a2a2a;
  border-top-color: #444;
}

[data-theme="dark"] .product-code p {
  color: #bbb;
}

[data-theme="dark"] .product-markup {
  background-color: #222;
  color: #eee;
}

[data-theme="dark"] .upload-product-form {
  background-color: #333;
  border-color: #444;
}

[data-theme="dark"] .form-control {
  background-color: #222;
  border-color: #444;
  color: #eee;
}

[data-theme="dark"] .form-control:focus {
  border-color: #2196F3;
}

[data-theme="dark"] .progress {
  background-color: #222;
}

[data-theme="dark"] .empty-message {
  color: #777;
}

[data-theme="dark"] .loading-spinner {
  color: #bbb;
}

[data-theme="dark"] #delete-profile-btn {
  background-color: #222;
}
Key Improvements
.product-markup {
    display: block;
    background-color: #eee;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    white-space: pre;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.9em;
}

.copy-markup-btn {
    font-size: 0.85em;
}

.upload-product-form {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.file-upload-progress {
    margin-top: 10px;
}

.progress {
    height: 5px;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #2196F3;
    transition: width 0.2s ease;
}

/* Dark theme support */
[data-theme="dark"] .product-card {
    background-color: #2d2d2d;
    border-color: #444;
}

[data-theme="dark"] .product-card-header {
    background-color: #333;
    border-color: #444;
}

[data-theme="dark"] .product-card-header h4 {
    color: #eee;
}

[data-theme="dark"] .product-card-body p {
    color: #bbb;
}

[data-theme="dark"] .product-file, 
[data-theme="dark"] .product-date {
    color: #aaa;
}

[data-theme="dark"] .product-card-footer {
    background-color: #333;
    border-color: #444;
}

[data-theme="dark"] .product-code p {
    color: #bbb;
}

[data-theme="dark"] .product-markup {
    background-color: #222;
    color: #eee;
}

[data-theme="dark"] .upload-product-form {
    background-color: #333;
    border-color: #444;
}
/* Dark theme support */
[data-theme="dark"] .paypal-transaction {
    border-color: #0070ba;
}

[data-theme="dark"] .product-name {
    color: #eee;
}

[data-theme="dark"] .product-description {
    color: #bbb;
}

[data-theme="dark"] .transaction-receipt {
    background-color: rgba(76, 175, 80, 0.1);
}
/* Sheen effect for dark mode */
[data-theme="dark"] .forum-container::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
	 
    background: linear-gradient(
        to bottom right,
        transparent,
        transparent,
        transparent,
        rgba(127, 90, 240, 0.05),
        transparent,
        transparent,
        transparent
    );
    transform: rotate(30deg);
    animation: sheen-dark 8s infinite linear;
    z-index: -1;
}

@keyframes sheen-dark {
    0% {
        transform: rotate(30deg) translate(-30%, -30%);
    }
    25% {
        transform: rotate(30deg) translate(-25%, -25%);
    }
    50% {
        transform: rotate(30deg) translate(-20%, -20%);
    }
    75% {
        transform: rotate(30deg) translate(-25%, -25%);
    }
    100% {
        transform: rotate(30deg) translate(-30%, -30%);
    }
}

/* Additional layer for more complex sheen */
[data-theme="dark"] .forum-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        117deg,
        transparent 20%,
        rgba(103, 58, 183, 0.01) 40%,
        rgba(103, 58, 183, 0.05) 60%,
        transparent 80%
    );
    opacity: 0;
    z-index: -1;
    animation: pulse-sheen 10s infinite;
}

@keyframes pulse-sheen {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}
.freechat-online-users {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    padding: 5px 10px;
    font-size: 0.8rem;
    max-height: 60px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.freechat-online-users.collapsed {
    max-height: 25px;
    overflow: hidden;
}

.freechat-online-users-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color, #2196F3);
}

.freechat-online-users-header i {
    transition: transform 0.3s ease;
}

.freechat-online-users.collapsed .freechat-online-users-header i {
    transform: rotate(-90deg);
}

.freechat-online-users-list {
    margin-top: 5px;
    padding-left: 5px;
}

.online-user {
    display: inline-block;
    margin-right: 10px;
    white-space: nowrap;
}

.online-user i {
    color: var(--success-color, #4CAF50);
    margin-right: 3px;
}

.online-user.admin i {
    color: var(--warning-color, #FFC107);
}

/* Dark theme support */
[data-theme="dark"] .freechat-online-users {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: var(--border-color, #363A4F);
}
/* Modal with special styling */
[data-theme="dark"] .modal-container {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 10px 40px var(--shadow-accent), 0 0 0 1px var(--grey-300);
    border-radius: 8px;
    overflow: hidden;
}
[data-theme="dark"] .forum-header {
	  background-image: url('https://secupgrade.com/dashboard/uploads/banner-2.png');
  background-size: cover;       /* Make it cover the whole area */
  background-repeat: no-repeat; /* Don't tile the image */
  background-position: center;  /* Center the image */
  	padding: 20;

}
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    background-color: var(--grey-400);
    border-color: var(--grey-300);
}
[data-theme="dark"] .category-card{
	border-left: 4px solid #6876C4;
}
/* Secondary backgrounds with elegant styling */
[data-theme="dark"] .category-card,
[data-theme="dark"] .reply-card,
[data-theme="dark"] .reply-content,
[data-theme="dark"] .post-content-display{
    background-color: var(--card-secondary-bg);
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

}
[data-theme="dark"] .post-card,
[data-theme="dark"] .post-content-text,
[data-theme="dark"] .profile-header,
[data-theme="dark"] .thread-item {
    background-color: var(--card-secondary-bg);
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
	background-image: repeating-linear-gradient( 45deg, #800080, #800080 2px, #131313 2px, #212142 6px );
}

[data-theme="dark"] .category-card:hover,
[data-theme="dark"] .post-card:hover,
[data-theme="dark"] .thread-item:hover {
    background-color: var(--grey-300);
    box-shadow: 0 4px 12px var(--shadow-color);
    transform: translateY(-2px);
}

/* Profile elements */
[data-theme="dark"] .activity-stat,
[data-theme="dark"] .profile-detail {
    background-color: var(--grey-400);
    border-color: var(--grey-300);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Form inputs with elegant styling */
[data-theme="dark"] .form-control {
    background-color: var(--grey-500);
    color: var(--text-color);
    border-color: var(--grey-300);
    transition: all 0.2s ease;
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--grey-400);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem var(--accent-glow);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--inactive-color);
}

/* Text colors and elevation */
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
    color: var(--text-light);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Buttons with enhanced styling */
[data-theme="dark"] .btn {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

[data-theme="dark"] .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

[data-theme="dark"] .btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Beautiful hover effects */
[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

[data-theme="dark"] .btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

/* Encryption status bar with glow */
[data-theme="dark"] .encryption-status {
    background-color: var(--accent-glow);
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

[data-theme="dark"] .encryption-status i {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--accent-glow);
}

/* Hero section */
[data-theme="dark"] .hero, 
[data-theme="dark"] .features {
	  background-image: url('https://secupgrade.com/dashboard/uploads/68243bed91f15.png');
  background-size: cover;       /* Make it cover the whole area */
  background-repeat: no-repeat; /* Don't tile the image */
  background-position: center;  /* Center the image */
    background-color: var(--card-bg);
    box-shadow: 0 4px 20px var(--shadow-color);

	padding: 20;

}

[data-theme="dark"] .feature-card {
    background-color: var(--grey-300);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--grey-400);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-accent);
}

[data-theme="dark"] .feature-icon {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Twitter-style profile cards */
[data-theme="dark"] .twitter-profile-card,
[data-theme="dark"] .reply-twitter-card {
    background-color: var(--grey-400);
    border-left: 4px solid var(--secondary-color);
}

[data-theme="dark"] .twitter-card-name .username {
    color: var(--text-light);
}

[data-theme="dark"] .twitter-card-stats .stat strong {
    color: var(--secondary-color);
}

[data-theme="dark"] .twitter-card-badges .badge {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .twitter-card-avatar {
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* BBCode styling in dark mode */
[data-theme="dark"] .bbcode-quote {
    background-color: var(--quote-color);
    border-left: 3px solid var(--secondary-color);
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .bbcode-quote cite {
   color: #E4E7F2;
}

/* Improved code block styling for dark mode */
[data-theme="dark"] .bbcode-code,
[data-theme="dark"] pre,
[data-theme="dark"] code {
    background-color: #1E2233;
    color: #E4E7F2;
    border: 1px solid var(--grey-300);
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
    font-family: 'Courier New', monospace;
}

[data-theme="dark"] pre code {
    border: none;
    box-shadow: none;
}

/* Inline code styling */
[data-theme="dark"] code {
    padding: 2px 5px;
    border-radius: 3px;
}

/* Block code styling */
[data-theme="dark"] pre {
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
}

[data-theme="dark"] .bbcode-code {
    margin: 15px 0;
    border-radius: 6px;
    padding: 15px;
}

[data-theme="dark"] .bbcode-code code {
    background-color: transparent;
}

/* Code syntax highlighting colors for dark mode */
[data-theme="dark"] .code-keyword {
    color: #BB86FC; /* Light purple */
}

[data-theme="dark"] .code-string {
    color: #03DAC5; /* Teal */
}

[data-theme="dark"] .code-comment {
    color: #6B7394; /* Muted blue-grey */
    font-style: italic;
}

[data-theme="dark"] .code-number {
    color: #FF7597; /* Pink */
}

[data-theme="dark"] .code-function {
    color: #82AAFF; /* Light blue */
}

[data-theme="dark"] .bbcode-list {
    color: var(--text-color);
}

[data-theme="dark"] .bbcode-img {
    border: 1px solid var(--grey-300);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .bbcode-spoiler {
    background-color: var(--spoiler-bg);
    border: 1px solid var(--grey-200);
}

[data-theme="dark"] .spoiler-toggle {
    background-color: var(--grey-200);
    color: var(--text-color);
    border-bottom: 1px solid var(--grey-300);
}

[data-theme="dark"] .spoiler-toggle:hover {
    background-color: var(--grey-300);
}

[data-theme="dark"] .spoiler-content {
    background-color: var(--grey-400);
}

[data-theme="dark"] .bbcode-hr {
    background-image: linear-gradient(to right, rgba(103, 58, 183, 0), rgba(103, 58, 183, 0.75), rgba(103, 58, 183, 0));
}

/* BBCode Toolbar in dark mode */
[data-theme="dark"] .bbcode-toolbar {
    background-color: var(--grey-400);
    border-color: var(--grey-300);
}

[data-theme="dark"] .toolbar-btn {
    background-color: var(--grey-300);
    border-color: var(--grey-200);
    color: var(--text-color);
}

[data-theme="dark"] .toolbar-btn:hover {
    background-color: var(--grey-200);
    border-color: var(--secondary-color);
}

[data-theme="dark"] .toolbar-divider {
    background-color: var(--grey-300);
}

/* Toast notifications */
[data-theme="dark"] .toast {
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* Loading spinner */
[data-theme="dark"] .loading-spinner {
    color: var(--secondary-color);
}

[data-theme="dark"] .loading-spinner i {
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Error messages */
[data-theme="dark"] .error-message {
    background-color: rgba(244, 67, 54, 0.1);
    border-left-color: var(--danger-color);
}

/* Toggle Button Styles - Enhanced */
.theme-toggle-container {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.theme-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Enhanced toggle appearance */
[data-theme="dark"] .slider {
    background-color: #673AB7;
    box-shadow: 0 0 8px rgba(103, 58, 183, 0.5);
}

[data-theme="dark"] .slider:before {
    background-color: #F5F5F5;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: var(--secondary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.theme-toggle-icon {
    margin-right: 8px;
    font-size: 16px;
}

[data-theme="dark"] .theme-toggle-icon {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--accent-glow);
}

/* Scrollbar styling */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 12px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--grey-600);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background-color: var(--grey-300);
    border-radius: 6px;
    border: 3px solid var(--grey-600);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-dark);
}