.sidebar {
    width: 250px;
    background: #1E1E1E;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.logo-area {
    margin-bottom: 40px;
}

.logo-link {
    text-decoration: none;
    display: block;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #AAA;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-item:hover, .nav-item.active {
    background: #333;
    color: white;
}

.nav-icon {
    filter: invert(0.7);
    opacity: 0.8;
    flex-shrink: 0;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    filter: invert(1);
    opacity: 1;
}

.nav-divider {
    height: 1px;
    background: #333;
    margin: 15px 0;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #121212;
}

/* Dashboard Breadcrumb */
.dashboard-breadcrumb {
    padding: 12px 40px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    font-size: 14px;
    color: #888;
    white-space: nowrap;
    overflow-x: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dashboard-breadcrumb .breadcrumb-item {
    color: #2196F3;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px 8px;
    border-radius: 4px;
}

.dashboard-breadcrumb .breadcrumb-item:hover {
    color: #64B5F6;
    background: rgba(33, 150, 243, 0.1);
}

.dashboard-breadcrumb .breadcrumb-separator {
    color: #555;
    margin: 0 2px;
}

.dashboard-breadcrumb .breadcrumb-current {
    color: #E0E0E0;
    font-weight: 500;
    padding: 4px 8px;
}

.top-bar {
    padding: 25px 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    gap: 20px;
}

.top-bar h1 {
    margin: 0;
    flex-shrink: 0;
}

.top-bar .actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    height: 38px;
    padding: 0 36px 0 14px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.search-input::placeholder {
    color: #888;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
    display: none;
}

.search-clear:hover {
    color: #fff;
}

.search-container.has-value .search-clear {
    display: block;
}

.content-area {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.simulations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.simulation-card {
    background: #1E1E1E;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid #333;
}

.simulation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-color: #2196F3;
}

.card-thumb {
    height: 140px;
    background: #2a2a2a; /* Placeholder */
    position: relative;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 15px;
}

.card-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 500;
}

.card-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
}

.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.simulation-card:hover .card-actions {
    opacity: 1;
}

.btn-icon {
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.btn-primary {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary:hover {
    background: #1976D2;
}

/* Modal styles are inherited from main.css */

.input-group {
    display: flex;
    gap: 10px;
}

input[type="email"], input[type="text"], select {
    background: #2A2A2A;
    border: 1px solid #444;
    color: white;
    padding: 8px;
    border-radius: 4px;
    flex: 1;
}

.share-list {
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 10px;
}

.share-list ul {
    list-style: none;
    padding: 0;
}

.collaborator-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #2A2A2A;
}

/* File List Grid - Dashboard Style */
.file-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px;
}

.file-list-grid .file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: #1E1E1E;
    border: 1px solid #333;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 160px;
}

.file-list-grid .file-item:hover {
    background: #2a2a2a;
    border-color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.file-list-grid .file-item.openfoam-case {
    /* Same as default — no special highlight */
}

.file-list-grid .file-item.openfoam-case:hover {
    background: #2a2a2a;
    border-color: #2196F3;
}

/* File Icon */
.file-list-grid .file-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-list-grid .file-icon-img {
    width: 48px;
    height: 48px;
    filter: invert(1) brightness(1.2);
    opacity: 0.9;
}

/* Breadcrumb icon */
.breadcrumb-icon {
    vertical-align: middle;
    filter: invert(1) brightness(1.2);
    opacity: 0.8;
    margin-right: 4px;
}

/* File Info Container */
.file-list-grid .file-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0; /* Allow text truncation */
}

/* File Name */
.file-list-grid .file-name {
    font-size: 14px;
    font-weight: 500;
    color: #E0E0E0;
    text-align: center;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

/* File Meta (size + date + badge) */
.file-list-grid .file-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

/* Case Badge */
.file-list-grid .case-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    background: #4CAF50;
    color: white;
    font-weight: 500;
}

.file-list-grid .file-size {
    font-size: 12px;
    color: #2196F3;
    font-weight: 500;
}

.file-list-grid .file-date {
    font-size: 11px;
    color: #888;
}

.file-list-grid .shared-by {
    font-size: 11px;
    color: #AF52DE;
    font-weight: 500;
}

/* Action Buttons Container - Left side, vertical layout */
.file-list-grid .card-actions {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.file-list-grid .file-item:hover .card-actions {
    opacity: 1;
}

/* Mobile card menu button - hidden on desktop */
.file-list-grid .btn-card-menu {
    display: none;
}

/* Action Buttons */
.file-list-grid .btn-action {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: white;
}

.file-list-grid .btn-action:hover {
    transform: scale(1.1);
}

/* Download button - green color */
.file-list-grid .btn-download {
    background: #4CAF50;
    position: relative;
}

.file-list-grid .btn-download:hover {
    background: #388E3C;
}

/* Download button progress state */
.file-list-grid .btn-download.downloading {
    background: rgba(76, 175, 80, 0.15);
    pointer-events: none;
    position: relative;
}

.file-list-grid .btn-download.downloading .action-icon {
    display: none;
}

.file-list-grid .btn-download.downloading .download-progress {
    display: block;
}

/* Square border progress indicator for download */
.download-progress {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.download-progress svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.download-progress .progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
}

.download-progress .progress-ring {
    fill: none;
    stroke: #4CAF50;
    stroke-width: 2;
    stroke-linecap: round;
    /* Perimeter of rounded rect 26x26 with rx=5: 4*(26-2*5) + 2*PI*5 ≈ 95.4 */
    stroke-dasharray: 95.4;
    stroke-dashoffset: 95.4;
    transition: stroke-dashoffset 0.15s ease;
}

.download-progress .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
    z-index: 1;
}

