/**
 * Shared components styles for CV Ghost application
 * This file contains the styles for the sidebar and header components
 */

/* Import Hanken Grotesk font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #d4762a; /* Even darker orange for better contrast */
    --primary-dark: #c2651a;
    --primary-light: #fff4ed; /* Light orange, almost white */
    --success-color: #d4762a; /* Even darker orange as secondary color */
    --success-dark: #c2651a;
    --success-light: #fff4ed; /* Light orange, almost white */
    --alert-bg-light: #fff4ed; /* Very light orange for alerts/banners */
    --alert-border-light: #ffcc99; /* Light orange for alert borders */

    /* Dark theme colors */
    --bg-primary: #000000; /* Pure black background */
    --bg-secondary: #1a1a1a; /* Slightly lighter black for cards/containers */
    --bg-tertiary: #2a2a2a; /* Even lighter for hover states */
    --text-primary: #ffffff; /* White text */
    --text-secondary: #cccccc; /* Light gray text */
    --text-muted: #888888; /* Muted gray text */
    --border-color: #333333; /* Dark border color */
    --border-light: #444444; /* Lighter border color */
}

/* Apply Hanken Grotesk globally to all elements except CV templates */
/* Note: CV templates (fletty, macchiato, even, short, cora, stackoverflow) preserve their original fonts */
* {
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Dark theme global styles */
body {
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #000000 !important;
    color: var(--text-primary) !important;
}

/* Dark theme for all major elements */
.container, .card, .card-body, .card-header {
    background-color: #000000 !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Form controls dark theme */
.form-control, .form-select, textarea {
    background-color: #1a1a1a !important; /* Darker grey for form controls */
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.form-control:focus, .form-select:focus, textarea:focus {
    background-color: #1a1a1a !important; /* Darker grey for form controls */
    color: var(--text-primary) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 64, 0.25) !important;
}

/* Labels and text */
.form-label, label, p, span, small {
    color: var(--text-primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Ensure all headings use Hanken Grotesk */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Ensure all form elements use Hanken Grotesk */
input, textarea, select, button {
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Ensure all Bootstrap components use Hanken Grotesk */
.btn, .form-control, .form-select, .nav, .navbar, .card, .alert, .badge {
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Orange checkboxes and switches */
.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Orange focus outline for form controls */
.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 64, 0.25) !important;
}

/* Personal Information Options Icons */
.personal-info-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0;
    width: 100%;
    margin: 10px 0;
}

.info-icon-item {
    text-align: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}

.info-icon-item:first-child {
    margin-left: 0;
}

.info-icon-item:last-child {
    margin-right: 0;
}

.info-icon-item:hover .info-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 153, 64, 0.3);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(255, 153, 64, 0.2);
}

.info-icon-item.hidden .info-icon {
    background: #6c757d;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.info-icon-item.hidden .info-icon i {
    opacity: 0.6;
}

.info-icon-item.hidden .info-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 3px;
    background: #ffffff;
    transform: translateY(-50%) rotate(-45deg);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.info-text {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    transition: all 0.3s ease;
    margin: 0;
}

.info-icon-item.hidden .info-text {
    color: #6c757d;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .personal-info-icons {
        gap: 30px;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .info-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .personal-info-icons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        justify-items: center;
    }

    .info-icon-item {
        min-width: auto;
    }

    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

.form-check-input:focus {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 153, 64, 0.25) !important;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 65px; /* Start below the header - match header height */
    left: 0;
    height: calc(100vh - 65px); /* Adjust height to account for header */
    width: 80px; /* Increased width to accommodate right shift */
    z-index: 900; /* Lower than header so header appears on top */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0; /* Reset padding */
    transition: all 0.3s ease;
    background-color: #000000 !important; /* Pure black background */
    border: none; /* Remove all borders */
    box-shadow: none; /* Remove shadow */
}

/* Removed sidebar-logo styles as logo is now in header */

.sidebar-top {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 40px; /* Add space at the top since logo is removed */
}

