/* --------------------------
   Transition Improvements - Global Animation Settings
--------------------------- */
:root {
  --dock-transition-duration: 0.3s;
  --dock-transition-timing: cubic-bezier(0.34, 1.56, 0.64, 1); /* Spring-like effect */
  --dock-hover-transition-timing: cubic-bezier(0.22, 1, 0.36, 1); /* Smooth acceleration/deceleration */
  --menu-close-duration: 0.2s; /* Faster closing animation */
  --menu-close-timing: cubic-bezier(0.2, 0, 0, 1); /* Quick start, smooth finish */
  --dock-close-duration: 0.25s; /* Slightly longer to ensure menu shrinks first */
  --dock-close-timing: var(--menu-close-timing);
  --menu-close-target-x: 50%; /* Dynamic target X for shrink animation */
  --menu-close-target-y: 100%; /* Dynamic target Y for shrink animation */
}

/* --------------------------
   Add minimized states
--------------------------- */
.cn-dock:not(:hover):not(.force-open) {
   position: absolute;
   left: 50%;
   bottom: 0;
   transform: translateX(-50%);
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 4px;
   height: 23px;
   padding: 0 8px;
   margin: 0;
   background: transparent;
   border: none;
   pointer-events: auto;
   transition: all var(--dock-close-duration) var(--dock-close-timing);
   z-index: 9999; /* Same high z-index even when minimized */
   background-color: rgba(0, 0, 0, 0.7); /* Slightly visible background */
   border-top: 1px solid rgba(34, 197, 94, 0.2); /* Subtle top border for visibility */
   border-left: 1px solid rgba(34, 197, 94, 0.2);
   border-right: 1px solid rgba(34, 197, 94, 0.2);
   border-radius: 8px 8px 0 0;
}

.cn-dock:not(:hover):not(.force-open) .cn-dock-icon {
   width: 18px;
   height: 18px;
   transition: all var(--dock-close-duration) var(--dock-close-timing);
}

.cn-dock:not(:hover):not(.force-open) .cn-dock-label {
   display: none;
}

/* --------------------------
   Dock Wrapper & Container
--------------------------- */
.cn-dock-wrapper {
   position: fixed;
   bottom: 0;
   left: 0;
   width: 100%;
   z-index: 9999; /* Ensure this is higher than any other content */
   pointer-events: none; /* Allows clicks to pass through except where .cn-dock is hovered */
}

.cn-dock {
   display: flex;
   justify-content: center;
   align-items: flex-end;
   gap: 8px;
   padding: 8px;
   margin: 0 auto;
   max-width: 800px;
   background: rgba(0, 0, 0, 0.7);
   border: 1px solid rgba(34, 197, 94, 0.3);
   border-radius: 16px 16px 0 0; /* Softer top corners */
   backdrop-filter: blur(10px);
   pointer-events: auto; /* So it can be interacted with */
   transition: all var(--dock-transition-duration) var(--dock-transition-timing);
   transform-origin: bottom center;
   position: absolute;
   left: 50%;
   transform: translateX(-50%);
   bottom: 0;
}

.cn-dock.force-open {
   transition: all var(--dock-transition-duration) var(--dock-transition-timing);
}

.cn-dock-item {
   position: relative;
   display: flex;
   flex-direction: column;
   align-items: center;
   transition: all 0.15s ease-out;
   cursor: pointer;
   padding: 8px;
   min-width: 48px;
}

/* Increased magnification on icon hover */
.cn-dock-item:hover {
   transform: scale(1.6); /* Increased from 1.4 to 1.6 for more dramatic effect */
   transition: transform 0.1s ease-out;
}

/* Active item styling */
.cn-dock-item.active {
   transform: scale(1.5);
}

.cn-dock-item.active:hover {
   transform: scale(1.6);
}

