/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-main: #090d16;
    --bg-sidebar: #0b0f19;
    --bg-card: rgba(22, 30, 49, 0.6);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Neon Accents */
    --neon-cyan: #06b6d4;
    --neon-cyan-glow: rgba(6, 182, 212, 0.4);
    --neon-violet: #a855f7;
    --neon-violet-glow: rgba(168, 85, 247, 0.4);
    --neon-emerald: #10b981;
    --neon-emerald-glow: rgba(16, 185, 129, 0.4);
    --neon-amber: #f59e0b;
    --neon-amber-glow: rgba(245, 158, 11, 0.4);
    --neon-red: #ef4444;
    --neon-red-glow: rgba(239, 68, 68, 0.4);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.app-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 2rem 1.5rem;
    z-index: 10;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.brand-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    font-weight: 600;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.menu-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.menu-item.active {
    color: var(--text-primary);
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: inset 0 0 10px rgba(6, 182, 212, 0.05);
}

.menu-item i {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.menu-item.active i {
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 4px var(--neon-cyan-glow));
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.db-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    color: var(--neon-cyan);
    font-size: 0.8rem;
    font-weight: 500;
}

.db-status-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan-glow);
}

.sync-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Main Workspace */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 3rem;
}

/* ==========================================================================
   TOP NAVBAR
   ========================================================================== */
.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.navbar-left h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.current-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.google-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.google-badge.disconnected {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.google-badge.connected {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--neon-emerald);
    color: var(--neon-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.google-badge i {
    width: 16px;
    height: 16px;
}

.search-box {
    position: relative;
    width: 320px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
    background: var(--bg-card-hover);
}

/* ==========================================================================
   COMPONENTS & UTILITIES
   ========================================================================== */
/* Glassmorphism card */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-normal);
}

.glass:hover {
    border-color: var(--border-color-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
    border: 1px solid transparent;
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-violet) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color-hover);
}

.w-full { width: 100%; }

/* Colors and Glows */
.text-neon-cyan { color: var(--neon-cyan); }
.text-neon-violet { color: var(--neon-violet); }
.text-neon-emerald { color: var(--neon-emerald); }
.text-neon-amber { color: var(--neon-amber); }

/* Spacers */
.m-top-2 { margin-top: 1rem; }
.m-top-3 { margin-top: 1.5rem; }
.m-top-4 { margin-top: 2rem; }
.max-w-lg { max-width: 512px; }
.col-6 { width: 50%; }

/* Dynamic Views Panel */
.view-panel {
    flex-grow: 1;
    position: relative;
}

.view-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.view-content.active {
    display: block;
}

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

/* ==========================================================================
   1. BANDEJA DE ENTRADA (INBOX VIEW)
   ========================================================================== */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.select-premium {
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.select-premium:focus {
    border-color: var(--neon-cyan);
}

input[type="date"].select-premium {
    color-scheme: dark;
}

.task-table-container {
    display: flex;
    flex-direction: column;
}

.inbox-header-grid,
.inbox-row-grid {
    display: grid;
    grid-template-columns: 48px 1fr 120px 140px 140px 140px 120px;
    padding: 1rem 1.5rem;
    align-items: center;
    gap: 1rem;
}

.table-header-row {
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-body {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.table-row {
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    transition: var(--transition-fast);
    display: grid;
    align-items: center;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-row.completed {
    background: rgba(16, 185, 129, 0.01);
}

.table-row.completed .col-content {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Custom Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    transition: var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 6px var(--neon-cyan-glow);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--neon-emerald);
    border-color: var(--neon-emerald);
    box-shadow: 0 0 10px var(--neon-emerald-glow);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Task Content and Drive Attachments */
.col-content {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drive-attachment-card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--neon-cyan);
    text-decoration: none;
    max-width: 360px;
    transition: var(--transition-fast);
}

.drive-attachment-card:hover {
    background: rgba(6, 182, 212, 0.12);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.drive-attachment-card i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.drive-attachment-card.sheet {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--neon-emerald);
}

.drive-attachment-card.sheet:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--neon-emerald);
    box-shadow: 0 0 10px var(--neon-emerald-glow);
}

.drive-attachment-card.folder {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--neon-amber);
}

.drive-attachment-card.folder:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--neon-amber);
    box-shadow: 0 0 10px var(--neon-amber-glow);
}

/* Priority Badges */
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

.priority-badge.high {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--neon-red);
}

.priority-badge.medium {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--neon-amber);
}

.priority-badge.low {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--neon-cyan);
}

/* Action columns and icons */
.col-date input {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
}

.col-date input:hover,
.col-date input:focus {
    border-color: var(--border-color);
    background: rgba(255,255,255,0.02);
}

