* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #060710;
    overflow: hidden;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #e0e0e0;
}

/* ========================================
   BACKGROUND AURORA
   ======================================== */

.contenedor-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.contenedor-aurora svg {
    width: 100%;
    height: 100%;
    filter: url(#distorsión-aurora) blur(60px);
}

.onda-aurora {
    opacity: 0.6;
    mix-blend-mode: screen;
    transform-origin: bottom center;
}

.aurora-purpura {
    fill: url(#degradado-p) rgba(150, 0, 255, 0.8);
    background: radial-gradient(circle at 20% 80%, #9d4edd, transparent 60%);
    animation: ondularIzquierda 18s infinite alternate ease-in-out;
}

.aurora-azul {
    fill: url(#degradado-a) rgba(0, 150, 255, 0.8);
    background: radial-gradient(circle at 80% 80%, #00b4d8, transparent 60%);
    animation: ondularDerecha 22s infinite alternate ease-in-out;
}

@keyframes ondularIzquierda {
    0% {
        transform: scaleY(1) skewX(-5deg) translateY(0);
    }

    50% {
        transform: scaleY(1.25) skewX(10deg) translateY(-30px);
    }

    100% {
        transform: scaleY(0.9) skewX(-15deg) translateY(20px);
    }
}

@keyframes ondularDerecha {
    0% {
        transform: scaleY(1.1) skewX(15deg) translateY(0);
    }

    50% {
        transform: scaleY(0.85) skewX(-5deg) translateY(-50px);
    }

    100% {
        transform: scaleY(1.3) skewX(8deg) translateY(10px);
    }
}

/* ========================================
   ORQUESTADOR VIEW
   ======================================== */

.orchestrator-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 40px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.orchestrator-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.orchestrator-logo img {
    width: 40px;
    height: 40px;
}

.orchestrator-logo h1 {
    font-size: 24px;
    font-weight: 600;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.orchestrator-logo h1 span {
    background: #714fd8;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.orchestrator-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: scaleIn 0.6s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.orchestrator-avatar {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 2px solid #714fd8;
    border-radius: 120px;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.orchestrator-avatar img {
    width: 60%;
    height: 60%;
}

.orchestrator-container h2 {
    margin-bottom: -10px;
    font-size: 32px;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.orchestrator-subtitle {
    color: #714fd8;
    font-size: 16px;
    margin-bottom: 20px;
}

.orchestrator-message {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    text-align: start;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.orchestrator-message p {
    margin: 12px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.orchestrator-message p.welcome {
    margin-top: 30px;
    position: relative;
    font-weight: 600;
}

.orchestrator-message p.welcome::before {
    content: "“";
    /* Código de la comilla de apertura elegante */
    position: absolute;
    left: 0;
    top: -40px;
    /* La eleva un poco al estilo suspendido */
    font-size: 60px;
    /* Tamaño grande característico */
    color: #714fd8;
    /* Color personalizado (púrpura como tu interfaz) */
    font-family: 'Georgia', serif;
    line-height: 1;
}

.orchestrator-message .question {
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 16px;
    padding-top: 16px;
}

.orchestrator-input {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 14px 20px;
    width: 600px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: slideUp 0.6s ease-out 0.4s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.orchestrator-input svg {
    width: 24px;
    height: 24px;
}

.orchestrator-input-field {
    width: 100%;
    color: #e0e0e0;
    font-size: 14px;
    background: none;
    border: 0;
    outline: none;
    padding: 10px 0;
}

.orchestrator-input-field:focus {
    color: white;
}

.orchestrator-input-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.orchestrator-input-field:focus::placeholder {
    color: white;
}

.orchestrator-attach-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    padding: 10px;
    gap: 5px;
    height: 36px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.orchestrator-attach-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.orchestrator-send-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #714fd8;
    border: none;
    border-radius: 6px;
    gap: 5px;
    height: 36px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.orchestrator-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 212, 255, 0.3);
}

.orchestrator-footer {
    position: absolute;
    bottom: 40px;
    text-align: center;
    animation: slideUp 0.6s ease-out 0.6s both;
}

.orchestrator-footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 4px 0;
}

.security {
    color: rgba(0, 212, 255, 0.6) !important;
}

/* ========================================
   MEETING CONTAINER
   ======================================== */

.meeting-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(20, 30, 60, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 200, 255, 0.15);
    flex-shrink: 0;
}

.header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 200px;
    gap: 5px;
}

.header-left img {
    width: 32px;
    height: 32px;
}

.app-title {
    font-size: 18px;
    font-weight: 600;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-title span {
    background: #714fd8;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.project-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.project-dropdown {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.project-dropdown:hover {
    background: rgba(100, 200, 255, 0.15);
    border-color: #00d4ff;
}

.project-dropdown svg {
    width: 12px;
    height: 8px;
}

.project-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 15, 35, 0.95);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 8px;
    min-width: 200px;
    margin-top: 4px;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.project-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(100, 200, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.project-menu-item:last-child {
    border-bottom: none;
}

.project-menu-item:hover {
    background: rgba(100, 200, 255, 0.15);
}

.project-menu-item.active {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    font-weight: 600;
}

.header-right {
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.header-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.header-action:hover {
    background: rgba(100, 200, 255, 0.15);
    border-color: #00d4ff;
}

.notify {
    background: none;
    border: 0;
}

.header-right svg {
    width: 30px;
    height: 30px;
}

.user-profile {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00d4ff, #9d4edd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-profile svg {
    width: 100%;
    height: 100%;
}

/* ========================================
   TEAM CAROUSEL
   ======================================== */
.meeting-content {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 78px);
}

.side-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.team-carousel {
    padding: 12px 24px;
    background: rgba(10, 15, 35, 0.5);
    border-bottom: 1px solid rgba(100, 200, 255, 0.1);
    flex-shrink: 0;
}

.carousel-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
    margin-bottom: 12px;
}

.carousel-label {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.759);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.active-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.632);
    font-weight: 600;
}

.team-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.team-scroll::-webkit-scrollbar {
    height: 4px;
}

.team-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.team-scroll::-webkit-scrollbar-thumb {
    background: rgba(100, 200, 255, 0.3);
    border-radius: 2px;
}

.director-item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    padding-right: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 5px rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: fit-content;
}

.director-item.self {
    border-color: rgba(150, 0, 255, 0.8);
}

.director-item.speaking {
    background: rgba(76, 205, 60, 0.2);
    border-color:  rgba(76, 205, 60, 0.4);
}

.director-item::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 12px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border: 2px solid rgba(0, 213, 255, 0.7);
    border-radius: 50%;
}

.director-item.speaking::after {
    border-color: rgba(76, 205, 60, 0.7);
}

.director-item.self::after {
    border-color: rgba(196, 124, 248, 0.8);
}

.director-item:hover {
    background: rgba(100, 200, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
}

.director-avatar-carousel {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.director-item-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.director-item-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: start;
}

.director-item-role {
    font-size: 12px;
    font-weight: 600;
    text-align: start;
}

.director-item-status {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.director-item-lider {
    margin-top: 4px;
    color: rgba(196, 124, 248, 0.8);
    font-size: 12px;
}

.director-item.speaking .director-item-status {
    position: relative;
    margin-left: 13px;
    color: #4CCD3C;
}

.director-item.speaking .director-item-status::after {
    content: "";
    position: absolute;
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #4CCD3C;
    border-radius: 50%;
}

/* ========================================
   WORKSPACE MAIN
   ======================================== */

.workspace-main {
    display: flex;
    gap: 0;
    flex: 1;
    overflow: hidden;
    margin: 20px;
    border-radius: 20px;
    border: 1px solid rgba(100, 200, 255, 0.1);
}

.timeline-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid rgba(100, 200, 255, 0.1);
}

.timeline-filters {
    display: flex;
    gap: 8px;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(100, 200, 255, 0.1);
    overflow-x: auto;
    background: rgba(10, 15, 35, 0.3);
    flex-shrink: 0;
    align-items: center;
}

.timeline-filters::-webkit-scrollbar {
    height: 4px;
}

.timeline-filters::-webkit-scrollbar-track {
    background: transparent;
}

.timeline-filters::-webkit-scrollbar-thumb {
    background: rgba(100, 200, 255, 0.3);
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(100, 200, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    color: #00d4ff;
}

.filter-btn.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #00d4ff;
    font-weight: 600;
}

.filter-action {
    margin-left: auto;
    flex-shrink: 0;
}

.timeline-container {
    flex: 1;
    overflow-y: auto;
    position: relative;
    padding: 24px;
}

.timeline-container::-webkit-scrollbar {
    width: 6px;
}

.timeline-container::-webkit-scrollbar-track {
    background: transparent;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: rgba(100, 200, 255, 0.3);
    border-radius: 3px;
}

.timeline-wrapper {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 32px;
    position: relative;
}

/* Deliberation Events - Simple Chat Style */
.event {
    animation: slideUp 0.3s ease-out;
}

.event.deliberation {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
}

.event.deliberation .event-time {
    position: absolute;
    left: -50px;
    top: 0;
    width: 70px;
    text-align: right;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.event.deliberation .event-marker {
    position: absolute;
    left: 43px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: rgba(0, 212, 255, 0.3);
    border: 2px solid #00d4ff;
    border-radius: 50%;
    flex-shrink: 0;
}

.event.deliberation .event-bubble {
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 70px;
}

.event.deliberation .event-author {
    font-size: 13px;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 4px;
}

.event.deliberation .event-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Process Events - Card Style */
.event.process {
    position: relative;
    margin-bottom: 8px;
}

.event.process .event-time {
    position: absolute;
    left: -50px;
    top: 0;
    width: 70px;
    text-align: right;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.event.process .event-marker {
    position: absolute;
    left: 43px;
    top: 12px;
    width: 12px;
    height: 12px;
    background: rgba(157, 78, 221, 0.3);
    border: 2px solid #9d4edd;
    border-radius: 50%;
    flex-shrink: 0;
}

.process-card {
    margin-left: 70px;
    background: rgba(100, 150, 200, 0.08);
    border: 1px solid rgba(100, 200, 255, 0.15);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.process-card:hover {
    background: rgba(100, 200, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.4);
}

.process-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.process-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
    flex: 1;
}

.process-card-status {
    font-size: 11px;
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 8px;
}

.process-card-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    line-height: 1.4;
}

.process-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.process-progress {
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(100, 200, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #9d4edd);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.process-card-team {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.small-avatar {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(192, 192, 192);
    font-size: 10px;
    font-weight: bold;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.team-avatars-group {
    display: flex;
    margin-left: auto;
}

.team-avatars-group .small-avatar {
    margin-left: -8px;
    border: 2px solid rgba(10, 15, 35, 0.9);
}

/* Decision Events */
.event.decision {
    position: relative;
}

.event.decision .event-time {
    position: absolute;
    left: -50px;
    top: 0;
    width: 70px;
    text-align: right;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.event.decision .event-marker {
    position: absolute;
    left: 43px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid #00d4ff;
    border-radius: 3px;
    flex-shrink: 0;
}

.decision-card {
    margin-left: 70px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 10px;
    padding: 14px;
}

.decision-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 8px;
}

.decision-card-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Delivery Events */
.event.delivery {
    position: relative;
}

.event.delivery .event-time {
    position: absolute;
    left: -50px;
    top: 0;
    width: 70px;
    text-align: right;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.event.delivery .event-marker {
    position: absolute;
    left: 43px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: rgba(76, 205, 60, 0.2);
    border: 2px solid #4CCD3C;
    border-radius: 50%;
}

.deliverable-card {
    margin-left: 70px;
    background: rgba(76, 205, 60, 0.08);
    border: 1px solid rgba(76, 205, 60, 0.25);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.deliverable-info {
    flex: 1;
}

.deliverable-name {
    font-size: 13px;
    font-weight: 600;
    color: #4CCD3C;
    margin-bottom: 4px;
}

.deliverable-size {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.deliverable-actions {
    display: flex;
    gap: 8px;
}

.deliverable-btn {
    margin-top: auto;
    margin-bottom: auto;
    background: rgba(76, 205, 60, 0.2);
    border: 1px solid rgba(76, 205, 60, 0.3);
    color: #4CCD3C;
    padding: 8px 8px;
    width: 36px;
    height: 36px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deliverable-btn:hover {
    background: rgba(76, 205, 60, 0.3);
}

.event svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   TIMELINE INPUT
   ======================================== */

.timeline-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 24px;
    background: rgba(10, 15, 35, 0.3);
    border-top: 1px solid rgba(100, 200, 255, 0.1);
    flex-shrink: 0;
}

.timeline-input svg {
    width: 20px;
    height: 20px;
}

.timeline-input-field {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #e0e0e0;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: none;
}

.timeline-input-field:focus {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.4);
}

.timeline-input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.timeline-input-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mention-button {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    padding: 8px 14px;
    height: 36px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    white-space: nowrap;
}

.mention-button:hover {
    background: rgba(157, 78, 221, 0.15);
    border-color: #9d4edd;
    color: #9d4edd;
}

.send-button {
    margin-left: auto;
    background: #714fd8;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.send-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* ========================================
   TASK DETAIL SIDEBAR
   ======================================== */

.task-detail-sidebar {
    margin-top: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    width: 340px;
    max-height: 100%;
    height: fit-content;
    background: rgba(20, 30, 60, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 200, 255, 0.15);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: relative;
}

.task-detail-sidebar::-webkit-scrollbar {
    width: 6px;
}

.task-detail-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.task-detail-sidebar::-webkit-scrollbar-thumb {
    background: rgba(100, 200, 255, 0.3);
    border-radius: 3px;
}

.sidebar-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.task-detail-header {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(100, 200, 255, 0.1);
}

.task-detail-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: #e0e0e0;
}

.task-detail-status {
    margin-top: 4px;
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.task-detail-content {
    flex: 1;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(100, 200, 255, 0.08);
}

.detail-section:last-of-type {
    border-bottom: none;
}

.detail-section h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.detail-section p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.assigned-by,
.assigned-to {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.assigned-by div:first-child,
.assigned-to div:first-child {
    font-weight: 600;
    color: #e0e0e0;
}

.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 11px !important;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #4CCD3C;
    border-radius: 50%;
    flex-shrink: 0;
}

.team-avatars {
    display: flex;
    gap: 6px;
}

.progress-bar-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.progress-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    min-width: 30px;
    text-align: right;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    display: flex;
    gap: 8px;
    align-items: start;
    padding: 6px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.checklist li .checkbox {
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(0, 212, 255, 0.5);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    background: rgba(0, 212, 255, 0.05);
    transition: all 0.3s ease;
}

.checklist li.completed .checkbox {
    background: #4CCD3C;
    border-color: #4CCD3C;
}

.checklist li.completed .checkbox::after {
    content: '✓';
    color: #060710;
    font-size: 10px;
    font-weight: bold;
}

.checklist li.completed {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.delivery-date {
    font-size: 13px;
    color: #e0e0e0;
    font-weight: 500;
}

.view-history-btn {
    width: 100%;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.view-history-btn:hover {
    background: rgba(0, 212, 255, 0.2);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1600px) {
    .task-detail-sidebar {
        width: 300px;
        padding: 16px;
    }
}

@media (max-width: 1200px) {
    .task-detail-sidebar {
        display: none !important;
    }

    .workspace-main {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .meeting-header {
        flex-direction: column;
        gap: 12px;
    }

    .header-left,
    .header-center,
    .header-right {
        width: 100%;
    }
}

/* ========================================
   INPUT AREA - NEW LAYOUT
   ======================================== */

.timeline-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}

.input-action-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.input-action-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-1px);
}

.timeline-input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 200, 255, 0.15);
    border-radius: 8px;
    color: #e0e0e0;
    padding: 12px;
    font-family: inherit;
    font-size: 13px;
    resize: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.timeline-input-field:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
}

.send-button {
    gap: 5px;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    flex-shrink: 0;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.timeline-input-actions {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

/* ========================================
   TEAM MANAGEMENT MODAL
   ======================================== */

.team-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.team-modal[style*="display: flex"] {
    display: flex !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: rgba(20, 25, 50, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(100, 200, 255, 0.1);
}

.modal-header h2 {
    font-size: 18px;
    color: #00d4ff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #e0e0e0;
}

.modal-body {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.team-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #00d4ff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.directors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.directors-list::-webkit-scrollbar {
    width: 6px;
}

.directors-list::-webkit-scrollbar-track {
    background: transparent;
}

.directors-list::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

.directors-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

.director-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(100, 150, 200, 0.08);
    border: 1px solid rgba(100, 200, 255, 0.15);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.director-card:hover {
    background: rgba(100, 150, 200, 0.12);
    border-color: rgba(100, 200, 255, 0.3);
    transform: translateX(2px);
}

.director-card.active {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.05);
}

.director-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.director-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.director-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.director-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
}

.director-card-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.director-card-personality {
    font-size: 10px;
    color: rgba(0, 212, 255, 0.6);
    font-style: italic;
}

.director-card-action {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.director-card-action:hover {
    color: #00d4ff;
    transform: scale(1.2);
}

.remove-btn {
    color: rgba(255, 100, 100, 0.8);
}

.remove-btn:hover {
    color: #ff5555;
}

.add-btn {
    color: rgba(76, 205, 60, 0.8);
}

.add-btn:hover {
    color: #4CCD3C;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(100, 200, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel {
    background: rgba(100, 150, 200, 0.1);
    border: 1px solid rgba(100, 200, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: rgba(100, 150, 200, 0.15);
    border-color: rgba(100, 200, 255, 0.3);
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
}