.sidebar-bottom {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-icon {
    width: 35px; /* Smaller icon size */
    height: 35px; /* Smaller icon size */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px; /* Increased vertical gap between icons */
    color: var(--text-muted); /* Muted gray by default */
    font-size: 1.3rem; /* Smaller icon font size */
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 15px; /* Move icons to the right */
}

.sidebar-icon:hover {
    color: var(--primary-color); /* Orange on hover */
    background-color: rgba(255, 153, 64, 0.1);
}

.sidebar-icon.active {
    color: var(--primary-color); /* Orange icon when active */
    background-color: transparent; /* No background */
}

/* Tooltip styles */
.sidebar-icon {
    position: relative;
}

.sidebar-icon .tooltip-text {
    visibility: hidden;
    width: auto;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    left: 125%;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.sidebar-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Hide tooltip for profile icon to prevent text bleeding */
.profile-icon .tooltip-text {
    display: none !important;
}

/* Profile icon and dropdown styles */
.profile-icon {
    position: relative;
    width: 30px !important;
    height: 30px !important;
    margin-bottom: 15px !important;
    margin-left: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.profile-avatar {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background-color: #6c757d !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: none !important;
    box-sizing: border-box !important;
    border: none !important;
    outline: none !important;
    text-align: center !important;
    line-height: 1 !important;
}

/* Removed hover animation as requested */

.profile-dropdown {
    position: absolute !important;
    bottom: 0 !important;
    left: 100% !important;
    transform: none !important;
    background: #2a2a2a !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    padding: 8px 0 !important;
    min-width: 180px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.2s ease !important;
    z-index: 1001 !important;
    margin-left: 10px !important;
    border: 1px solid #444 !important;
}

.profile-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    gap: 10px;
}

.dropdown-item:hover {
    background-color: #3a3a3a;
}

.dropdown-item i {
    font-size: 16px;
    width: 16px;
    color: #f57373;
}

/* Adjust main content to make room for sidebar */
.container {
    margin-left: 80px;
    width: calc(100% - 80px);
    max-width: none;
}

/* Header styles */
.app-header {
    position: fixed;
    top: 0;
    left: 0; /* Start from the very left edge */
    right: 0;
    background-color: #000000 !important; /* Pure black background */
    padding: 10px 15px; /* Standard padding */
    border: none; /* Remove all borders */
    z-index: 1000; /* Higher than sidebar so header appears on top */
    box-shadow: none; /* Remove shadow */
    display: flex;
    align-items: center;
    height: 80px; /* Increased height for larger logo */
    box-sizing: border-box; /* Include padding in height calculation */
}

.header-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px; /* Reduced margin to position it more to the left */
    margin-right: 20px; /* Add margin between logo and title */
    flex-shrink: 0; /* Prevent logo from shrinking */
    z-index: 1001; /* Higher than sidebar to ensure it's visible */
}

.header-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure image maintains aspect ratio */
}

.page-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin: 0; /* Reset margin since logo has its own margin */
    font-size: 1.4rem; /* Larger font size */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflow */
    max-width: calc(100% - 300px); /* Ensure it doesn't overflow container */
    margin-left: 35px;
}

.header-credits {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 20px;
}

.header-credits span {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
}

.header-credits button {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.header-credits button:hover:not(:disabled) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Add padding to container to account for fixed header */
.container {
    padding-top: 90px; /* Increased to ensure content starts below header */
    margin-top: 0; /* Ensure no extra margin at the top */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 60px !important; /* Narrower sidebar on mobile */
        padding: 10px 5px; /* Reduced padding */
        z-index: 900; /* Ensure sidebar stays below header but above content */
    }

    .sidebar-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 15px;
        margin-left: 5px; /* Reduce left margin on mobile */
    }

    .container {
        margin-left: 60px !important;
        width: calc(100% - 60px) !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box;
    }

    .app-header {
        padding: 8px 10px;
        height: 70px; /* Slightly shorter header on mobile */
        left: 0 !important; /* Ensure header starts from left edge */
        right: 0 !important;
    }

    .header-logo img {
        height: 35px; /* Smaller logo on mobile */
    }

    .header-logo {
        margin-left: 65px; /* Push logo right of sidebar */
    }

    .page-title {
        font-size: 1.2rem; /* Smaller title on mobile */
    }

    .header-credits {
        margin-right: 5px;
    }

    .header-credits button {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        min-height: 32px;
    }

    /* Adjust container padding for shorter header */
    .container {
        padding-top: 80px !important; /* Adjusted for shorter header */
    }
}

@media (max-width: 576px) {
    /* Extra mobile-friendly adjustments */
    .sidebar {
        width: 50px !important; /* Even narrower on very small screens */
        z-index: 900;
    }

    .sidebar-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
        margin-bottom: 12px;
        margin-left: 2px; /* Minimal left margin on very small screens */
    }

    .container {
        margin-left: 50px !important;
        width: calc(100% - 50px) !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        box-sizing: border-box;
    }

    .app-header {
        padding: 5px 8px;
        height: 60px; /* Even shorter on very small screens */
        left: 0 !important;
        right: 0 !important;
    }

    .header-logo img {
        height: 30px;
    }

    .header-logo {
        margin-left: 55px; /* Push logo right of narrower sidebar */
    }

    .page-title {
        font-size: 1rem;
        display: none; /* Hide title on very small screens to save space */
    }

    .header-credits button {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
        min-height: 28px;
    }

    /* Adjust container padding for even shorter header */
    .container {
        padding-top: 70px !important;
    }
}