.col-person {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.btn-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-action.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--neon-red);
}

.btn-action.sync-google:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--neon-emerald);
}

.btn-action i {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   2. AGENDA & CALENDAR VIEW
   ========================================================================== */
.agenda-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
    height: calc(100vh - 180px);
}

.calendar-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    font-size: 1.25rem;
}

.btn-calendar-nav {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.btn-calendar-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color-hover);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(110px, 1fr);
    gap: 6px;
    flex-grow: 1;
}

.calendar-day {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.35rem;
    cursor: pointer;
    transition: var(--transition-fast);
    overflow: hidden;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
}

.calendar-day.other-month {
    opacity: 0.25;
}

.calendar-day.today {
    background: rgba(6, 182, 212, 0.03);
    border-color: rgba(6, 182, 212, 0.3);
}

.calendar-day.today .day-number {
    color: var(--neon-cyan);
    font-weight: 700;
}

.calendar-day.selected {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
}

.day-number {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.calendar-day-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.calendar-task-bar {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
}

.calendar-task-bar.high {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.calendar-task-bar.medium {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.calendar-task-bar.low {
    background: rgba(6, 182, 212, 0.12);
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.2);
}

.calendar-task-more {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: right;
    width: 100%;
    padding-right: 0.1rem;
}

.agenda-day-detail {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.agenda-detail-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.calendar-date-badge {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-violet) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.calendar-date-info h4 {
    font-size: 1.25rem;
}

.calendar-date-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   3. COLLABORATORS (COLABORADORES) VIEW STYLES
   ========================================================================== */
.collaborators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.collaborator-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.collaborator-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-violet) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
}

.collaborator-card.corporate .collaborator-avatar {
    background: linear-gradient(135deg, var(--neon-violet) 0%, var(--neon-amber) 100%);
}

.collaborator-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.collaborator-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-weight: 500;
}

.collaborator-org {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.1rem;
}

.collab-type-badge {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
}

.collab-type-badge.individual {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--neon-cyan);
}

.collab-type-badge.corporate {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--neon-violet);
}

.collaborator-stats {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    width: 100%;
    padding-top: 0.75rem;
}

.collaborator-stats strong {
    color: var(--neon-cyan);
}

.collaborator-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.25rem;
}

.collaborator-contact-info {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.collab-contact-link {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.collab-contact-link:hover {
    color: var(--neon-cyan);
}

.collab-contact-link i {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   4. TEAM FOLLOWUPS VIEW STYLES
   ========================================================================== */
.team-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 180px);
}

.team-sidebar {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.team-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.team-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.team-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.team-item.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.team-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-small {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-violet) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.team-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.team-task-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
}

.team-item.active .team-task-badge {
    background: var(--neon-emerald);
    color: white;
    box-shadow: 0 0 8px var(--neon-emerald-glow);
}

.team-detail {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.team-detail-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.team-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-violet) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.team-member-info h2 {
    font-size: 1.5rem;
}

.team-member-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    color: var(--text-muted);
    gap: 1rem;
    text-align: center;
}

.empty-state i {
    width: 48px;
    height: 48px;
    color: var(--text-secondary);
}

/* ==========================================================================
   5. RESOURCES VIEW STYLES
   ========================================================================== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.resource-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 140px;
}

.resource-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.resource-icon {
    width: 32px;
    height: 32px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--neon-amber);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon i {
    width: 16px;
    height: 16px;
    color: var(--neon-amber);
}

.resource-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.resource-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-domain {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-open-resource {
    width: 100%;
    margin-top: 1rem;
    padding: 0.4rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--neon-cyan);
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-open-resource:hover {
    background: rgba(6, 182, 212, 0.12);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan-glow);
    color: white;
}

/* ==========================================================================
   6. GOOGLE SETTINGS VIEW STYLES
   ========================================================================== */
.google-auth-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.auth-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.active {
    background: var(--neon-emerald);
    box-shadow: 0 0 10px var(--neon-emerald-glow);
}

.status-dot.inactive {
    background: var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red-glow);
}

.instructions-card {
    padding: 1.5rem;
    background: rgba(6, 182, 212, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 12px;
}

.instructions-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neon-cyan);
    margin-bottom: 0.75rem;
}

.instructions-card ol {
    margin-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    line-height: 1.5;
}

