/* Root Variables */
:root {
    --primary-color: #4f46e5;
    --accent1: #7c3aed;
    --text: #111827;
    --secondary-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'CircularXX', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
}

/* Universal Content Width Constraint */
.content {
    max-width: 1500px !important;
    margin: 0 auto !important;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Modern Landing Page Styles */
.modern-landing {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.modern-landing .navbar {
    position: relative;
    z-index: 1000;
}

.hero-section-fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    transform: translateY(-3vh);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.1rem;
    color: #7c3aed;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section {
    margin-bottom: 2rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Authentication Section Styles */
.auth-section {
    max-width: 600px;
    margin: 0 auto;
}

.auth-title {
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.auth-options {
    display: flex;
    justify-content: center;
}

.auth-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #4a5568;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    border-color: #cbd5e0;
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.auth-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Individual provider styling */
.auth-btn-email {
    border-color: #e2e8f0;
}

.auth-btn-email:hover {
    border-color: #3182ce;
    background: #ebf8ff;
}

.auth-btn-email .auth-icon {
    color: #3182ce;
}

.auth-btn-google:hover {
    border-color: #4285f4;
    background: #f7faff;
}

.auth-btn-microsoft:hover {
    border-color: #0078d4;
    background: #f3f9fd;
}

.auth-btn-apple {
    color: #1d1d1f;
}

.auth-btn-apple:hover {
    border-color: #1d1d1f;
    background: #f5f5f7;
    color: #1d1d1f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-btn {
        padding: 1rem 0.5rem;
        min-height: 100px;
    }
    
    .auth-icon {
        width: 20px;
        height: 20px;
    }
    
    .auth-text {
        font-size: 0.8rem;
    }
    
    .auth-title {
        font-size: 1.1rem;
    }
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: white;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.feature-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.feature-card p {
    color: #4a5568;
    margin-bottom: 0;
}

/* Logo Styles */
.logo-nav {
    width: 32px;
    height: 32px;
}

.logo-hero {
    width: 120px;
    height: 120px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Top Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dashboard Styles */
.dashboard-container {
    height: 100vh;
    background: #f8fafc;
    overflow: hidden;
}

.dashboard-content {
    height: calc(100vh - 70px);
    padding: 0;
    overflow: hidden;
}

/* Chat Panel Styles */
.chat-panel {
    background: white;
    border-right: 1px solid #e5e7eb;
    height: 100%;
    overflow: hidden;
}

.chat-container {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.chat-header h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.chat-input-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.loading-indicator {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: var(--border-radius);
}

/* Chat Window Styles */
.chat-window {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 420px;
  max-width: calc(100vw - 40px);
  height: 600px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(100%) scale(0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.chat-window.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(236,72,153,.05));
  border-radius: 16px 16px 0 0;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.chat-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.chat-body::-webkit-scrollbar {
  width: 6px;
}

.chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: relative;
}

.msg.you {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.msg .avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  min-height: 32px;
  max-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  flex: 0 0 32px;
  font-size: 14px;
  align-self: flex-start;
}

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

.msg .orbit-avatar {
  background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(236,72,153,.18));
  border: none;
}

.msg .bubble {
  width: 280px;
  max-width: 280px;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  word-wrap: break-word;
  flex: 0 0 auto;
}

.msg.you .bubble {
  background: var(--accent1);
  color: var(--text);
  border-color: var(--accent1);
}

.msg.system .bubble {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.3);
  color: var(--text);
}

.platform-indicator {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.chat-input {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
  border-radius: 0 0 16px 16px;
}

.chat-input input {
  flex: 1;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
  font-size: 14px;
  max-width: 280px;
}

.chat-input input:focus {
  border-color: var(--accent1);
}

.chat-input button {
  padding: 6px 14px;
  background: var(--accent1);
  color: #0b1220;
  border: none;
  border-radius: 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.chat-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(236,72,153,.18));
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.chat-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .chat-window {
    width: calc(100vw - 20px);
    height: 75vh;
    bottom: 10px;
    right: 10px;
  }
  
  .chat-fab {
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
  }
}

/* Global Avatar Styles */
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(167,139,250,.35), rgba(244,114,182,.28));
  border: 1px solid rgba(255,255,255,.22);
  margin: auto;
  overflow: hidden;
  box-sizing: border-box;
}

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

/* Category Dropdown Styles */
.category-dropdown {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

.category-dropdown option {
  background: var(--bg) !important;
  color: var(--text) !important;
  padding: 8px 12px;
}

/* Task Board Styles */
.task-board {
    background: #f8fafc;
    height: 100%;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
}

.task-board-content {
    height: 100%;
    overflow-y: scroll;
    padding-right: 10px;
}

/* Custom Scrollbar for Post-it Section */
.task-board-content::-webkit-scrollbar {
    width: 8px;
}

.task-board-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.task-board-content::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.task-board-content::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 6px;
    background: var(--primary-color);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.zoom-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.task-board-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.task-board-header h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-section {
    margin-bottom: 2rem;
}

.category-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 250px));
    gap: 0.75rem;
    justify-content: start;
}



