/* -------------------------------------------------------------
 * ROTINA+ | GESTÃO DE PROJETOS - PREMIUM KANBAN DESIGN SYSTEM
 * ------------------------------------------------------------- */

/* Define variables for dynamic accent themes */
:root {
    /* Color Theme Defaults (Purple Theme) */
    --accent-h: 255;
    --accent-s: 70%;
    --accent-l: 60%;
    
    /* Global Color System (Premium Dark Theme) */
    --bg-app: #0c0d12;
    --bg-header: #121319;
    --bg-column: rgba(24, 25, 34, 0.65);
    --bg-card: #1c1d26;
    --bg-card-hover: #242532;
    --bg-modal: #15161f;
    --bg-modal-overlay: rgba(8, 9, 12, 0.85);
    --bg-input: #1b1c24;
    --bg-tab-active: rgba(255, 255, 255, 0.08);
    
    /* Borders & Dividers */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-focus: rgba(255, 255, 255, 0.15);
    
    /* Text Color Scheme */
    --text-primary: #f1f1f4;
    --text-secondary: #8c8e9d;
    --text-muted: #5e606f;
    --text-danger: #ff4a5a;
    --bg-danger-alpha: rgba(255, 74, 90, 0.1);
    
    /* Derived Colors */
    --accent-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --accent-hover: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 8%));
    --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.2);
    --accent-light: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.08);
    
    /* Structural tokens */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 15px var(--accent-glow);
    
    /* Font Outfit */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    font-size: 14px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Typography and common resets */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--accent-hover);
}
button {
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
input, textarea, select {
    color: inherit;
    font-family: inherit;
}

/* Utilities */
.mt-4 { margin-top: 16px; }
.w-100 { width: 100%; }
.text-danger { color: var(--text-danger) !important; }

/* -------------------------------------------------------------
 * 1. LAYOUT PARTS
 * ------------------------------------------------------------- */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.app-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

/* Header Left: Back Button & Title Selector */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}
.btn-back:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

.board-title-container {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.board-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.btn-board-selector {
    color: var(--text-secondary);
    padding: 4px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-board-selector:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Header Right: Navigation Links */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}
.header-action-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}
.header-action-btn svg {
    opacity: 0.8;
}

/* -------------------------------------------------------------
 * 2. SUB NAVIGATION (TABS)
 * ------------------------------------------------------------- */
.sub-nav {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    height: 48px;
    display: flex;
    align-items: center;
}

.tabs-container {
    display: flex;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 3px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tab-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}
.tab-btn.active {
    color: var(--text-primary);
    background-color: var(--bg-tab-active);
    box-shadow: var(--shadow-sm);
}
.tab-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* -------------------------------------------------------------
 * 3. MAIN WORK AREA & KANBAN LAYOUT
 * ------------------------------------------------------------- */
.main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.tab-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}
.tab-content.active {
    opacity: 1;
    pointer-events: auto;
}

/* Board Scrolling Viewport */
.board-scroll-container {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px;
}

.board-columns-wrapper {
    display: flex;
    gap: 16px;
    height: 100%;
    align-items: flex-start;
    padding-bottom: 10px;
}

/* 4. KANBAN COLUMN */
.kanban-column {
    background-color: var(--bg-column);
    backdrop-filter: blur(8px);
    width: 280px;
    max-height: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.kanban-column.drag-over {
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(var(--accent-h), 20%);
}

.column-header {
    padding: 16px 14px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Left Accent Line */
.column-indicator {
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background-color: var(--accent-color);
}

.column-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 6px;
    overflow: hidden;
    flex: 1;
}

.column-drag-handle {
    cursor: grab;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}
.column-drag-handle:active {
    cursor: grabbing;
}

.column-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.column-count-badge {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-column-options {
    color: var(--text-secondary);
    padding: 4px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
}
.btn-column-options:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Column Cards List Container */
.cards-container {
    padding: 4px 10px 10px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 50px;
}

/* Card Button "+ Adicionar cartão" */
.btn-add-card {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    margin: 4px 10px 10px;
    border: 1px dashed var(--border-color);
    justify-content: center;
}
.btn-add-card:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color-focus);
}

/* Special Button to Add Columns at the Right */
.btn-add-column-wrapper {
    width: 280px;
    height: 54px;
    flex-shrink: 0;
}
.btn-add-column {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background-color: rgba(24, 25, 34, 0.35);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}
.btn-add-column:hover {
    background-color: var(--bg-column);
    color: var(--text-primary);
    border-color: var(--accent-color);
}