.instructions-card ol a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.instructions-card ol a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   MODAL DIALOG STYLES
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 580px;
    padding: 2rem;
    position: relative;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.35rem;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close:hover {
    color: var(--text-primary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group textarea,
.form-group input[type="text"],
.form-group input[type="date"] {
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
    resize: none;
}

.form-group textarea {
    height: 100px;
}

.form-group textarea:focus,
.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan-glow);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Animations */
.animate-slide-up {
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .animate-slide-up {
    transform: translateY(0);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.toast {
    background: rgba(22, 30, 49, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    max-width: 400px;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--neon-cyan);
}

.toast.success { border-left-color: var(--neon-emerald); }
.toast.error { border-left-color: var(--neon-red); }

.toast i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success i { color: var(--neon-emerald); }
.toast.error i { color: var(--neon-red); }

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

.toast.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(10px); }
}

/* ==========================================================================
   LOGIN SCREEN STYLES
   ========================================================================== */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
                var(--bg-dark);
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.login-logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.login-logo i {
    width: 32px;
    height: 32px;
}

.login-logo-container h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.login-logo-container p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: var(--transition-fast);
    pointer-events: none;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-icon-wrapper input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
    background: rgba(255, 255, 255, 0.04);
}

.input-icon-wrapper input:focus + i {
    color: var(--neon-cyan);
}

.logout-link {
    transition: var(--transition-fast);
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.15) !important;
}

.text-neon-red {
    color: var(--neon-red);
    filter: drop-shadow(0 0 4px var(--neon-red-glow));
}

.mobile-only {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE, TABLET & DESKTOP OPTIMIZATIONS)
   ========================================================================== */

/* 1. Mobile Layouts (Pantallas de móvil - max 768px) */
@media (max-width: 768px) {
    .app-container {
        display: flex;
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }

    /* Top Navbar adaptado a móviles */
    .top-navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.75rem;
        height: auto;
        border-bottom: 1px solid var(--border-color);
        background: rgba(13, 20, 38, 0.95);
        backdrop-filter: blur(10px);
    }

    .navbar-left {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-left h1 {
        font-size: 1.35rem;
    }

    .navbar-left p {
        display: none; /* Ocultar fecha en el título móvil */
    }

    .navbar-right {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .navbar-right .google-badge {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .navbar-right .google-badge span {
        display: none; /* Ocultar texto en móvil, dejar solo icono */
    }

    .navbar-right .search-box {
        flex-grow: 1;
        max-width: none;
    }

    .navbar-right .search-box input {
        font-size: 0.85rem;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }

    .navbar-right .btn-primary {
        padding: 0.45rem 0.75rem;
        font-size: 0.85rem;
    }

    .navbar-right .btn-primary span {
        display: none; /* Ocultar texto del botón Nueva Tarea, dejar el "+" */
    }

    /* Mostrar botón de cerrar sesión en la barra superior móvil */
    .mobile-logout-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: rgba(239, 68, 68, 0.08);
        border: 1px solid rgba(239, 68, 68, 0.15);
        cursor: pointer;
    }

    /* Barra inferior (Bottom Navigation) en móvil */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0.5rem 0;
        border-right: none;
        border-top: 1px solid var(--border-color);
        background: rgba(13, 20, 38, 0.96);
        backdrop-filter: blur(15px);
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.4);
        z-index: 1000;
    }

    .sidebar-brand,
    .sidebar-footer,
    .logout-link {
        display: none !important; /* Ocultar branding, versión de base de datos y enlace largo en menú móvil */
    }

    .sidebar-menu {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        height: 100%;
        gap: 0;
        align-items: center;
    }

    .menu-item {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.4rem 0.25rem;
        font-size: 0.62rem;
        text-align: center;
        flex: 1;
        justify-content: center;
        align-items: center;
        border: none !important;
        background: transparent !important;
    }

    .menu-item i {
        width: 18px;
        height: 18px;
    }

    .menu-item span {
        font-size: 0.6rem;
        letter-spacing: 0;
    }

    .menu-item.active {
        color: var(--neon-cyan);
        filter: drop-shadow(0 0 4px var(--neon-cyan-glow));
    }

    /* Contenido principal móvil */
    .main-content {
        height: calc(100vh - 65px);
        overflow-y: auto;
        padding-bottom: 1rem;
    }

    .view-panel {
        padding: 0.75rem;
    }

    /* Convertir tabla de Tareas a lista de Tarjetas (Cards) */
    .inbox-header-grid {
        display: none !important;
    }

    .inbox-row-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1.25rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border-color);
        margin-bottom: 0.75rem;
    }

    .inbox-row-grid > div {
        width: 100% !important;
        text-align: left !important;
    }

    .inbox-row-grid .col-check {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 0.25rem;
    }

    .inbox-row-grid .col-priority {
        display: inline-flex;
        width: auto !important;
    }

    .inbox-row-grid .col-date {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .inbox-row-grid .col-date input {
        width: 100%;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-color);
        padding: 0.35rem 0.5rem;
        border-radius: 6px;
    }

    .inbox-row-grid .col-actions {
        display: flex;
        justify-content: flex-end;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 0.75rem;
        margin-top: 0.5rem;
        gap: 0.75rem;
    }

    /* Caja de Herramientas superior en Triage */
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-group select {
        flex-grow: 1;
        max-width: 65%;
    }

    /* Cajón deslizable desde abajo (Bottom Drawer) para detalles en Agenda */
    .agenda-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        height: auto;
    }

    .calendar-card {
        padding: 1rem;
    }

    .calendar-days-grid {
        grid-auto-rows: minmax(75px, 1fr); /* Reducir altura celdas en móvil */
    }

    .calendar-task-bar {
        font-size: 0.6rem;
        padding: 0.1rem 0.25rem;
    }

    .agenda-day-detail {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 75vh;
        background: rgba(13, 20, 38, 0.98);
        backdrop-filter: blur(20px);
        z-index: 1050;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 1.5rem;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .agenda-day-detail.active {
        transform: translateY(0);
    }

    .agenda-detail-header {
        display: flex;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 1rem;
    }

    .mobile-only {
        display: flex !important;
    }

    /* Cajón deslizable desde abajo para Seguimientos */
    .team-split {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .team-sidebar {
        width: 100%;
        height: auto;
        padding: 1rem;
    }

    .team-detail {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 75vh;
        background: rgba(13, 20, 38, 0.98);
        backdrop-filter: blur(20px);
        z-index: 1050;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 1.5rem;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .team-detail.active {
        transform: translateY(0);
    }

    .team-detail-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 1rem;
        width: 100%;
    }

    /* Grillas genéricas adaptables */
    .resources-grid,
    .collaborators-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-height: none;
        overflow-y: visible;
    }

    /* Modales de formulario */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .col-6 {
        width: 100%;
    }
}