.task-categories {
    transition: transform 0.3s ease;
}

/* Post-it Note Styles with Category-Based Coloring */
.post-it {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    position: relative;
    min-width: 200px;
    min-height: 110px;
}

/* Dynamic category colors - applied via JavaScript */
.post-it {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-left: 4px solid #6b7280;
}

/* Completed state - muted versions */
.post-it.completed {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.post-it {
    position: relative;
    user-select: none;
}

.post-it * {
    transform: none !important;
}

.post-it *:active {
    transform: none !important;
}

.post-it:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-it:hover .edit-icon {
    opacity: 1;
}

.edit-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    font-size: 12px;
    color: #6b7280;
    z-index: 5;
}

.post-it.editing .edit-icon {
    display: none;
}

.edit-icon:hover {
    background: #f3f4f6;
    color: #4f46e5;
}

.task-content {
    transition: background-color 0.2s ease;
    min-height: 80px;
}

.edit-form {
    display: none;
    padding: 8px 0;
}

.edit-form.active {
    display: block;
}

.post-it.editing .task-content {
    display: none;
}

.edit-textarea {
    width: 100%;
    border: 2px solid #4f46e5;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
    resize: none;
    flex: 1;
    min-height: 80px;
    background: white;
    outline: none;
    transform: none !important;
}

.edit-textarea:active,
.edit-textarea:focus {
    transform: none !important;
    border: 2px solid #4f46e5;
}

.edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.post-it.editing {
    border: 2px solid #4f46e5;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
}

/* Lock grid during edit mode */
.task-grid:has(.editing) .post-it:not(.editing) {
    pointer-events: none;
}

.edit-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.edit-btn:active {
    transform: none !important;
}

.save-btn {
    background: #10b981;
    color: white;
}

.save-btn:hover {
    background: #059669;
}

.cancel-btn {
    background: #6b7280;
    color: white;
}

.cancel-btn:hover {
    background: #4b5563;
}

.task-card.editing {
    border: 2px solid #007bff !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
}