/* --------------------------
   Cyberpunk Dock Icon Updates
--------------------------- */
.cn-dock-icon {
   display: flex;
   align-items: center;
   justify-content: center;
   /* Increased radius for softer corners */
   width: 48px;
   height: 48px;
   border-radius: 16px; /* was 8px before */

   /* Subtle neon gradient background */
   background: linear-gradient(135deg, rgba(0,255,240,0.1), rgba(255,0,255,0.1));
   border: 2px solid transparent;

   /* Lighter glow than before */
   box-shadow: 0 0 10px rgba(0,255,240,0.2);
   position: relative;
   overflow: hidden;
   transition: background 0.3s ease, 
               border-color 0.3s ease, 
               box-shadow 0.3s ease;
}

.cn-dock-icon::before {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(45deg, transparent, rgba(0,255,240,0.3), transparent);
   opacity: 0;
   transition: opacity 0.3s ease;
}

.cn-dock-icon:hover::before {
   opacity: 0.25;
}

.cn-dock-icon i {
   font-size: 24px;
   color: #00fff0;
   filter: drop-shadow(0 0 5px #00fff0);
   transition: all 0.2s ease;
}

/* Active icon styling */
.cn-dock-item.active .cn-dock-icon {
   box-shadow: 0 0 15px rgba(0,255,240,0.5), 0 0 20px rgba(255,0,255,0.4);
   border-color: rgba(34, 197, 94, 0.8);
}

/* --------------------------
   Icon-specific Colors & BG
--------------------------- */
/* Example for "search" icon */
.cn-dock-icon[data-icon="search"] {
   background: rgba(0, 20, 0, 0.7);
   border: 1px solid rgba(85, 255, 255, 0.3);
   border-radius: 12px;
   transition: background 0.3s ease, 
               border-color 0.3s ease,
               box-shadow 0.3s ease;
}
.cn-dock-icon[data-icon="search"] i {
   color: rgba(85, 255, 255, 0.9);
}

/* "calendar" */
.cn-dock-icon[data-icon="calendar"] {
   background: linear-gradient(135deg, rgba(85,255,255,0.1) 0%, rgba(34,197,94,0.1) 100%);
   border-color: rgba(85,255,255,0.3);
   transition: background 0.3s ease, 
               border-color 0.3s ease,
               box-shadow 0.3s ease;
}
.cn-dock-icon[data-icon="calendar"] i {
   color: rgba(85,255,255,0.9);
}

/* "users" */
.cn-dock-icon[data-icon="users"] {
   background: linear-gradient(135deg, rgba(255,85,255,0.1) 0%, rgba(34,197,94,0.1) 100%);
   border-color: rgba(255,85,255,0.3);
   transition: background 0.3s ease, 
               border-color 0.3s ease,
               box-shadow 0.3s ease;
}
.cn-dock-icon[data-icon="users"] i {
   color: rgba(255,85,255,0.9);
}

/* "dollar-sign" */
.cn-dock-icon[data-icon="dollar-sign"] {
   background: linear-gradient(135deg, rgba(255,255,85,0.1) 0%, rgba(34,197,94,0.1) 100%);
   border-color: rgba(255,255,85,0.3);
   transition: background 0.3s ease, 
               border-color 0.3s ease,
               box-shadow 0.3s ease;
}
.cn-dock-icon[data-icon="dollar-sign"] i {
   color: rgba(255,255,85,0.9);
}

/* "check-square" */
.cn-dock-icon[data-icon="check-square"] {
   background: linear-gradient(135deg, rgba(85,255,85,0.1) 0%, rgba(34,197,94,0.1) 100%);
   border-color: rgba(85,255,85,0.3);
   transition: background 0.3s ease, 
               border-color 0.3s ease,
               box-shadow 0.3s ease;
}
.cn-dock-icon[data-icon="check-square"] i {
   color: rgba(85,255,85,0.9);
}

/* "message-square" */
.cn-dock-icon[data-icon="message-square"] {
   background: linear-gradient(135deg, rgba(255,85,85,0.1) 0%, rgba(34,197,94,0.1) 100%);
   border-color: rgba(255,85,85,0.3);
   transition: background 0.3s ease, 
               border-color 0.3s ease,
               box-shadow 0.3s ease;
}
.cn-dock-icon[data-icon="message-square"] i {
   color: rgba(255,85,85,0.9);
}

/* "sticky-note" */
.cn-dock-icon[data-icon="sticky-note"] {
   background: linear-gradient(135deg, rgba(85,85,255,0.1) 0%, rgba(34,197,94,0.1) 100%);
   border-color: rgba(85,85,255,0.3);
   transition: background 0.3s ease, 
               border-color 0.3s ease,
               box-shadow 0.3s ease;
}
.cn-dock-icon[data-icon="sticky-note"] i {
   color: rgba(85,85,255,0.9);
}

/* "folder" */
.cn-dock-icon[data-icon="folder"] {
   background: linear-gradient(135deg, rgba(85,255,255,0.1) 0%, rgba(34,197,94,0.1) 100%);
   border-color: rgba(85,255,255,0.3);
   transition: background 0.3s ease, 
               border-color 0.3s ease,
               box-shadow 0.3s ease;
}
.cn-dock-icon[data-icon="folder"] i {
   color: rgba(85,255,255,0.9);
}

/* "music" */
.cn-dock-icon[data-icon="music"] {
   background: linear-gradient(135deg, rgba(255,85,255,0.1) 0%, rgba(34,197,94,0.1) 100%);
   border-color: rgba(255,85,255,0.3);
   transition: background 0.3s ease, 
               border-color 0.3s ease,
               box-shadow 0.3s ease;
}
.cn-dock-icon[data-icon="music"] i {
   color: rgba(255,85,255,0.9);
}

/* --------------------------
   Hover states for specific icons
--------------------------- */
.cn-dock-item:hover .cn-dock-icon[data-icon="search"] {
   background: linear-gradient(135deg, rgba(85,255,255,0.2) 0%, rgba(34,197,94,0.2) 100%);
   border-color: rgba(85,255,255,0.8);
}

.cn-dock-item:hover .cn-dock-icon[data-icon="calendar"] {
   background: linear-gradient(135deg, rgba(85,255,255,0.2) 0%, rgba(34,197,94,0.2) 100%);
   border-color: rgba(85,255,255,0.8);
}

.cn-dock-item:hover .cn-dock-icon[data-icon="users"] {
   background: linear-gradient(135deg, rgba(255,85,255,0.2) 0%, rgba(34,197,94,0.2) 100%);
   border-color: rgba(255,85,255,0.8);
}

.cn-dock-item:hover .cn-dock-icon[data-icon="dollar-sign"] {
   background: linear-gradient(135deg, rgba(255,255,85,0.2) 0%, rgba(34,197,94,0.2) 100%);
   border-color: rgba(255,255,85,0.8);
}

.cn-dock-item:hover .cn-dock-icon[data-icon="check-square"] {
   background: linear-gradient(135deg, rgba(85,255,85,0.2) 0%, rgba(34,197,94,0.2) 100%);
   border-color: rgba(85,255,85,0.8);
}

.cn-dock-item:hover .cn-dock-icon[data-icon="message-square"] {
   background: linear-gradient(135deg, rgba(255,85,85,0.2) 0%, rgba(34,197,94,0.2) 100%);
   border-color: rgba(255,85,85,0.8);
}

.cn-dock-item:hover .cn-dock-icon[data-icon="sticky-note"] {
   background: linear-gradient(135deg, rgba(85,85,255,0.2) 0%, rgba(34,197,94,0.2) 100%);
   border-color: rgba(85,85,255,0.8);
}

.cn-dock-item:hover .cn-dock-icon[data-icon="folder"] {
   background: linear-gradient(135deg, rgba(85,255,255,0.2) 0%, rgba(34,197,94,0.2) 100%);
   border-color: rgba(85,255,255,0.8);
}

.cn-dock-item:hover .cn-dock-icon[data-icon="music"] {
   background: linear-gradient(135deg, rgba(255,85,255,0.2) 0%, rgba(34,197,94,0.2) 100%);
   border-color: rgba(255,85,255,0.8);
}

/* --------------------------
   Dock Label
--------------------------- */
.cn-dock-label {
   position: absolute;
   top: -30px;
   background: rgba(0, 0, 0, 0.8);
   color: #22c55e;
   padding: 4px 8px;
   border-radius: 4px;
   font-size: 12px;
   opacity: 0;
   transform: translateY(10px);
   transition: opacity 0.2s ease, transform 0.2s var(--dock-transition-timing);
   pointer-events: none;
   white-space: nowrap;
}

.cn-dock-item:hover .cn-dock-label {
   opacity: 1;
   transform: translateY(0);
}

/* --------------------------
   Additional Shine Effect
--------------------------- */
.icon-shine {
   opacity: 0.3;
   background: linear-gradient(
       45deg,
       transparent 0%,
       rgba(255,255,255,0) 30%,
       rgba(255,255,255,0.4) 50%,
       rgba(255,255,255,0) 70%,
       transparent 100%
   );
   transition: opacity 0.2s ease;
}

.cn-dock:hover .icon-shine {
   opacity: 0.5;
}

/* --------------------------
   Project Menu - Cyberpunk Redesign
--------------------------- */
.cn-project-menu {
   position: fixed;
   bottom: 80px;
   background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 30, 0.95) 100%);
   border: 1px solid rgba(0, 255, 240, 0.3);
   border-left: 3px solid rgba(0, 255, 240, 0.7);
   border-radius: 0 8px 8px 0;
   padding: 20px;
   min-width: 240px;
   pointer-events: auto;
   box-shadow: 
      0 0 15px rgba(0, 255, 240, 0.3),
      0 0 30px rgba(255, 0, 255, 0.2),
      inset 0 0 15px rgba(0, 0, 0, 0.8);
   backdrop-filter: blur(10px);
   z-index: 10000;
   transform-origin: bottom center;
   will-change: transform, opacity;
   z-index: 10000; /* Higher than dock and footer */
}