/* -------------------------------------------------------------
 * 5. KANBAN CARD ELEMENT
 * ------------------------------------------------------------- */
.card-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    cursor: pointer;
    position: relative;
    user-select: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card-item:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-color-focus);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Dragging visual overrides */
.card-item.dragging {
    opacity: 0.4;
    border-style: dashed;
    border-color: var(--accent-color);
    box-shadow: none;
    transform: scale(0.96);
}

.card-item-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 8px;
    word-break: break-word;
}

.card-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
}

.card-priority-tag {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.card-priority-tag.low { color: #5cb85c; }
.card-priority-tag.medium { color: #f0ad4e; }
.card-priority-tag.high { color: #d9534f; }

.card-date-badge {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(255, 255, 255, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
}
.card-date-badge.overdue {
    color: var(--text-danger);
    background-color: var(--bg-danger-alpha);
}

/* Drag placeholder helper */
.drag-placeholder {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1.5px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    height: 60px;
    margin: 4px 0;
    transition: height 0.2s ease;
}

/* -------------------------------------------------------------
 * 6. MODALS SYSTEM (GLASSMORPHISM)
 * ------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-modal-overlay);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background-color: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    box-shadow: var(--shadow-lg);
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-backdrop.open .modal-window {
    transform: scale(1);
}

/* Window size classes */
.modal-window.size-small { width: 420px; }
.modal-window.size-medium { width: 560px; }
.modal-window.size-large { width: 720px; }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
}
.modal-title-wrapper h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    font-size: 24px;
    color: var(--text-secondary);
    line-height: 1;
    height: 28px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.modal-close:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Modal Inner Navigation Tabs */
.modal-tabs {
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    background-color: rgba(0, 0, 0, 0.1);
}

.modal-tab-btn {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    border-bottom: 2px solid transparent;
}
.modal-tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}
.modal-tab-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* Modal Body */
.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}
.modal-body.scrollable {
    max-height: 60vh;
}

.modal-tab-content {
    display: none;
}
.modal-tab-content.active {
    display: block;
}

/* Form Controls */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

textarea.form-control {
    resize: vertical;
    line-height: 1.5;
}
.rows-3 { height: 80px; }
.rows-5 { height: 120px; }
.rows-8 { height: 180px; }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.code-font {
    font-family: var(--font-mono);
    font-size: 12px !important;
}

/* Form Action Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}
.form-actions.border-top {
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}
.form-actions.flex-justify {
    justify-content: space-between;
}

/* Buttons style */
.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
}
.btn-secondary:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-danger {
    background-color: var(--text-danger);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
}
.btn-danger:hover {
    background-color: #e03e4d;
}

.btn-danger-outline {
    background-color: transparent;
    border: 1px solid var(--text-danger);
    color: var(--text-danger);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-danger-outline:hover {
    background-color: var(--bg-danger-alpha);
}

/* -------------------------------------------------------------
 * 7. SPECIAL FIELDS & DETAIL MODAL CUSTOMS
 * ------------------------------------------------------------- */

/* Card details modal specific header */
.card-modal-header {
    padding: 16px 24px;
}
.card-icon-accent {
    width: 4px;
    height: 24px;
    background-color: var(--accent-color);
    border-radius: 2px;
}
.card-title-edit-container {
    flex: 1;
    display: flex;
    align-items: center;
    margin-right: 20px;
}
.card-title-input {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    padding: 2px 8px;
    width: 100%;
    outline: none;
}
.card-title-input:hover {
    border-color: var(--border-color);
}
.card-title-input:focus {
    border-color: var(--accent-color);
    background-color: var(--bg-input);
}

.deadline-display {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 13px;
    color: var(--text-secondary);
}

.tab-intro {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Danger Zone Cards (Perigo Tab) */
.danger-zone {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.danger-action-card {
    background-color: rgba(255, 74, 90, 0.02);
    border: 1px solid rgba(255, 74, 90, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.danger-info h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.danger-info p {
    color: var(--text-secondary);
    font-size: 12px;
}

/* User avatar item (dummy view in settings) */
.user-list {
    margin-top: 12px;
}
.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
}
.user-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-info {
    flex: 1;
}
.user-name {
    font-size: 13px;
    font-weight: 600;
}
.user-email {
    font-size: 11px;
    color: var(--text-secondary);
}
.badge {
    background-color: var(--accent-light);
    color: var(--accent-color);
    border: 1px solid rgba(var(--accent-h), 20%);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}
.invite-box {
    margin-top: 14px;
    display: flex;
    gap: 8px;
}
.tip-text {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
}
.settings-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* Color Circle Selection Elements */
.color-selector-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.color-option-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    background-color: var(--color-val);
    position: relative;
}
.color-option-circle:hover {
    transform: scale(1.15);
}
.color-option-circle.selected {
    border-color: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/* -------------------------------------------------------------
 * 8. CONTEXT POPOVER MENU (Image 2)
 * ------------------------------------------------------------- */
.context-popover {
    position: absolute;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color-focus);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 170px;
    padding: 6px;
    z-index: 999;
    display: none;
    opacity: 0;
    transform: scale(0.96);
    transform-origin: top left;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.context-popover.open {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.popover-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 12.5px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
}
.popover-action-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}
.popover-action-item svg {
    opacity: 0.8;
}

.popover-section {
    padding: 8px 10px;
}
.popover-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.popover-color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.popover-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    background-color: var(--color-val);
    border: 1px solid transparent;
}
.popover-color-swatch:hover {
    transform: scale(1.2);
}
.popover-color-swatch.selected {
    border-color: #fff;
}

.popover-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 4px 0;
}

/* -------------------------------------------------------------
 * 9. INLINE RENAME OVERLAY
 * ------------------------------------------------------------- */
.inline-rename-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(8, 9, 12, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.inline-rename-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.inline-rename-card {
    background-color: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    width: 320px;
    box-shadow: var(--shadow-lg);
}
.inline-rename-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}
.inline-rename-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* -------------------------------------------------------------
 * 10. PROJECT DROPDOWN & SELECTOR PANEL
 * ------------------------------------------------------------- */
.board-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color-focus);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 240px;
    display: none;
    z-index: 300;
}
.board-dropdown.open {
    display: block;
}