.task-card.editing .task-content {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Card Creation Animation */
.post-it.creating {
    background: linear-gradient(45deg, #e5e7eb, #f3f4f6);
    background-size: 200% 200%;
    animation: gradientShimmer 1.5s ease-in-out infinite;
}

.post-it.creating .task-content {
    opacity: 0.3;
}

.post-it.creating .placeholder-text {
    animation: pulse 1.5s ease-in-out infinite;
    color: #6b7280;
    font-style: italic;
}

.post-it.newly-created {
    animation: highlightNew 2s ease-out;
}

@keyframes gradientShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes highlightNew {
    0% {
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.6);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.3);
    }
    100% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

.post-it.completed {
    opacity: 0.7;
    background: #f3f4f6 !important;
}

.post-it.completed .task-text {
    text-decoration: line-through;
    color: #6b7280;
}

.task-content {
    margin-bottom: 0.5rem;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.task-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.task-badges {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.task-badges .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.task-text {
    font-size: 0.9rem;
    font-weight: 400;
    color: #4a5568;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.task-reminder {
    color: #6b7280;
    font-size: 0.875rem;
    display: block;
    margin-top: 0.5rem;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.task-actions .btn {
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .hero-section-fullscreen {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .logo-hero {
        width: 80px;
        height: 80px;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .features-section {
        padding: 3rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .dashboard-content {
        height: auto;
    }
    
    .chat-panel {
        height: auto;
        min-height: 50vh;
    }
    
    .task-board {
        height: calc(100vh - 80px);
        min-height: calc(100vh - 80px);
    }
    
    .task-board-content {
        height: 100%;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .task-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .task-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .post-it {
        padding: 1rem;
        transform: none !important;
    }
    
    .post-it:hover {
        transform: translateY(-3px);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

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

/* Custom Scrollbar */
.chat-panel::-webkit-scrollbar,
.task-board::-webkit-scrollbar,
.chat-body::-webkit-scrollbar {
    width: 4px;
}

.chat-panel::-webkit-scrollbar-track,
.task-board::-webkit-scrollbar-track,
.chat-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.chat-panel::-webkit-scrollbar-thumb,
.task-board::-webkit-scrollbar-thumb,
.chat-body::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.3);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.chat-panel::-webkit-scrollbar-thumb:hover,
.task-board::-webkit-scrollbar-thumb:hover,
.chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.6);
}

/* Navbar Customization */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
}

/* Button Enhancements */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #4338ca;
    border-color: #4338ca;
    transform: translateY(-1px);
}

.btn-success:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Override hover effects only during edit mode */
.post-it.editing .btn:hover {
    transform: none !important;
}

/* Badge Styling */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
}

/* Custom category colors */
.text-pink {
    color: #ec4899 !important;
}

.text-purple {
    color: #8b5cf6 !important;
}

/* Enhanced category titles */
.category-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #e5e7eb;
}

.category-title i {
    font-size: 1.1rem;
}

/* Post-it improvements */
.post-it {
    background: #fef3c7;
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    position: relative;
}

/* Onboarding Styles */
.onboarding-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.onboarding-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.logo-onboarding {
    width: 80px;
    height: 80px;
    animation: float 3s ease-in-out infinite;
}

.onboarding-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.onboarding-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.onboarding-card .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.onboarding-card .form-control, 
.onboarding-card .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.onboarding-card .form-control:focus, 
.onboarding-card .form-select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.onboarding-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.onboarding-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Responsive onboarding */
@media (max-width: 768px) {
    .onboarding-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .onboarding-title {
        font-size: 1.75rem;
    }
    
    .logo-onboarding {
        width: 60px;
        height: 60px;
    }
}

/* Welcome Screen Styles */
.welcome-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    padding: 2rem 0;
    overflow-y: auto;
}

.welcome-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.logo-welcome {
    width: 100px;
    height: 100px;
    animation: float 3s ease-in-out infinite;
}

.welcome-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.welcome-tagline {
    color: #64748b;
    font-size: 1.25rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Benefits Carousel */
.benefit-slide {
    text-align: center;
    padding: 2rem;
}

.benefit-icon {
    font-size: 3rem;
    color: #7c3aed;
    margin-bottom: 1rem;
    display: block;
}

.benefit-slide h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.benefit-slide p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Examples Section */
.examples-section {
    margin-top: 0;
}

.examples-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a202c;
    text-align: center;
}

.example-slide {
    padding: 1.5rem;
}

.example-category {
    text-align: center;
    margin-bottom: 2rem;
}

.example-icon {
    font-size: 2.5rem;
    color: #7c3aed;
    margin-bottom: 0.75rem;
    display: block;
}

.example-category h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.example-list {
    max-width: 600px;
    margin: 0 auto;
}

.example-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #7c3aed;
    transition: transform 0.2s ease;
}

.example-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.example-text {
    display: block;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.example-type {
    display: inline-block;
    background: #7c3aed;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Carousel Customization */
.carousel-indicators {
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    border: none;
    background-color: #cbd5e1;
    opacity: 0.5;
}

.carousel-indicators button.active {
    background-color: #7c3aed;
    opacity: 1;
}

.carousel-inner {
    border-radius: 10px;
    overflow: hidden;
}

/* Get Started Button */
.get-started-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.get-started-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Responsive Welcome */
@media (max-width: 768px) {
    .welcome-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .welcome-title {
        font-size: 2.25rem;
    }
    
    .welcome-tagline {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .logo-welcome {
        width: 80px;
        height: 80px;
    }
    
    .benefit-slide {
        padding: 1.5rem;
    }
    
    .benefit-icon {
        font-size: 2.5rem;
    }
    
    .example-icon {
        font-size: 2rem;
    }
    
    .examples-title {
        font-size: 1.5rem;
    }
}

/* Dashboard Fullscreen Chat Styles */
.fullscreen-chat-container {
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding-top: calc(8vh);
}

.welcome-logo {
    width: 100px;
    height: 100px;
    opacity: 0.9;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.welcome-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    max-width: 600px;
}

.fullscreen-chat-input {
    width: 100%;
    max-width: 700px;
}

.fullscreen-textarea {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 150px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.fullscreen-textarea:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    outline: none;
}

.fullscreen-textarea::placeholder {
    color: #94a3b8;
    font-style: italic;
}

/* Dashboard Split Screen Improvements */
.chat-panel {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.chat-container {
    padding: 1.5rem;
    height: 100%;
}

.chat-header h5 {
    color: #1e293b;
    font-weight: 600;
}

.chat-input {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    resize: vertical;
    min-height: 80px;
}

.chat-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.task-board {
    padding: 1.5rem;
    background: white;
}

.task-board-header h5 {
    color: #1e293b;
    font-weight: 600;
}

@media (max-width: 576px) {
    .fullscreen-chat-container {
        padding: 1rem;
        height: calc(100vh - 70px);
        padding-top: calc(5vh);
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .welcome-logo {
        width: 80px;
        height: 80px;
    }
    
    .fullscreen-textarea {
        padding: 1rem;
        font-size: 1rem;
        min-height: 120px;
    }
    
    .welcome-card {
        padding: 1.5rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .benefit-slide h3 {
        font-size: 1.25rem;
    }
    
    .example-item {
        padding: 0.875rem 1rem;
    }
    
    .example-text {
        font-size: 0.9rem;
    }
}

/* Carousel-based Onboarding Flow */
.onboarding-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.onboarding-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    min-height: 80vh;
}

#onboardingCarousel .carousel-item {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

#onboardingCarousel .carousel-item:not(.active) {
    display: none;
}

#onboardingCarousel .carousel-item.active {
    display: flex;
}



#onboardingCarousel .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#onboardingCarousel .carousel-item {
    position: relative;
    width: 100%;
}

/* Welcome styles for landing page features */
.features-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
}

.features-section .benefit-slide {
    text-align: center;
    padding: 2rem;
}

.features-section .benefit-icon {
    font-size: 3rem;
    color: #7c3aed;
    margin-bottom: 1rem;
    display: block;
}

.features-section .benefit-slide h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.features-section .benefit-slide p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.features-section .examples-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a202c;
    text-align: center;
}

.features-section .example-slide {
    padding: 1.5rem;
}

.features-section .example-category {
    text-align: center;
    margin-bottom: 2rem;
}

.features-section .example-icon {
    font-size: 2.5rem;
    color: #7c3aed;
    margin-bottom: 0.75rem;
    display: block;
}

.features-section .example-category h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.features-section .example-list {
    max-width: 600px;
    margin: 0 auto;
}

.features-section .example-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #7c3aed;
    transition: transform 0.2s ease;
}