/* Add scanlines effect */
.cn-project-menu:before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
   );
   pointer-events: none;
   opacity: 0.4;
   z-index: -1;
}
   
/* Add circuit-like pattern */
.cn-project-menu:after {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: 
      radial-gradient(circle at 10% 20%, rgba(0, 255, 240, 0.1) 0%, transparent 20%),
      radial-gradient(circle at 90% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 20%);
   pointer-events: none;
   opacity: 0.6;
   z-index: -1;
}

.cn-project-menu h3 {
   color: #00fff0;
   margin: 0 0 16px 0;
   font-size: 16px;
   text-transform: uppercase;
   text-align: center;
   letter-spacing: 2px;
   font-weight: 700;
   text-shadow: 0 0 10px rgba(0, 255, 240, 0.7);
   position: relative;
   padding-bottom: 12px;
}

/* Cyberpunk-style header underline */
.cn-project-menu h3:after {
   content: "";
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 1px;
   background: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 255, 240, 0.8) 20%,
      rgba(255, 0, 255, 0.8) 80%,
      transparent 100%
   );
}
   
/* Header glitch effect on hover */
.cn-project-menu h3:hover {
   animation: glitchText 0.5s ease forwards;
}

.cn-project-list {
   display: flex;
   flex-direction: column;
   gap: 10px;
   max-height: 300px;
   overflow-y: auto;
   scrollbar-width: none; /* Firefox */
   padding: 5px;
}
   