/* Orange loading spinners */
.spinner-border {
    color: var(--primary-color) !important;
}

/* Mobile-friendly form improvements */
@media (max-width: 768px) {
    /* Prevent zoom on form inputs on iOS */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Better touch targets for checkboxes and radio buttons */
    .form-check-input {
        width: 1.2em;
        height: 1.2em;
        margin-top: 0.1em;
    }

    .form-check-label {
        padding-left: 0.5em;
        font-size: 16px;
    }

    /* Improve range slider for touch */
    .form-range {
        height: 2rem;
        padding: 0.5rem 0;
    }

    .form-range::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
        margin-top: -8px;
    }

    .form-range::-moz-range-thumb {
        width: 24px;
        height: 24px;
        border-radius: 50%;
    }

    /* Better button spacing */
    .btn + .btn {
        margin-left: 0.5rem;
    }

    /* Improve alert styling on mobile */
    .alert {
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .alert h5 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .alert p {
        font-size: 14px;
        margin-bottom: 0.75rem;
    }

    .alert .btn {
        font-size: 16px;
        min-height: 44px;
    }
}

/* Extra mobile improvements for very small screens */
@media (max-width: 576px) {
    .form-check-inline {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .btn-group-vertical .btn {
        margin-bottom: 0.25rem;
    }

    /* Stack buttons vertically on very small screens */
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.5rem;
    }

    .d-flex.justify-content-between .btn {
        width: 100%;
    }
}

/* Mobile-friendly loading and accessibility improvements */
@media (max-width: 768px) {
    /* Improve tap targets for better accessibility */
    .btn, .form-control, .custom-color-display {
        min-height: 44px; /* Apple's recommended minimum touch target */
    }

    .btn-sm {
        min-height: 36px;
    }

    .form-check-input {
        min-width: 20px;
        min-height: 20px;
    }

    /* Better loading states on mobile */
    .loading-overlay {
        padding: 20px;
    }

    .loading-content h3 {
        font-size: 1.2rem;
    }

    .loading-content p {
        font-size: 14px;
    }
}

.spinner-border-sm {
    color: var(--primary-color) !important;
}

/* Full page drag and drop overlay */
.drag-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 153, 64, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.drag-overlay.active {
    display: flex;
}

.drag-overlay-content {
    text-align: center;
    color: white;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    max-width: 400px;
}

.drag-overlay-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.drag-overlay-text {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Custom Color Picker Styling */
.color-picker-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.custom-color-picker {
    width: 50px;
    height: 35px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: none;
    padding: 0;
}

.custom-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 6px;
}

.custom-color-picker::-webkit-color-swatch {
    border: 2px solid #555;
    border-radius: 6px;
}

.color-value {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #ffffff;
    background: #333;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 70px;
    text-align: center;
}

