/*
Theme Name: DCs
Theme URI: https://ramira.in
Author: Dipak Chaudhari
Author URI: https://ramira.in
Description: A premium 3D Card Portfolio theme.
Version: 1.1.1
Text Domain: dcs
Tags: portfolio, one-page, 3d, card, mac-ui
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
    font-family: 'Strong';
    src: url('webfonts/Strong.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Variables & Theming */
:root {
    /* Dark Mode (Default) */
    --bg-body: #1e1e1e;
    --bg-window: #2d2d2d;
    --bg-sidebar: rgba(30, 30, 30, 0.4);
    --bg-header: rgba(30, 30, 30, 0.4);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.15);
    --accent-color: #0c84ff;
    --accent-rgb: 12, 132, 255;

    /* Glass Effect */
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --window-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);

    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Strong', sans-serif;

    /* Background Images (Dark/Default) */
    --bg-img-main: url('<?php echo esc_url($bg_main_dark); ?>');
    --bg-img-cover: url('<?php echo esc_url($bg_cover_dark); ?>');

    /* Text Blur / Glow - Standard (Dark Mode = White Text) */
    --text-blur: 0 4px 15px rgba(0, 0, 0, 0.6);
    --btn-glow: 0 8px 25px rgba(var(--accent-rgb), 0.4);
}

body.light-mode {
    /* Light Mode */
    --bg-body: #f0f0f0;
    --bg-window: #ffffff;
    --bg-sidebar: rgba(255, 255, 255, 0.55);
    --bg-header: rgba(255, 255, 255, 0.55);
    --text-main: #333333;
    --text-muted: #555555;
    --border-color: #e0e0e0;
    --window-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    --glass-border: 1px solid rgba(0, 0, 0, 0.1);

    /* Light Mode Backgrounds */
    --bg-img-main: url('<?php echo esc_url($bg_main_light); ?>');
    --bg-img-cover: url('<?php echo esc_url($bg_cover_light); ?>');

    /* Text Blur / Glow - Light Mode (Black Text) */
    --text-blur: 0 0 25px rgba(255, 255, 255, 0.9);
    --btn-glow: 0 5px 20px rgba(var(--accent-rgb), 0.25);
}

/* Explicit Overrides */
body.light-mode .site-wrapper {
    background-image: var(--bg-img-main) !important;
}

body.light-mode .card-front {
    background-image: var(--bg-img-cover) !important;
}

/* Base & Typography */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* 3D Card Layout */
.site-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    background-image: var(--bg-img-main);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: background-image 0.5s ease-in-out;
}

/* The Window */
.card-3d {
    position: relative;
    width: 420px;
    height: 620px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), width 0.8s ease, height 0.8s ease, border-radius 0.8s ease;
    box-shadow: var(--window-shadow);
    border-radius: 15px;
}

.card-3d.is-open {
    transform: rotateY(-180deg);
    width: 90vw;
    height: 90vh;
    max-width: 1400px;
    border-radius: 12px;
}

/* Faces */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--bg-window);
    border-radius: 15px;
    overflow: hidden;
}

.card-front {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px;
    background-image: var(--bg-img-cover) !important;
    background-size: cover;
    background-position: center;
}

.card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.card-info {
    position: relative;
    z-index: 3;
    color: #fff;
    transform: translateY(0);
    transition: transform 0.5s ease;

    /* Premium Glass Container */
    background: rgba(0, 0, 0, 0.3);
    /* Default Dark Glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: auto;
    /* Push to bottom */
}

/* Light Mode Glass Adjustment */
body.light-mode .card-info {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #333;
    /* Dark text for contrast against light glass */
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
    /* Glowing text */
}

/* Typography Enhancements */
.card-title {
    font-size: 2.8rem;
    /* Larger by default */
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-family: var(--font-heading);
    /* Use Customizer Font */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Subtle shadow for readability */
    line-height: 1.1;
}

.card-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 400;
    font-family: var(--font-main);
}

/* Premium Button Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.15);
    /* Glass Button */
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

body.light-mode .btn {
    background: rgba(255, 255, 255, 0.6);
    color: var(--accent-color);
    /* Accent text on light button */
    border-color: rgba(255, 255, 255, 0.8);
}

