* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #1e1e1e;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

/* Handle link styling */
.mcard-handle-link {
  color: #4fc3f7;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.mcard-handle-link:hover {
  color: #81d4fa;
  border-bottom-color: #81d4fa;
  text-decoration: none;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #1e1e1e;
}

.header {
  background: #2d2d30;
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3e3e42;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header h1 {
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.header p {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  background: transparent;
  border: none;
  color: #cccccc;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  transition: all 0.2s;
}

.header-btn:hover {
  background: #3e3e42;
  color: white;
}

.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Three-column Finder-style layout */
.sidebar {
  width: 250px;
  background: #252526;
  border-right: 1px solid #3e3e42;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed .sidebar-header h3 {
  display: none;
}

.sidebar.collapsed .type-name {
  display: none;
}

.sidebar.collapsed .type-count {
  display: none;
}

.sidebar.collapsed .type-item {
  justify-content: center;
  padding: 10px;
}

.sidebar.collapsed .type-item-content {
  gap: 0;
}

.sidebar.collapsed .collapse-btn i {
  transform: rotate(180deg);
}

.middle-column {
  width: 350px;
  background: #1e1e1e;
  border-right: 1px solid #3e3e42;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.viewer-column {
  flex: 1;
  background: #1e1e1e;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Hide mobile back button by default */
.mobile-back-btn {
  display: none;
}

/* Chat Panel */
.chat-panel {
  width: 350px;
  background: #252526;
  border-left: 1px solid #3e3e42;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
}

.chat-panel.hidden {
  transform: translateX(100%);
}

/* Sidebar - File Types */
.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #3e3e42;
  background: #252526;
}

.sidebar-header h3 {
  font-size: 11px;
  color: #cccccc;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  font-weight: 600;
}

.collapse-btn {
  background: transparent;
  border: none;
  color: #858585;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.collapse-btn:hover {
  background: #3e3e42;
  color: #cccccc;
}

.collapse-btn i {
  transition: transform 0.3s ease;
}

.type-list {
  padding: 10px;
}

.type-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #cccccc;
  font-size: 13px;
}

.type-item:hover {
  background: #2a2d2e;
}

.type-item.active {
  background: #37373d;
  color: white;
}

.type-item-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.type-icon {
  font-size: 20px;
}

.type-name {
  font-size: 14px;
  font-weight: 500;
}

.type-count {
  font-size: 11px;
  background: #3e3e42;
  color: #858585;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.type-item.active .type-count {
  background: #007acc;
  color: white;
}

/* Apps submenu styles */
.apps-header {
  cursor: pointer;
}

.apps-submenu {
  margin-left: 12px;
  border-left: 1px solid #3e3e42;
  padding-left: 8px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.app-item {
  padding: 6px 8px !important;
  font-size: 12px !important;
  margin: 2px 0;
}

.app-item .type-icon {
  font-size: 18px !important;
}

.app-item .type-name {
  font-size: 13px !important;
  font-weight: 400 !important;
}

.app-item:hover {
  background: #2a2d2e !important;
  border-radius: 4px;
}

/* Middle Column - MCard List */
.column-header {
  padding: 12px 16px;
  border-bottom: 1px solid #3e3e42;
  background: #252526;
  flex-shrink: 0;
  position: relative;
}

.column-header h3 {
  font-size: 13px;
  color: #cccccc;
  margin-bottom: 8px;
  font-weight: 600;
}

.mcard-list {
  flex: 1;
  overflow-y: auto;
}

.mcard-item {
  padding: 8px 12px;
  border-bottom: 1px solid #2d2d30;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mcard-item:hover {
  background: #2a2d2e;
}

.mcard-item.active {
  background: #37373d;
  border-left: 2px solid #007acc;
}

.mcard-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.mcard-item-icon {
  font-size: 24px;
}

.mcard-item-info {
  flex: 1;
  min-width: 0;
}

.mcard-item-name {
  font-size: 13px;
  font-weight: 400;
  color: #cccccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mcard-item-hash {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #858585;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mcard-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #858585;
  margin-top: 4px;
}

/* Viewer Column */
.viewer-header {
  padding: 12px 16px;
  border-bottom: 1px solid #3e3e42;
  background: #252526;
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Align to top to prevent overlap */
  flex-shrink: 0;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap; /* Allow wrapping if needed */
}

.viewer-header h3 {
  font-size: 13px;
  color: #cccccc;
  font-weight: 600;
  flex: 1 1 auto; /* Allow grow and shrink */
  min-width: 300px; /* Minimum width before wrapping */
  max-width: 60%; /* Don't take more than 60% on large screens */
}

/* Hash code in viewer header - make it scrollable horizontally if needed */
.viewer-header h3 code {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #3e3e42 transparent;
}

.viewer-header h3 code::-webkit-scrollbar {
  height: 4px;
}

.viewer-header h3 code::-webkit-scrollbar-track {
  background: transparent;
}

.viewer-header h3 code::-webkit-scrollbar-thumb {
  background: #3e3e42;
  border-radius: 2px;
}

.viewer-header h3 code::-webkit-scrollbar-thumb:hover {
  background: #4e4e52;
}

.viewer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap; /* Allow wrapping if needed */
  align-items: center;
  flex-shrink: 0; /* Prevent buttons from shrinking */
  justify-content: flex-end; /* Align buttons to the right */
  flex: 0 1 auto; /* Don't grow, but can shrink */
  min-width: fit-content; /* Ensure buttons don't get cut off */
}

.viewer-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  color: #cccccc;
}