.features-section .example-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.features-section .example-text {
    display: block;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.features-section .example-type {
    display: inline-block;
    background: #7c3aed;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Responsive adjustments for landing page */
@media (max-width: 768px) {
    .features-section .section-title {
        font-size: 2rem;
    }
    
    .features-section .benefit-slide {
        padding: 1.5rem;
    }
    
    .features-section .benefit-icon {
        font-size: 2.5rem;
    }
    
    .features-section .example-icon {
        font-size: 2rem;
    }
    
    .features-section .examples-title {
        font-size: 1.5rem;
    }
}

/* Tag Management Styles */
.memory-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.memory-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.memory-tag.clickable {
    cursor: pointer;
    transition: transform 0.1s ease;
}

.memory-tag.clickable:hover {
    transform: scale(1.05);
}

/* Memory chip and filter styles */
.memory-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.memory-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent1);
    transform: translateY(-1px);
}

.memory-chip.active {
    background: var(--accent1);
    color: #0b1220;
    border-color: var(--accent1);
}

.memory-name {
    color: inherit;
    font-weight: inherit;
}

.memory-icon {
    font-size: 1rem;
}

.memory-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.memory-chip.active .memory-count {
    background: rgba(0, 0, 0, 0.2);
    color: #0b1220;
}

.memory-tag.removable .remove-tag {
    margin-left: 4px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
}

.memory-tag.removable .remove-tag:hover {
    color: #d32f2f;
}

.tag-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.8rem;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-btn:hover {
    background: rgba(0,0,0,0.1);
    color: #333;
}