body:not(.light-mode) .btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.6);
    transform: translateY(-2px);
}

body.light-mode .btn:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 5px 20px rgba(var(--accent-rgb), 0.4);
    transform: translateY(-2px);
}

.card-back {
    transform: rotateY(180deg);
    padding: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    /* allow glass sidebar */
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px var(--border-color);
}

/* Mac Header */
.mac-header {
    height: 54px;
    background: var(--bg-header);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.traffic-lights {
    display: flex;
    gap: 8px;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: relative;
}

.traffic-light.close {
    background: #ff5f56;
}

.traffic-light.minimize {
    background: #ffbd2e;
}

.traffic-light.maximize {
    background: #27c93f;
}

.traffic-light:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: rgba(0, 0, 0, 0.5);
    font-family: sans-serif;
}

.traffic-light.close:hover::after {
    content: 'x';
}

.traffic-light.minimize:hover::after {
    content: '-';
}

.traffic-light.maximize:hover::after {
    content: '+';
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mac-search {
    margin-left: auto;
    position: relative;
}

.mac-search input {
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 6px 10px 6px 30px;
    font-size: 0.85rem;
    color: var(--text-main);
    width: 200px;
    transition: width 0.3s ease;
}

.mac-search input:focus {
    width: 250px;
    outline: none;
    border-color: var(--accent-color);
}

.mac-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mac Body & Sidebar */
.mac-body {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.card-sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 40px 24px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: var(--glass-border);
}

.logo-area {
    margin-bottom: 30px;
    padding-left: 10px;
}

.logo-area h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.custom-logo-link img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    width: auto;
    display: block;
}

/* Dual Logo */
.logo-light {
    display: none !important;
}

.logo-dark {
    display: block !important;
}

body.light-mode .logo-light {
    display: block !important;
}

body.light-mode .logo-dark {
    display: none !important;
}

/* Menu Styling (Enhanced) */
.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
    margin-bottom: 5px;
}

/* Link Styling */
.nav-menu a {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 10px 15px;
    padding-right: 40px;
    /* Space for toggle */
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.nav-menu a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    opacity: 0.7;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu .current-menu-item>a,
.nav-menu .current_page_item>a {
    background: rgba(128, 128, 128, 0.1);
    color: var(--text-main);
}

.nav-menu a.active,
.nav-menu .current-menu-item>a {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
}

.nav-menu a.active i,
.nav-menu .current-menu-item>a i {
    color: var(--accent-color);
    opacity: 1;
}

/* Submenu Styling - Fixed */
.nav-menu .sub-menu {
    display: none;
    /* Required for toggle logic */
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.05);
    /* Very subtle bg indentation */
    border-radius: 6px;
    margin-left: 10px;
    /* Indent */
    border-left: 1px solid var(--border-color);
}

.nav-menu .sub-menu li {
    margin-bottom: 0;
}

.nav-menu .sub-menu a {
    font-size: 0.9rem;
    padding: 8px 12px;
    opacity: 0.9;
    border-radius: 4px;
}

.nav-menu .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Toggle Button Styling */
.submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    /* Same as padding-right of link */
    height: 100%;
    /* Height matches link logic - usually around 40px-44px */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 5;
    /* Prevent toggle click from navigating link */
}

/* Ensure toggle height aligns with the link height */
.submenu-toggle {
    height: 44px;
}

.submenu-toggle:hover {
    color: var(--accent-color);
}

.nav-menu li.open>.submenu-toggle {
    transform: rotate(180deg);
    color: var(--accent-color);
}

/* Light mode submenu */
body.light-mode .nav-menu .sub-menu {
    background: rgba(0, 0, 0, 0.03);
    border-left-color: rgba(0, 0, 0, 0.05);
}

/* Content Area */
.card-content-area {
    flex-grow: 1;
    padding: 0;
    overflow-y: auto;
    background: var(--bg-window);
    position: relative;
}

.content-wrapper {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100;
    background: var(--bg-window);
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.6);
}

/* Dark Mode Scrollbar */
body:not(.light-mode) ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