.upload-section {
  background: #1e1e1e;
  border: 2px dashed #3e3e42;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.upload-section:hover {
  border-color: #007acc;
  background: #2a2d2e;
}

.upload-section.drag-over {
  background: #2a2d2e;
  border-color: #007acc;
  transform: scale(1.01);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.upload-section h2 {
  color: #cccccc;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 500;
}

.upload-section p {
  color: #858585;
  margin-bottom: 20px;
  font-size: 13px;
}

input[type="file"] {
  display: none;
}

.btn {
  background: #007acc;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  background: #005a9e;
}

.btn:active {
  background: #004578;
}

.btn-secondary {
  background: #3e3e42;
  margin-left: 0;
}

.btn-secondary:hover {
  background: #4e4e52;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #858585;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 13px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  color: #333;
  font-size: 24px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #333;
}

.modal-body {
  color: #666;
  line-height: 1.8;
}

.modal-body pre {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  animation: slideIn 0.3s ease;
}

.toast.active {
  display: flex;
}

.toast.success {
  background: #28a745;
}

.toast.error {
  background: #dc3545;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Search Box */
.search-box {
  padding: 6px 12px;
  border: 1px solid #3e3e42;
  border-radius: 4px;
  font-size: 13px;
  width: 100%;
  background: #3c3c3c;
  color: #cccccc;
  transition: all 0.15s ease;
}

.search-box:focus {
  outline: none;
  border-color: #007acc;
  background: #1e1e1e;
}

.search-box::placeholder {
  color: #858585;
}

/* Filter Toggle Button */
.filter-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #3c3c3c;
  border: 1px solid #3e3e42;
  color: #cccccc;
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 10;
}

.filter-toggle-btn:hover {
  background: #4a4a4a;
  border-color: #007acc;
  color: #007acc;
}

.filter-toggle-btn.active {
  background: #007acc;
  border-color: #007acc;
  color: white;
}

/* Search Filters Dropdown */
.search-filters {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #252526;
  border: 1px solid #3e3e42;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.filter-section {
  margin-bottom: 12px;
}

.filter-section:last-of-type {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-size: 11px;
  color: #858585;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 600;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease;
  font-size: 13px;
  color: #cccccc;
}

.filter-option:hover {
  background: #2a2d2e;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  cursor: pointer;
  accent-color: #007acc;
}

.filter-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #3e3e42;
  display: flex;
  justify-content: flex-end;
}

.filter-clear-btn {
  background: transparent;
  border: 1px solid #3e3e42;
  color: #cccccc;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-clear-btn:hover {
  background: #3e3e42;
  border-color: #007acc;
  color: #007acc;
}

