
body,
html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    background-color: #f0f0f0;
    overflow: hidden;
} 

.dr-display {
  padding: 2px;
  margin: 2px 0;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-dark);
 }


.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    height: 60px;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    max-height: 100%;
    width: 200px;
    max-width: 200px;
}

.nav-links {
    display: flex;
    gap: 16px;
    
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.8rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
/* CSS for typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    margin: 12px 0;
    padding: 0;
    width: fit-content;
  }
  
  .typing-bubble {
    background-color: #f0f0f0;
    border-radius: 18px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  .typing-dots {
    display: flex;
    align-items: center;
  }
  
  .typing-dot {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: #9e9e9e;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.8;
    animation: typingBounce 1.4s infinite ease-in-out both;
  }
  
  .typing-dot:nth-child(1) {
    animation-delay: -0.32s;
  }
  
  .typing-dot:nth-child(2) {
    animation-delay: -0.16s;
  }
  
  @keyframes typingBounce {
    0%, 80%, 100% { 
      transform: scale(0.8);
    }
    40% { 
      transform: scale(1.2);
    }
  }
  
  /* Responsive styles */
  @media (max-width: 480px) {
    .typing-bubble {
      padding: 8px 12px;
      border-radius: 16px;
    }
    
    .typing-dot {
      height: 6px;
      width: 6px;
      margin: 0 1px;
    }
  }

/* File deletion animations and styles for mobile */
.file-item {
    position: relative;
    transition: all 0.3s ease;
}

.file-item.deleting {
    pointer-events: none;
    opacity: 0.7;
    transform: scale(0.95);
    background-color: rgba(255, 0, 0, 0.1) !important;
    border: 2px solid #ff4444;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.file-item.deleting::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 0, 0, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    z-index: 1;
}

.file-item.deleting .file-content {
    position: relative;
    z-index: 2;
}

.file-item.deleting .button-container-icons {
    opacity: 0.5;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes deleteSlideOut {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-20px) scale(0.95);
        opacity: 0.5;
    }
    100% {
        transform: translateX(-100%) scale(0.8);
        opacity: 0;
    }
}

.file-item.delete-complete {
    animation: deleteSlideOut 0.5s ease-in-out forwards;
}

/* Loading overlay for deletion */
.deletion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.deletion-overlay.active {
    opacity: 1;
    visibility: visible;
}

.deletion-spinner {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeInUp 0.3s ease;
    max-width: 90%;
}

.deletion-spinner i {
    font-size: 2rem;
    color: #ff4444;
    animation: spin 1s linear infinite;
}

.deletion-spinner p {
    margin: 15px 0 0 0;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Disable interactions during deletion */
body.deletion-in-progress {
    pointer-events: none;
    user-select: none;
}

body.deletion-in-progress * {
    pointer-events: none !important;
}

body.deletion-in-progress .deletion-overlay {
    pointer-events: auto;
}

/* Progress bar for deletion */
.deletion-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4444, #ff6666);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.file-item.deleting .deletion-progress {
    animation: progressFill 2s ease-in-out;
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    50% {
        width: 60%;
    }
    100% {
        width: 100%;
    }
}