body:not(.light-mode) ::-webkit-scrollbar-thumb {
    background: #444;
    border: 1px solid #2d2d2d;
}

body:not(.light-mode) ::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    box-shadow: var(--btn-glow);
    transition: all 0.3s ease;
}

.btn:hover {
    filter: brightness(0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.5);
}

/* =========================================
   MOBILE MENU TOGGLES - DESKTOP RESET
   ================================********* */
/* Ensure these are hidden on desktop */
.mobile-menu-toggle,
.mobile-menu-close {
    display: none !important;
}

/* =========================================
   RESPONSIVE DESIGN & MOBILE LAYOUTS
   ================================********* */

@media (max-width: 992px) {
    /* Mobile Layout Overrides */

    .card-3d.is-open {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        max-width: none;
    }

    .card-back {
        border-radius: 0;
    }

    .mac-body {
        flex-direction: column;
    }

    /* Default Sidebar on Mobile (Horizontal Bar) */
    .card-sidebar {
        width: 100%;
        height: auto;
        padding: 10px 15px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Hide Logo Area on default mobile strip */
    .logo-area {
        display: none;
    }

    .nav-menu ul {
        display: flex;
        gap: 10px;
    }

    .nav-menu li {
        margin-bottom: 0;
    }

    .nav-menu a {
        padding: 8px 12px;
        font-size: 0.9rem;
        background: rgba(128, 128, 128, 0.1);
    }

    .submenu-toggle {
        display: none;
    }

    /* Hide submenu toggles on horizontal strip to keep it simple */

    .traffic-lights {
        display: none !important;
    }

    .window-title {
        display: none;
    }

    .mac-header {
        padding-left: 15px;
    }

    .mac-search input {
        width: 150px;
    }

    .mac-search input:focus {
        width: 180px;
    }

    /* --- TOGGLE BUTTON (Hamburger) --- */
    /* Only visible if .visible class is added (Sidebar/Floating Layouts) */
    .mobile-menu-toggle.visible {
        display: flex !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 54px;
        height: 54px;
        z-index: 20;
        background: transparent;
        border: none;
        color: var(--text-main);
        font-size: 1.3rem;
        cursor: pointer;
        align-items: center;
        justify-content: center;
    }

    /* --- SIDEBAR LAYOUT (Off-Canvas Menu) --- */
    .card-sidebar.mobile-layout-sidebar {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 280px;
        max-width: 80vw;
        height: 100%;
        background: var(--bg-window);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        border-right: 1px solid var(--border-color);
        box-shadow: 10px 0 50px rgba(0, 0, 0, 0.4);
        padding-top: 60px;
        /* Space for close button */
        padding-left: 20px;
        padding-right: 20px;
        overflow-y: auto;
        white-space: normal;
    }

    .card-sidebar.mobile-layout-sidebar.open {
        transform: translateX(0);
    }

    /* Restore Logo Area in Sidebar Mode */
    .card-sidebar.mobile-layout-sidebar .logo-area {
        display: block;
        margin-bottom: 20px;
    }

    .card-sidebar.mobile-layout-sidebar .nav-menu ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .card-sidebar.mobile-layout-sidebar .nav-menu a {
        background: transparent;
        /* Reset from strip style */
    }

    .card-sidebar.mobile-layout-sidebar .submenu-toggle {
        display: flex;
        /* Restore toggle */
    }

    /* Mobile Close Button */
    .card-sidebar.mobile-layout-sidebar .mobile-menu-close {
        display: flex !important;
        position: absolute;
        top: 15px;
        right: 15px;
        width: 34px;
        height: 34px;
        background: rgba(128, 128, 128, 0.1);
        border: 1px solid var(--border-color);
        border-radius: 50%;
        color: var(--text-main);
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* --- FLOATING FOOTER LAYOUT --- */
    .card-sidebar.mobile-layout-floating {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        height: auto;
        background: var(--bg-window);
        backdrop-filter: blur(25px);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
        padding: 5px 15px;
        flex-direction: row;
        justify-content: space-around;
        z-index: 100;
        overflow-x: hidden;
    }

    .card-sidebar.mobile-layout-floating .logo-area {
        display: none;
    }

    .card-sidebar.mobile-layout-floating .nav-menu {
        width: 100%;
    }

    .card-sidebar.mobile-layout-floating .nav-menu ul {
        justify-content: space-around;
        width: 100%;
    }

    .card-sidebar.mobile-layout-floating .nav-menu a {
        flex-direction: column;
        background: transparent;
        padding: 8px 5px;
        border-radius: 8px;
        font-size: 0 !important;
        /* Icons only */
    }

    .card-sidebar.mobile-layout-floating .nav-menu a i {
        font-size: 1.4rem !important;
        margin-right: 0;
        color: var(--text-muted);
    }

    .card-sidebar.mobile-layout-floating .nav-menu a.active {
        background: rgba(128, 128, 128, 0.1);
    }

    .card-sidebar.mobile-layout-floating .nav-menu a.active i {
        color: var(--accent-color);
    }

    .card-sidebar.mobile-layout-floating .submenu-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .card-3d {
        width: 92vw;
        /* Use almost full width */
        height: 85vh;
        /* Taller for modern mobile feel */
        max-height: 800px;
    }

    .card-title {
        font-size: 2.2rem;
        /* Adjusted for mobile */
    }

    .mac-search input {
        width: 120px;
    }

    /* Mobile Glass Adjustment */
    .card-info {
        padding: 20px;
        backdrop-filter: blur(20px);
        /* Stronger blur on mobile */
        -webkit-backdrop-filter: blur(20px);
        margin-bottom: 20px;
        /* Spacing from bottom edge */
    }
}

/* =========================================
   FINDER VIEW (Grid / List)
   ================================********* */
.finder-view.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 30px 20px;
    padding: 20px 0;
}

.finder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 100%;
}