/* Chat Panel Styles */
.chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid #3e3e42;
  background: #2d2d30;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  font-size: 13px;
  color: #cccccc;
  font-weight: 600;
  margin: 0;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: #cccccc;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: all 0.15s;
}

.chat-close-btn:hover {
  color: white;
  background: #3e3e42;
  border-radius: 4px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-message.user {
  align-items: flex-end;
}

.chat-message.assistant {
  align-items: flex-start;
}

.chat-message-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-message.user .chat-message-bubble {
  background: #007acc;
  color: white;
}

.chat-message.assistant .chat-message-bubble {
  background: #2d2d30;
  color: #cccccc;
}

.chat-message-time {
  font-size: 11px;
  color: #858585;
  padding: 0 4px;
}

.chat-input-container {
  padding: 12px;
  border-top: 1px solid #3e3e42;
  background: #252526;
}

.chat-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #3e3e42;
  border-radius: 4px;
  background: #3c3c3c;
  color: #cccccc;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  min-height: 60px;
}

.chat-input:focus {
  outline: none;
  border-color: #007acc;
  background: #1e1e1e;
}

.chat-input::placeholder {
  color: #858585;
}

.chat-send-btn {
  margin-top: 8px;
  width: 100%;
  background: #007acc;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.chat-send-btn:hover {
  background: #005a9e;
}