.file-list-grid .btn-share {
    background: #2196F3;
}

.file-list-grid .btn-share:hover {
    background: #1976D2;
}

.file-list-grid .btn-rename {
    background: #FF9800;
}

.file-list-grid .btn-rename:hover {
    background: #F57C00;
}

.file-list-grid .btn-delete {
    background: #f44336;
}

.file-list-grid .btn-delete:hover {
    background: #d32f2f;
}

/* Action button icons */
.action-icon {
    filter: invert(1);
    opacity: 0.9;
}

.btn-action:hover .action-icon {
    opacity: 1;
}

/* User Profile in Sidebar */
.user-profile {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-info {
    font-size: 14px;
    color: #ccc;
}

.company-admin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 122, 255, 0.15);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 8px;
    color: #0a84ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.company-admin-btn:hover {
    background: rgba(0, 122, 255, 0.25);
    border-color: rgba(0, 122, 255, 0.5);
}

.company-admin-btn svg {
    flex-shrink: 0;
}

.btn-text {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 13px;
    align-self: flex-start;
}

.btn-text:hover {
    color: #f44336;
}

/* Loading and Error States */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
}

.error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    color: #888;
}

/* Secondary Button */
.btn-secondary {
    background: #444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-secondary:hover {
    background: #555;
}

/* Form Group in Modals */
.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
}

.modal-body .form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-body .form-group input[type="text"]:focus {
    outline: none;
    border-color: #2196F3;
}

/* Danger Button */
.btn-danger {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* Share modal styles are inherited from main.css */

/* New Simulation Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown-item:first-child {
    border-radius: 7px 7px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 7px 7px;
}

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

.dropdown-item img {
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

/* ============================================
   Mobile Responsive Styles
   ============================================ */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s, transform 0.2s;
}

.mobile-menu-toggle:hover {
    background: #3a3a3a;
}