.finder-item:hover {
    transform: translateY(-5px);
}

.finder-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.finder-icon img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.finder-icon i {
    font-size: 2.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

.default-doc-icon {
    color: var(--text-muted);
}

.finder-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.finder-date,
.finder-kind,
.finder-list-header {
    display: none;
}

/* List View */
.finder-view.view-list {
    display: flex;
    flex-direction: column;
}

.view-list .finder-list-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 5px 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.col-date,
.col-kind {
    width: 120px;
    flex-shrink: 0;
    text-align: right;
}

.col-name {
    flex-grow: 1;
}

.view-list .finder-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.view-list .finder-item:hover {
    background: rgba(var(--accent-rgb), 0.1);
    transform: none;
}

.view-list .finder-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0;
    margin-right: 12px;
    background: transparent !important;
    box-shadow: none !important;
    flex-shrink: 0;
}

.view-list .finder-icon i {
    font-size: 1.1rem;
}

.view-list .finder-name {
    flex-grow: 1;
    font-size: 0.9rem;
    margin-bottom: 0;
    -webkit-line-clamp: 1;
}

.view-list .finder-date,
.view-list .finder-kind {
    display: block;
    width: 120px;
    flex-shrink: 0;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Utilities */
.no-results {
    text-align: center;
    padding: 50px 20px;
    opacity: 0.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modals */
.dcs-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    cursor: pointer;
}

.dcs-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    background: var(--bg-window);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.dcs-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s;
}

.dcs-modal-close:hover {
    background: #fff;
    color: var(--accent-color);
}

.dcs-modal-content iframe {
    width: 800px;
    height: 450px;
    max-width: 100%;
    border-radius: 8px;
}

.dcs-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.dcs-modal-content audio {
    width: 400px;
    max-width: 100%;
}

/* Dropdown Widget */
.dcs-dropdown {
    position: relative;
    display: inline-block;
    margin: 10px 0;
}

.dcs-dropdown-toggle {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    color: var(--text-main);
    border-radius: 5px;
    cursor: pointer;
    min-width: 200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dcs-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-window);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-top: 5px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dcs-dropdown.active .dcs-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dcs-dropdown-item {
    display: block;
    padding: 10px 15px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.dcs-dropdown-item:hover {
    background: rgba(var(--accent-rgb), 0.1);
    color: #fff;
}