.dropdown-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 12px 16px 8px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

.board-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    padding: 6px;
}

.board-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
}
.board-item-link:hover {
    background-color: rgba(255, 255, 255, 0.04);
}
.board-item-link.active {
    color: var(--accent-color);
    background-color: var(--accent-light);
}

.board-item-color-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-val);
}

.dropdown-footer {
    padding: 8px;
    border-top: 1px solid var(--border-color);
}
.btn-new-board-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 8px;
    border-radius: var(--radius-md);
}
.btn-new-board-trigger:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* -------------------------------------------------------------
 * 11. KEYBOARD SHORTCUTS SHEET
 * ------------------------------------------------------------- */
.shortcut-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-md);
}
.shortcut-key {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color-focus);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 1.5px 0 rgba(255, 255, 255, 0.15);
}
.shortcut-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
}

/* -------------------------------------------------------------
 * 12. ACTIVITIES LOG TAB VIEW
 * ------------------------------------------------------------- */
.activities-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
}
.activities-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.activities-header h2 {
    font-size: 18px;
    font-weight: 700;
}
.btn-clear-activities {
    color: var(--text-secondary);
    font-size: 12.5px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.btn-clear-activities:hover {
    color: var(--text-danger);
    border-color: var(--text-danger);
    background-color: var(--bg-danger-alpha);
}
.activities-list-container {
    flex: 1;
    overflow-y: auto;
    background-color: var(--bg-column);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 10px;
}
.activities-list {
    list-style: none;
}
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
}
.activity-item:last-child {
    border-bottom: none;
}
.activity-icon-box {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    margin-top: 2px;
}
.activity-icon-box.create { background-color: #5cb85c; }
.activity-icon-box.move { background-color: #0275d8; }
.activity-icon-box.edit { background-color: #f0ad4e; }
.activity-icon-box.delete { background-color: #d9534f; }

.activity-content {
    flex: 1;
}
.activity-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-primary);
}
.activity-text strong {
    font-weight: 600;
}
.activity-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.activity-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* -------------------------------------------------------------
 * 13. TOAST NOTIFICATIONS SYSTEM
 * ------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color-focus);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: auto;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
}
.toast-item.show {
    transform: translateY(0);
    opacity: 1;
}
.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.toast-item.success .toast-icon { color: #5cb85c; }
.toast-item.error .toast-icon { color: #d9534f; }
.toast-item.info .toast-icon { color: var(--accent-color); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-right span {
        display: none;
    }
    .app-header {
        padding: 0 10px;
    }
    .board-scroll-container {
        padding: 10px;
    }
    .modal-window {
        width: 95vw !important;
    }
}