.mobile-menu-toggle.active {
    background: #2196F3;
    border-color: #2196F3;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.visible {
    opacity: 1;
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .content-area {
        padding: 24px;
    }

    .top-bar {
        padding: 20px 24px;
    }

    .dashboard-breadcrumb {
        padding: 12px 24px;
    }

    .simulations-grid,
    .file-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    /* Show mobile menu button */
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-overlay {
        display: block;
        pointer-events: none;
    }

    .mobile-overlay.visible {
        pointer-events: auto;
    }

    /* Sidebar - hidden by default, slides in from left */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding-top: 70px; /* Space for close button */
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Main content takes full width */
    .main-content {
        width: 100%;
        margin-left: 0;
    }

    /* Top bar adjustments */
    .top-bar {
        padding: 16px;
        padding-left: 70px; /* Space for hamburger button */
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    /* Title row with button */
    .top-bar h1 {
        font-size: 18px;
        margin: 0;
        flex-shrink: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Search bar - full width below title */
    .search-container {
        width: 100%;
        max-width: none;
        order: 2;
    }

    /* Actions button */
    .top-bar .actions {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .top-bar .actions .btn-primary {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Hide dropdown arrow text on mobile, show icon only */
    .top-bar .actions .dropdown-toggle svg {
        margin-left: 0;
    }

    /* Breadcrumb */
    .dashboard-breadcrumb {
        padding: 10px 16px;
        padding-left: 70px;
    }

    /* Content area */
    .content-area {
        padding: 16px;
    }

    /* Mobile: Single column list layout */
    .simulations-grid,
    .file-list-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Card layout for mobile - two rows: content and actions */
    .file-list-grid .file-item {
        flex-direction: column !important;
        align-items: stretch !important;
        min-height: auto;
        padding: 12px;
        gap: 10px;
    }

    /* First row: icon + file info */
    .file-list-grid .file-item > .file-icon,
    .file-list-grid .file-item > .file-info {
        display: inline;
    }

    /* Create a flex row for icon and info */
    .file-list-grid .file-icon {
        font-size: 28px;
        margin-bottom: 0;
        float: left;
        margin-right: 10px;
    }

    .file-list-grid .file-icon-img {
        width: 28px;
        height: 28px;
    }

    /* File info - next to icon */
    .file-list-grid .file-info {
        align-items: flex-start;
        gap: 2px;
        overflow: hidden;
    }

    /* File name - left aligned */
    .file-list-grid .file-name {
        font-size: 14px;
        text-align: left;
        margin-bottom: 2px;
        display: block;
    }

    /* Meta row - always visible */
    .file-list-grid .file-meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        margin-top: 0;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* All meta items always visible */
    .file-list-grid .file-size,
    .file-list-grid .file-date,
    .file-list-grid .case-badge,
    .file-list-grid .shared-by {
        opacity: 1 !important;
        visibility: visible !important;
        display: inline-block !important;
    }

    /* Badge styling */
    .file-list-grid .case-badge {
        margin-bottom: 0;
        font-size: 9px;
        padding: 2px 6px;
    }

    /* Hide the three-dot menu button on mobile */
    .file-list-grid .btn-card-menu {
        display: none !important;
    }

    /* Action buttons - second row, always visible */
    .file-list-grid .card-actions {
        position: static !important;
        opacity: 1 !important;
        flex-direction: row !important;
        gap: 8px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        clear: both;
        justify-content: flex-start;
        padding-top: 8px;
        border-top: 1px solid #333;
        margin-top: 4px;
    }

    /* Disable hover effect on mobile */
    .file-list-grid .file-item:hover .card-actions {
        opacity: 1 !important;
    }

    .file-list-grid .btn-action {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    /* Dropdown menu adjustments */
    .dropdown-menu {
        right: -16px;
        min-width: 200px;
    }

    /* Modal adjustments */
    .modal-content {
        width: 90% !important;
        max-width: 400px;
        margin: 20px;
    }

    .share-modal-content {
        max-width: 90% !important;
    }

    .share-invite-row {
        flex-direction: column;
        gap: 8px;
    }

    .share-email-input,
    .share-role-select,
    .share-send-btn {
        width: 100%;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    /* Smaller hamburger button */
    .mobile-menu-toggle {
        top: 10px;
        left: 10px;
        width: 38px;
        height: 38px;
    }

    .mobile-menu-toggle svg {
        width: 20px;
        height: 20px;
    }

    .top-bar {
        padding: 10px;
        padding-left: 52px;
        padding-right: 10px;
        gap: 10px;
    }

    .top-bar h1 {
        font-size: 16px;
        max-width: calc(100% - 90px); /* Leave room for button */
    }

    .top-bar .actions {
        top: 10px;
        right: 10px;
    }

    /* Compact button on small screens */
    .top-bar .actions .btn-primary {
        padding: 6px 10px;
        font-size: 12px;
    }

    .search-input {
        height: 36px;
        font-size: 14px;
    }

    .dashboard-breadcrumb {
        padding: 8px 10px;
        padding-left: 52px;
        font-size: 12px;
    }

    .content-area {
        padding: 12px;
    }

    .simulations-grid,
    .file-list-grid {
        gap: 8px;
    }

    .file-list-grid .file-item {
        padding: 10px;
        gap: 10px;
    }

    .file-list-grid .file-icon {
        font-size: 24px;
    }

    .file-list-grid .file-icon-img {
        width: 24px;
        height: 24px;
    }

    .file-list-grid .file-name {
        font-size: 13px;
    }

    .file-list-grid .file-size,
    .file-list-grid .file-date {
        font-size: 10px;
    }

    /* Smaller action buttons on small mobile */
    .file-list-grid .btn-action {
        width: 26px;
        height: 26px;
    }

    .file-list-grid .card-actions {
        gap: 3px;
    }

    .file-list-grid .action-icon {
        width: 12px;
        height: 12px;
    }

    /* Storage stats in sidebar */
    .storage-stats {
        padding: 12px;
    }

    .nav-item {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Empty state */
    .empty-state {
        padding: 40px 20px;
    }
}

/* ===== CAD Design Cards & Tags ===== */

/* CAD Design specific styling */
.file-item.cad-design {
    border-left: 3px solid #9C27B0;
}

/* Tag Filter Bar */
.tag-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 40px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.tag-filter-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}

.tag-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Tag pill for filtering */
.tag-pill-filter {
    padding: 6px 12px;
    background: #2a2a2a;
    color: #CE93D8;
    border: 1px solid #444;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tag-pill-filter:hover {
    background: rgba(156, 39, 176, 0.3);
    border-color: #9C27B0;
    transform: translateY(-1px);
}

.tag-pill-filter.active {
    background: #9C27B0;
    color: white;
    border-color: #9C27B0;
}

/* Tags displayed on cards */
.design-tags {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.tag-pill {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(156, 39, 176, 0.2);
    color: #CE93D8;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* Badge color for CAD designs */
.case-badge.cad-badge {
    background: #9C27B0 !important;
}

/* Mobile responsiveness for tag filter */
@media (max-width: 768px) {
    .tag-filter {
        padding: 12px 20px;
        flex-wrap: wrap;
    }

    .tag-filter-label {
        width: 100%;
        margin-bottom: 8px;
    }

    .tag-pills {
        width: 100%;
    }

    .tag-pill-filter {
        font-size: 11px;
        padding: 5px 10px;
    }
}