/* 2. Tablet Layouts (Pantallas de tablet - 768px a 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .app-container {
        grid-template-columns: 80px 1fr;
    }

    .sidebar {
        padding: 1.5rem 0.75rem;
        align-items: center;
    }

    .sidebar-brand {
        margin-bottom: 2rem;
        justify-content: center;
    }

    .sidebar-brand .brand-text,
    .sidebar-footer span,
    .db-status-badge span,
    .sync-status {
        display: none !important; /* Ocultar textos largos en barra lateral compacta */
    }

    .sidebar-menu span {
        display: none; /* Mostrar solo iconos en la barra lateral en tablet */
    }

    .menu-item {
        justify-content: center;
        padding: 0.85rem;
    }

    .inbox-header-grid,
    .inbox-row-grid {
        grid-template-columns: 48px 1fr 100px 140px 140px 100px;
        gap: 0.75rem;
        padding: 1rem;
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .collaborators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   PROYECTOS & DOCS VIEW STYLES
   ========================================================================== */
.col-project {
    color: var(--neon-cyan);
    font-size: 0.85rem;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.project-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.05);
    background: rgba(255, 255, 255, 0.03);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.project-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.project-card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.project-card-team {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.project-team-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
    margin-top: auto;
}

.project-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.project-status-badge.active { background: rgba(16, 185, 129, 0.1); color: var(--neon-emerald); }
.project-status-badge.on_hold { background: rgba(245, 158, 11, 0.1); color: var(--neon-amber); }
.project-status-badge.completed { background: rgba(107, 114, 128, 0.15); color: var(--text-muted); }

.project-docs-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.project-docs-count i {
    width: 14px;
    height: 14px;
}

/* Project Detail Drawer */
.project-detail {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    height: 100vh;
    background: rgba(13, 20, 38, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1050;
    border-left: 1px solid var(--border-color);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}
.project-detail.active {
    transform: translateX(0);
}
.project-detail-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.project-detail-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.detail-section h4 {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.project-docs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.project-doc-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--neon-cyan);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
}
.project-doc-item:hover {
    background: rgba(6, 182, 212, 0.05);
    border-color: var(--neon-cyan);
}
.project-team-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.project-team-member-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.drive-inputs-list input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.drive-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-checkbox-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE MODIFICATIONS FOR PROJECTS
   ========================================================================== */
@media (max-width: 768px) {
    .project-detail {
        position: fixed;
        bottom: 0;
        right: auto;
        left: 0;
        width: 100%;
        height: 75vh;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .project-detail.active {
        transform: translateY(0);
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .inbox-row-grid .col-project {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        color: var(--neon-cyan);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .inbox-header-grid,
    .inbox-row-grid {
        grid-template-columns: 48px 1fr 90px 110px 110px 110px 90px !important;
        gap: 0.75rem;
        padding: 1rem;
    }
}

.project-tag-badge {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--neon-cyan);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}