.tag-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.tag-modal {
    background: white;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

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

.tag-modal-header h5 {
    margin: 0;
    color: #1a202c;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9ca3af;
    margin-left: auto;
}

.btn-close:hover {
    color: #6b7280;
}

.tag-modal-body {
    padding: 1.5rem;
}

.tag-list {
    min-height: 40px;
    padding: 8px;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tag-list:empty::after {
    content: "No tags";
    color: #9ca3af;
    font-size: 0.8rem;
}

.create-tag-section {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Preset Tags Grid */
.preset-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: #f3f4f6;
    border-radius: 8px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
}

.preset-tag-btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}

.preset-tag-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--bs-btn-hover-bg) !important;
}

/* Custom Tag Form */
.custom-tag-form {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 0.75rem;
}

/* Emoji Selector */
.emoji-selector {
    position: relative;
}

.emoji-btn {
    width: 100%;
    height: 38px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-picker {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1070;
    max-height: 200px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
}

.emoji-option {
    border: none;
    background: none;
    font-size: 20px;
    padding: 5px;
    margin: 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.emoji-option:hover {
    background-color: #f3f4f6;
}

/* Settings Page Styles */
.settings-section {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

.settings-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    color: #374151;
    font-weight: 600;
    margin-bottom: 1rem;
}

.setting-item {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Card Styling */
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1f2937;
    color: #f9fafb;
}

body.dark-mode .navbar-dark {
    background-color: #111827 !important;
}

body.dark-mode .card {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

body.dark-mode .card-header {
    background-color: #4b5563 !important;
    border-color: #6b7280;
}

body.dark-mode .form-control {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #f9fafb;
}

body.dark-mode .form-control:focus {
    background-color: #4b5563;
    border-color: #8b5cf6;
    color: #f9fafb;
}

body.dark-mode .setting-item {
    background-color: #4b5563;
    border-color: #6b7280;
}

body.dark-mode .section-title {
    color: #f9fafb;
}

body.dark-mode .alert-info {
    background-color: #1e40af;
    border-color: #3b82f6;
    color: #dbeafe;
}

body.dark-mode .alert-success {
    background-color: #166534;
    border-color: #22c55e;
    color: #dcfce7;
}

/* Dashboard Cards Grid Layout */
.section.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Also apply to .cards class for broader compatibility */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Responsive adjustments for cards */
@media (max-width: 992px) {
    .section.cards,
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .section.cards,
    .cards {
        grid-template-columns: 1fr;
    }
}

body.dark-mode .dropdown-menu {
    background-color: #374151;
    border-color: #4b5563;
}

body.dark-mode .dropdown-item {
    color: #f9fafb;
}

body.dark-mode .dropdown-item:hover {
    background-color: #4b5563;
    color: #f9fafb;
}

body.dark-mode .dropdown-divider {
    border-color: #6b7280;
}

body.dark-mode .modal-content {
    background-color: #374151;
    color: #f9fafb;
}

body.dark-mode .modal-header {
    border-color: #4b5563;
}

body.dark-mode .modal-footer {
    border-color: #4b5563;
}

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1100;
    transition: all 0.3s ease;
}

.toast-notification.success {
    background-color: #10b981;
}

.toast-notification.error {
    background-color: #ef4444;
}

/* Category Icon Styles */
.category-icon-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.category-icon-emoji {
    font-size: 1.2rem;
    margin-right: 0.4rem;
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

/* Compact text styles for memory cards */
.post-it .task-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #374151;
    line-height: 1.2;
}

.post-it .task-text {
    font-size: 0.75rem;
    line-height: 1.3;
    color: #374151;
    margin: 0;
}

.post-it .task-badges {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.post-it .task-badges .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
}

.post-it .task-actions {
    margin-top: 0.4rem;
}

/* Dark mode category icons */
body.dark-mode .category-icon-emoji {
    background: rgba(0, 0, 0, 0.2);
}

/* Profile picture styles */
.profile-pic {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

/* Navigation styling improvements */
.navbar-light .navbar-nav .nav-link {
    color: #4a5568 !important;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #2d3748 !important;
}

.navbar-light .navbar-brand {
    color: #2d3748 !important;
    font-weight: 600;
}

/* Ensure good contrast on light navbar */
.navbar-light {
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Enhanced notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounceInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    60% {
        transform: translateX(-10px);
        opacity: 1;
    }
    80% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes fadeOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.custom-notification,
.orbit-notification {
    animation: slideIn 0.3s ease-out;
}

/* Delete Modal Styling */
.delete-modal-content {
    border: none;
    border-radius: 12px;
    background: #fafafa;
    color: #374151;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.delete-modal-header {
    background: white;
    border-bottom: 1px solid #f3f4f6;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.delete-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.delete-icon-container {
    width: 32px;
    height: 32px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fecaca;
    flex-shrink: 0;
}

.delete-icon {
    font-size: 0.875rem;
    color: #dc2626;
}

.delete-modal-title {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.delete-modal-close {
    color: #9ca3af;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.875rem;
}

.delete-modal-close:hover {
    color: #6b7280;
}

.delete-modal-body {
    padding: 1rem 1.5rem;
    text-align: center;
    background: white;
}

.delete-message {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
}

.delete-modal-footer {
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.delete-cancel-btn {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.delete-cancel-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.delete-confirm-btn {
    background: #dc2626;
    border: 1px solid #dc2626;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.delete-confirm-btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: white;
}

/* Welcome page layout for onboarding slide 2 */
.welcome-page-layout {
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    gap: 0;
}

.welcome-text-top {
    text-align: center;
    flex-shrink: 0;
    margin: 0;
    padding: 1rem 0 0.5rem 0;
}

.welcome-text-top .welcome-title {
    font-size: 5vw;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.1;
}

.welcome-text-top .welcome-tagline {
    font-size: 3vw;
    color: #6b7280;
    margin: 0.25rem 0 0 0;
    line-height: 1.2;
}

.demo-logo-container {
    flex: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
}

.logo-demo {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.next-button-bottom {
    flex-shrink: 0;
    margin: 0;
    padding: 0.5rem 0 1rem 0;
}

.next-button-bottom .btn {
    font-size: 3vw;
    padding: 0.5rem 1.5rem;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-text-top .welcome-title {
        font-size: 7vw;
    }
    
    .welcome-text-top .welcome-tagline {
        font-size: 4vw;
    }
    
    .next-button-bottom .btn {
        font-size: 4.5vw;
        padding: 0.4rem 1.2rem;
    }
}

@media (min-width: 1200px) {
    .welcome-text-top .welcome-title {
        font-size: 3rem;
    }
    
    .welcome-text-top .welcome-tagline {
        font-size: 1.5rem;
    }
    
    .next-button-bottom .btn {
        font-size: 1.2rem;
        padding: 0.6rem 2rem;
    }
}

/* Collections page mobile responsive button */
.new-collection-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.new-collection-btn:hover {
    background: var(--panel-strong);
    border-color: rgba(255,255,255,.2);
}

.new-collection-btn .btn-icon {
    display: none;
}

.new-collection-btn .btn-text {
    display: inline;
}

/* Mobile responsive: Convert to icon-only on mobile ≤480px */
@media (max-width: 480px) {
    .new-collection-btn {
        min-width: 40px;
        padding: 8px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .new-collection-btn .btn-text {
        display: none;
    }
    
    .new-collection-btn .btn-icon {
        display: inline;
        font-size: 18px;
        font-weight: bold;
    }
}

/* Consistent Stats Styling */
/* Using purple color scheme from background gradient: #667eea to #764ba2 */

/* Scoped stats styling for dashboard cards */
.cards .stat-number {
    font-size: 24px !important;
    font-weight: 700;
    color: #a78bfa !important;
    line-height: 1.2;
    margin: 0;
    display: block;
    text-align: center;
}

.cards .stat-label {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
    margin: 0 0 12px 0;
    display: block;
    text-align: left;
}

/* Section headings style (for "Reminders for Today" and "Recent memories") */
.section-heading {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
    margin: 0 0 16px 0;
    display: block;
    text-align: left;
}

/* Scoped stats styling for collection stats bars */
.collection-stats-bar .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #764ba2;
    line-height: 1.2;
    margin: 0;
    display: block;
}

.collection-stats-bar .stat-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin: 4px 0 0 0;
    display: block;
    opacity: 0.8;
}

/* Stats container styling */
.stats-item {
    text-align: center;
    padding: 16px 12px;
}

/* Responsive adjustments for stats */
@media (max-width: 768px) {
    .cards .stat-number {
        font-size: 20px;
    }
    
    .collection-stats-bar .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .cards .stat-number {
        font-size: 18px;
    }
    
    .collection-stats-bar .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .stats-item {
        padding: 12px 8px;
    }
}
/* Fix select element styling for dark theme - Global */
select {
  background: var(--bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  padding: 8px 12px;
  border-radius: 8px;
}

select option {
  background: var(--bg) !important;
  color: var(--text) !important;
  padding: 8px 12px !important;
}

select option:hover,
select option:focus,
select option:checked {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text) !important;
}
