/* Cursor and text animation styles */
.document-preview {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* Fake mouse cursor */
.fake-cursor {
    position: absolute;
    top: 100px;
    left: 100px;
    width: 24px;
    height: 24px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transform: rotate(-15deg);
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
    animation: cursorFadeIn 0.5s forwards 1s;
    transition: top 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
                left 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.3s ease;
}

.fake-cursor.clicking {
    transform: rotate(-15deg) scale(0.9);
}

.fake-cursor svg {
    color: #000;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.dark-mode .fake-cursor svg {
    color: #fff;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

/* Typing animation container */
.typing-animation-container {
    position: absolute;
    top: 80px;
    left: 120px;
    width: 420px;
    height: auto;
    min-height: 240px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 50;
    opacity: 0;
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.5s;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transform: translateY(10px);
}

.typing-animation-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to right, #7d80ff, #6366f1);
    border-radius: 8px 8px 0 0;
}

.typing-animation-container::after {
    content: '✎ Meeting Notes';
    position: absolute;
    top: 6px;
    left: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.dark-mode .typing-animation-container {
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.typing-content {
    padding: 45px 24px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
}

.typing-text {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    min-height: 150px;
    position: relative;
    color: #333;
    white-space: pre-wrap;
    letter-spacing: 0.2px;
}

.dark-mode .typing-text {
    color: #eee;
}

/* Text cursor blinking effect */
.typing-text::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 18px;
    background-color: #7d80ff;
    animation: blink 0.8s infinite;
    margin-left: 1px;
    border-radius: 1px;
}

/* Text highlight effect */
.typing-highlight {
    position: absolute;
    background-color: rgba(125, 128, 255, 0.25);
    height: 25px;
    top: 142px;
    left: 24px;
    width: 0;
    z-index: -1;
    opacity: 0;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1), 
                opacity 0.4s ease-in-out;
    border-radius: 3px;
}

.dark-mode .typing-highlight {
    background-color: rgba(125, 128, 255, 0.35);
}

/* Task creation elements */
.task-creation-container {
    position: absolute;
    top: 160px;
    right: 125px;
    width: 320px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 150;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    pointer-events: none;
}

.task-creation-container.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dark-mode .task-creation-container {
    background-color: #1a1a1a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.task-header {
    background: linear-gradient(to right, #10b981, #059669);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.task-header-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-icon {
    width: 16px;
    height: 16px;
}

.task-content {
    padding: 12px;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.dark-mode .task-title {
    color: #f1f1f1;
}

.task-description {
    font-size: 12px;
    color: #555;
    margin: 0 0 12px;
}

.dark-mode .task-description {
    color: #aaa;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
}

.task-priority {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-weight: 500;
}

.dark-mode .task-priority {
    background-color: rgba(16, 185, 129, 0.25);
}

.task-assignee {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #555;
}

.dark-mode .task-assignee {
    color: #aaa;
}

.assignee-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #444;
}

.dark-mode .assignee-avatar {
    background-color: #333;
    color: #ddd;
}

.task-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    opacity: 0.8;
}

.task-status {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.dark-mode .task-status {
    color: #999;
    border-top-color: #333;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #f59e0b;
}

.task-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.task-button {
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background-color: #f3f4f6;
    color: #374151;
    flex: 1;
    margin: 0 4px;
    cursor: pointer;
}

.task-button.primary {
    background-color: #7d80ff;
    color: white;
}

.dark-mode .task-button {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.dark-mode .task-button.primary {
    background-color: #6366f1;
}

/* Task creation animation */
.text-to-task {
    position: absolute;
    background-color: rgba(125, 128, 255, 0.6);
    height: 22px;
    z-index: 60;
    border-radius: 3px;
    pointer-events: none;
    opacity: 0;
}

.check-icon {
    position: absolute;
    right: 8px;
    top: 18px;
    width: 18px;
    height: 18px;
    background-color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 70;
}

.check-icon.visible {
    opacity: 1;
    transform: scale(1);
}

.check-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 3;
}

/* Animation keyframes */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes cursorFadeIn {
    from { opacity: 0; transform: rotate(-15deg) scale(1.2); }
    to { opacity: 1; transform: rotate(-15deg) scale(1); }
}

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

@keyframes cursorMove1 {
    0% { top: 100px; left: 100px; }
    40% { top: 100px; left: 240px; }
    100% { top: 160px; left: 195px; }
}

@keyframes cursorMove2 {
    0% { top: 160px; left: 195px; }
    100% { top: 160px; left: 480px; }
}

@keyframes cursorMove3 {
    0% { top: 160px; left: 480px; }
    100% { top: 200px; left: 220px; }
}

@keyframes cursorMoveToContextMenu {
    0% { top: 200px; left: 220px; }
    100% { top: 200px; left: 370px; }
}

@keyframes cursorMoveToCreateTask {
    0% { top: 180px; left: 330px; }
    100% { top: 210px; left: 330px; }
}

@keyframes textToTask {
    0% {
        top: 142px;
        left: 24px;
        width: 375px;
        height: 25px;
        opacity: 1;
    }
    70% {
        top: 142px;
        left: 24px;
        width: 375px;
        height: 25px;
        opacity: 1;
    }
    100% {
        top: 160px;
        left: 500px; 
        width: 20px;
        height: 20px;
        opacity: 0;
    }
}

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

@keyframes taskAppear {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Contextual menu for task creation */
.context-menu {
    position: absolute;
    top: 142px;
    left: 340px;
    width: 200px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 80;
    opacity: 0;
    transform: scale(0.95);
    transform-origin: top left;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.context-menu.visible {
    opacity: 1;
    transform: scale(1);
}

.dark-mode .context-menu {
    background-color: #222;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.context-menu-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.context-menu-item {
    padding: 8px 12px;
    font-size: 13px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.context-menu-item:hover, .context-menu-item.active {
    background-color: rgba(125, 128, 255, 0.1);
}

.dark-mode .context-menu-item {
    color: #ddd;
}

.dark-mode .context-menu-item:hover, .dark-mode .context-menu-item.active {
    background-color: rgba(125, 128, 255, 0.2);
}

.context-menu-icon {
    width: 16px;
    height: 16px;
    color: #777;
}

.dark-mode .context-menu-icon {
    color: #aaa;
}

/* Notification dot for changes */
.version-panel h3::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    margin-left: 8px;
    position: relative;
    top: -2px;
    animation: pulse 2s infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .typing-animation-container {
        width: 280px;
        top: 100px;
        left: 100px;
    }
    
    .fake-cursor {
        transform: scale(0.8) rotate(-15deg);
    }
    
    .task-creation-container {
        width: 220px;
        right: 40px;
    }
    
    .context-menu {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .typing-animation-container {
        width: 220px;
        min-height: 150px;
        top: 80px;
        left: 80px;
    }
    
    .typing-text {
        font-size: 12px;
    }
    
    .fake-cursor {
        transform: scale(0.7) rotate(-15deg);
    }
    
    .task-creation-container {
        width: 180px;
        right: 20px;
    }
    
    .context-menu {
        width: 140px;
        font-size: 12px;
    }
} 