/* Add glowing scrollbar for webkit browsers */
.cn-project-list::-webkit-scrollbar {
   width: 4px;
   background: transparent;
}
   
.cn-project-list::-webkit-scrollbar-thumb {
   background: linear-gradient(to bottom, #00fff0, #ff00ff);
   border-radius: 2px;
   box-shadow: 0 0 8px rgba(0, 255, 240, 0.5);
}

.cn-project-item {
   color: rgba(255, 255, 255, 0.85);
   padding: 12px 16px;
   background: rgba(20, 20, 30, 0.6);
   border: 1px solid rgba(0, 255, 240, 0.2);
   border-left: 3px solid rgba(0, 255, 240, 0.4);
   border-radius: 0 4px 4px 0;
   cursor: pointer;
   position: relative;
   overflow: hidden;
   transition: none;
   font-weight: 500;
   letter-spacing: 0.5px;
   clip-path: polygon(
      0 0,
      100% 0,
      100% calc(100% - 8px),
      calc(100% - 8px) 100%,
      0 100%
   );
}

/* Animated gradient border */
.cn-project-item:before {
   content: "";
   position: absolute;
   top: -2px;
   left: -2px;
   right: -2px;
   bottom: -2px;
   z-index: -1;
   background: linear-gradient(45deg, #00fff0, #ff00ff, #00fff0);
   background-size: 200% 200%;
   opacity: 0;
   transition: opacity 0.3s ease;
}
   
/* Cyberpunk-style indicator at right edge */
.cn-project-item:after {
   content: "";
   position: absolute;
   top: 50%;
   right: 8px;
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: rgba(0, 255, 240, 0.6);
   transform: translateY(-50%) scale(0.6);
   box-shadow: 0 0 8px rgba(0, 255, 240, 0.6);
   transition: transform 0.2s ease, background 0.2s ease;
}

.cn-project-item:hover {
   background: rgba(30, 30, 45, 0.8);
   border-color: rgba(0, 255, 240, 0.4);
   border-left-color: rgba(0, 255, 240, 0.8);
   transform: translateX(5px);
   box-shadow: 
      0 0 10px rgba(0, 255, 240, 0.2),
      inset 0 0 6px rgba(0, 255, 240, 0.1);
   color: #ffffff;
}
   
/* Reveal animated gradient border */
.cn-project-item:hover:before {
   opacity: 0.4;
   animation: gradientBorder 3s ease infinite;
}
   
/* Enhance indicator */
.cn-project-item:hover:after {
   transform: translateY(-50%) scale(1);
   background: rgba(0, 255, 240, 1);
}

/* Enhance active item styling */
.cn-project-item.active {
   background: rgba(30, 40, 50, 0.9);
   border-color: rgba(0, 255, 240, 0.6);
   border-left-color: rgba(0, 255, 240, 1);
   color: #00fff0;
   box-shadow: 
      0 0 15px rgba(0, 255, 240, 0.3),
      inset 0 0 8px rgba(0, 255, 240, 0.2);
}
   
/* Active item indicator */
.cn-project-item.active:after {
   background: rgba(255, 0, 255, 0.8);
   box-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
   transform: translateY(-50%) scale(1.2);
}

/* Make only the hovered item stand out */
.cn-project-item:hover ~ .cn-project-item,
.cn-project-list:hover > .cn-project-item:not(:hover) {
   opacity: 0.6;
   transform: translateX(0);
   filter: saturate(0.7);
}

.hidden {
   display: none;
}

/* Enhanced menu animations */
@keyframes menu-appear {
   0% { opacity: 0; transform: scale(0.8) translateY(10px); }
   50% { opacity: 1; transform: scale(1.05) translateY(-5px); }
   100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Shrinking animation that targets the active icon */
@keyframes menu-shrink {
   0% { 
     opacity: 1; 
     transform: scale(1); 
   }
   100% { 
     opacity: 0; 
     transform: scale(0.1); 
   }
}

/* Animated border gradient */
@keyframes gradientBorder {
   0% { background-position: 0% 50%; }
   50% { background-position: 100% 50%; }
   100% { background-position: 0% 50%; }
}

/* Glitch text effect */
@keyframes glitchText {
   0% {
      text-shadow: 
         3px 3px 0 rgba(255, 0, 255, 0.5),
         -3px -3px 0 rgba(0, 255, 240, 0.5);
   }
   25% {
      text-shadow: 
         -3px -3px 0 rgba(255, 0, 255, 0.5),
         3px 3px 0 rgba(0, 255, 240, 0.5);
   }
   50% {
      text-shadow: 
         -3px 3px 0 rgba(255, 0, 255, 0.5),
         3px -3px 0 rgba(0, 255, 240, 0.5);
   }
   75% {
      text-shadow: 
         3px -3px 0 rgba(255, 0, 255, 0.5),
         -3px 3px 0 rgba(0, 255, 240, 0.5);
   }
   100% {
      text-shadow: 
         3px 3px 0 rgba(255, 0, 255, 0.5),
         -3px -3px 0 rgba(0, 255, 240, 0.5);
   }
}

.menu-appear {
   animation: menu-appear 0.4s var(--dock-transition-timing) forwards;
}

.menu-shrink {
   animation: menu-shrink var(--menu-close-duration) var(--menu-close-timing) forwards;
}

.cn-dock-icon[data-icon="calendar"] svg { color: #55FFFF !important; }
.cn-dock-icon[data-icon="users"] svg { color: #FF55FF !important; }
.cn-dock-icon[data-icon="dollar-sign"] svg { color: #FFFF55 !important; }
.cn-dock-icon[data-icon="check-square"] svg { color: #55FF55 !important; }
.cn-dock-icon[data-icon="message-square"] svg { color: #FF5555 !important; }
.cn-dock-icon[data-icon="sticky-note"] svg { color: #5555FF !important; }
.cn-dock-icon[data-icon="folder"] svg { color: #55FFFF !important; }
.cn-dock-icon[data-icon="music"] svg { color: #FF55FF !important; }
.cn-dock-icon[data-icon="search"] svg { color: #55FFFF !important; }
.cn-dock-icon[data-icon="clipboard"] svg { color: #55FF55 !important; }

/* ============================================
   CN: Mobile Dock Styles – Proper viewport anchoring
   ============================================ */
@media (max-width: 768px) {
    /* Dock wrapper - FIXED to real viewport bottom */
    .cn-dock-wrapper {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: transparent;
        pointer-events: none;
    }
    
    /* Main dock - visible, pinned */
    .cn-dock {
        position: relative !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        gap: 4px;
        padding: 6px 10px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
        max-width: calc(100vw - 16px);
        border-radius: 14px 14px 0 0;
        pointer-events: auto;
        background: rgba(0, 0, 0, 0.85) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    /* Always visible on mobile */
    .cn-dock:not(:hover):not(.force-open) {
        position: relative !important;
        height: auto !important;
        padding: 6px 10px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(0, 0, 0, 0.85) !important;
    }
    
    /* Dock items - compact */
    .cn-dock-item {
        padding: 4px;
        min-width: 32px;
    }
    
    /* Icons */
    .cn-dock-icon {
        width: 22px !important;
        height: 22px !important;
    }
    
    .cn-dock-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* Labels - smaller */
    .cn-dock-label {
        font-size: 8px;
        margin-top: 2px;
    }
    
    /* Always show icons on mobile */
    .cn-dock:not(:hover):not(.force-open) .cn-dock-icon {
        width: 20px !important;
        height: 20px !important;
        opacity: 1 !important;
    }
    
    .cn-dock:not(:hover):not(.force-open) .cn-dock-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Hide labels in minimized state */
    .cn-dock:not(:hover):not(.force-open) .cn-dock-label {
        display: none;
    }
    
    /* Hover menus */
    .cn-dock-menu {
        min-width: 200px;
        max-width: calc(100vw - 40px);
        bottom: 100%;
        margin-bottom: 8px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .cn-dock {
        gap: 2px;
        padding: 5px 8px;
        padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px));
    }
    
    .cn-dock-item {
        padding: 3px;
        min-width: 28px;
    }
    
    .cn-dock-icon {
        width: 18px !important;
        height: 18px !important;
    }
    
    .cn-dock-icon svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .cn-dock-label {
        font-size: 7px;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .cn-dock {
        padding: 4px 8px;
        padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
    }
    
    .cn-dock-item {
        padding: 3px;
        min-width: 28px;
    }
}