/* Beautiful Gradient Generate Button with Subtle Glow */
.gradient-generate-btn {
    background: linear-gradient(90deg, #d4a54d 0%, #d55353 50%, #993285 100%);
    border: none;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), 0 0 20px rgba(255, 153, 64, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gradient-generate-btn:hover {
    background: linear-gradient(90deg, #d4a54d 0%, #d55353 50%, #993285 100%);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 25px rgba(255, 153, 64, 0.25);
    transform: scale(1.02);
    color: white;
}

.gradient-generate-btn:active {
    transform: scale(1.0);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2), 0 0 15px rgba(255, 153, 64, 0.2);
}

.gradient-generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.gradient-generate-btn:hover::before {
    left: 100%;
}

/* Gradient Subheaders */
.gradient-subheader {
    background: linear-gradient(90deg, #fbcb6d 0%, #f57373 50%, #b94aa5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Larger text area font */
.conversation-textarea {
    font-size: 15px !important;
}

/* Character counter styling */
#char-counter {
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Beautiful Custom Color Picker */
.custom-color-picker-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
}

.custom-color-display {
    width: 50px;
    height: 35px;
    border-radius: 8px;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.custom-color-display:hover {
    border-color: #ff9940;
    transform: scale(1.05);
}



.custom-color-value {
    color: #888;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    min-width: 70px;
}

/* Custom Color Picker Popup */
.color-picker-popup {
    position: absolute;
    left: -250px;
    top: 0;
    width: 240px;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #333;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}

.color-picker-popup.show {
    display: block;
}

.color-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.color-picker-title {
    color: #fff;
    font-weight: bold;
    margin: 0;
    font-size: 14px;
}

.color-picker-close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-picker-close:hover {
    color: #ff9940;
}

.color-picker-canvas {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    cursor: crosshair;
    margin-bottom: 12px;
    border: 1px solid #333;
    position: relative;
}

.color-picker-circle {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%);
    z-index: 10;
}

.color-picker-hue {
    width: 100%;
    height: 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 12px;
    background: linear-gradient(to right,
        #ff0000 0%, #ffff00 16.66%, #00ff00 33.33%,
        #00ffff 50%, #0000ff 66.66%, #ff00ff 83.33%, #ff0000 100%);
    border: 1px solid #333;
    position: relative;
}

.color-picker-hue-indicator {
    position: absolute;
    top: -2px;
    width: 3px;
    height: 19px;
    background: #fff;
    border-radius: 2px;
    pointer-events: none;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
    transform: translateX(-50%);
    z-index: 10;
}

.color-picker-preview {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.color-picker-current {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid #333;
}

.color-picker-hex {
    background: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    width: 80px;
}

.color-picker-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.color-picker-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 12px;
}

.color-picker-btn.cancel {
    background: #333;
    color: #fff;
}

.color-picker-btn.cancel:hover {
    background: #444;
}

.color-picker-btn.confirm {
    background: #ff9940;
    color: #000;
}

.color-picker-btn.confirm:hover {
    background: #ffaa55;
}

/* Clean Slider with Active Glow */
.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    border: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff9940;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

.form-range::-webkit-slider-thumb:active {
    box-shadow: 0 0 15px rgba(255, 153, 64, 0.6) !important;
}

.form-range:active::-webkit-slider-thumb {
    box-shadow: 0 0 15px rgba(255, 153, 64, 0.6) !important;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 15px rgba(255, 153, 64, 0.6) !important;
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff9940;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

.form-range::-moz-range-thumb:active {
    box-shadow: 0 0 15px rgba(255, 153, 64, 0.6) !important;
}

.form-range:active::-moz-range-thumb {
    box-shadow: 0 0 15px rgba(255, 153, 64, 0.6) !important;
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 15px rgba(255, 153, 64, 0.6) !important;
}

.form-range:focus {
    outline: none;
    border: none;
}

.form-range:focus::-webkit-slider-thumb {
    outline: none;
    border: none;
    box-shadow: none;
}

.form-range::-moz-range-thumb:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.form-range:focus::-moz-range-thumb {
    outline: none;
    border: none;
    box-shadow: none;
}

/* Dark Mode Radio Buttons */
.form-check-input[type="radio"] {
    background-color: #333 !important;
    border-color: #555 !important;
    box-shadow: 0 0 5px rgba(255, 153, 64, 0.2);
    transition: all 0.2s ease;
}

.form-check-input[type="radio"]:checked {
    background-color: #ff9940 !important;
    border-color: #ff9940 !important;
    box-shadow: 0 0 10px rgba(255, 153, 64, 0.4);
}

.form-check-input[type="radio"]:focus {
    border-color: #ff9940 !important;
    box-shadow: 0 0 8px rgba(255, 153, 64, 0.3) !important;
}

.form-check-input[type="radio"]:hover {
    border-color: #ff9940 !important;
    box-shadow: 0 0 6px rgba(255, 153, 64, 0.25);
}

/* Dark Mode Alert Styling - High Specificity */
.alert.alert-success.dark-alert {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
    color: #ffffff !important;
}

.alert.alert-success.dark-alert h5,
.alert.alert-success.dark-alert p {
    color: #ffffff !important;
}

.btn.btn-success.dark-success-btn {
    background-color: #f57373 !important;
    border-color: #f57373 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(245, 115, 115, 0.15);
    transition: all 0.3s ease;
}

.btn.btn-success.dark-success-btn:hover,
.btn.btn-success.dark-success-btn:focus,
.btn.btn-success.dark-success-btn:active {
    background-color: #e55a5a !important;
    border-color: #e55a5a !important;
    color: #ffffff !important;
    box-shadow: 0 3px 12px rgba(245, 115, 115, 0.2);
    transform: translateY(-1px);
}