.chat-send-btn:disabled {
  background: #3e3e42;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #3e3e42;
  border-top-color: #4fc3f7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   RESPONSIVE DESIGN - Mobile & Tablet
   ======================================== */

/* Tablet (Portrait) - 768px and below */
@media (max-width: 768px) {
  .sidebar {
    width: 200px;
  }
  
  .middle-column {
    width: 280px;
  }
  
  .header h1 {
    font-size: 14px;
  }
  
  .header-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .header-btn span {
    display: none; /* Hide button text, show only icons */
  }
  
  /* Ensure columns stay relative on tablet */
  .sidebar,
  .middle-column,
  .viewer-column {
    position: relative !important; /* Force relative on tablet */
    transform: none !important; /* Reset any transforms */
    z-index: auto !important; /* Reset z-index */
    width: auto; /* Let flexbox handle width */
    height: auto; /* Let flexbox handle height */
  }
  
  .sidebar {
    width: 200px;
  }
  
  .middle-column {
    width: 280px;
  }
}

/* Mobile (Landscape) - 640px and below */
@media (max-width: 640px) {
  .main-content {
    flex-direction: column;
    position: relative;
    overflow: hidden; /* Prevent scrolling on container */
  }
  
  /* Mobile Navigation: Show only one section at a time */
  .sidebar,
  .middle-column,
  .viewer-column {
    width: 100%;
    height: calc(100vh - 60px); /* Full height minus header */
    max-height: none;
    border-right: none;
    border-bottom: none;
    position: absolute !important; /* Force absolute positioning on mobile */
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
    background: #1e1e1e; /* Ensure solid background */
  }
  
  /* Default: Show sidebar (types) */
  .sidebar {
    transform: translateX(0) !important;
    z-index: 3 !important;
  }
  
  .middle-column {
    transform: translateX(100%) !important;
    z-index: 2 !important;
  }
  
  .viewer-column {
    transform: translateX(100%) !important;
    z-index: 1 !important;
  }
  
  /* When showing card list */
  .main-content.show-cards .sidebar {
    transform: translateX(-100%) !important;
  }
  
  .main-content.show-cards .middle-column {
    transform: translateX(0) !important;
  }
  
  /* When showing viewer */
  .main-content.show-viewer .sidebar {
    transform: translateX(-100%) !important;
  }
  
  .main-content.show-viewer .middle-column {
    transform: translateX(-100%) !important;
  }
  
  .main-content.show-viewer .viewer-column {
    transform: translateX(0) !important;
  }
  
  .header-left h1 {
    font-size: 13px;
  }
  
  .header-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .chat-panel {
    width: 100%;
    right: 0;
  }
  
  /* Add back button for mobile navigation */
  .mobile-back-btn {
    display: flex !important;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #2a2d2e;
    border-bottom: 1px solid #3e3e42;
    cursor: pointer;
    color: #4fc3f7;
    font-size: 13px;
  }
  
  .mobile-back-btn:hover {
    background: #37373d;
  }
  
  .sidebar .mobile-back-btn {
    display: none !important; /* No back button on first screen */
  }
}

/* Mobile (Portrait) - 480px and below */
@media (max-width: 480px) {
  .header {
    padding: 8px 12px;
  }
  
  .header-left {
    gap: 8px;
  }
  
  .header-left h1 {
    font-size: 12px;
  }
  
  .header-right {
    gap: 4px;
  }
  
  .header-btn {
    padding: 4px 6px;
  }
  
  .type-item,
  .mcard-item {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .viewer-header h3 {
    font-size: 13px;
  }
  
  .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ========================================
   VIEWER HEADER RESPONSIVE
   ======================================== */

/* Tablet - Simplify viewer header */
@media (max-width: 768px) {
  .viewer-header h3 > div {
    gap: 8px !important;
  }
  
  .viewer-header h3 > div > div {
    flex-wrap: wrap !important; /* Allow hash row to wrap */
  }
  
  .viewer-header h3 code {
    font-size: 10px !important;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .viewer-header button {
    font-size: 9px !important;
    padding: 2px 6px !important;
  }
  
  .viewer-actions {
    gap: 6px !important;
    flex-wrap: wrap;
  }
  
  .viewer-actions .btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
}

/* Mobile - Stack viewer header elements */
@media (max-width: 640px) {
  .viewer-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 16px !important;
  }
  
  .viewer-header h3 {
    width: 100%;
  }
  
  .viewer-header h3 > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  
  .viewer-header h3 > div > div {
    width: 100%;
  }
  
  /* Hide hash on mobile, show only short version */
  .viewer-header h3 code {
    font-size: 9px !important;
    max-width: 80px !important;
    display: inline-block;
  }
  
  /* Hash row should wrap */
  .viewer-header h3 > div > div:last-child {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }
  
  /* Simplify buttons - hide text, show icons only */
  .viewer-header h3 button {
    font-size: 0 !important; /* Hide text */
    padding: 4px 6px !important;
    min-width: auto !important;
    gap: 0 !important;
  }
  
  .viewer-header h3 button svg {
    width: 12px !important;
    height: 12px !important;
    margin: 0 !important;
  }
  
  .viewer-actions {
    width: 100%;
    justify-content: flex-start !important;
    gap: 4px !important;
  }
  
  .viewer-actions .btn {
    padding: 6px 8px !important;
    font-size: 10px !important;
  }
  
  /* Show only icons for action buttons on very small screens */
  .viewer-actions .btn i {
    margin: 0 !important;
  }
}

/* Mobile Portrait - Ultra compact */
@media (max-width: 480px) {
  .viewer-header {
    padding: 8px 12px !important;
  }
  
  .viewer-header h3 span {
    font-size: 14px !important;
  }
  
  .viewer-header h3 code {
    font-size: 8px !important;
    max-width: 60px !important; /* Show only first ~8 chars */
  }
  
  /* Hash buttons even smaller */
  .viewer-header h3 button {
    padding: 3px 5px !important;
  }
  
  .viewer-header h3 button svg {
    width: 10px !important;
    height: 10px !important;
  }
  
  .viewer-actions .btn {
    padding: 4px 6px !important;
    font-size: 0 !important; /* Hide text, show only icons */
  }
  
  .viewer-actions .btn i {
    width: 14px !important;
    height: 14px !important;
  }
}

/* Calendar View - Full Width */
.calendar-view {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1e1e1e;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.calendar-header {
  background: #2d2d30;
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3e3e42;
  flex-shrink: 0;
}

.calendar-header h2 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.calendar-container {
  flex: 1;
  overflow: hidden;
  background: white;
  position: relative;
}

.calendar-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Calendar View Animations */
.calendar-view {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Mobile Calendar View */
@media (max-width: 768px) {
  .calendar-header h2 {
    font-size: 16px;
  }
  
  .calendar-header h2 i {
    width: 18px !important;
    height: 18px !important;
  }
}
