/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFD700;
    --primary-dark: #F4C430;
    --primary-light: #FFF8DC;
    --accent-color: #FF6B35;
    --success-color: #00C851;
    --warning-color: #FF8800;
    --error-color: #FF4444;
    --text-primary: #1A1A1A;
    --text-secondary: #6C6C6C;
    --text-muted: #9E9E9E;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F1F3F4;
    --border-color: #E5E5E5;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tela de Login */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #222222 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-container {
    background: var(--bg-primary);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-heavy);
    padding: 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

.login-header {
    margin-bottom: 32px;
}

.app-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-medium);
}

.app-icon i {
    font-size: 28px;
    color: var(--text-primary);
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 16px;
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.input-group i {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 18px;
}

.input-group select {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231A1A1A' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.input-group select option {
    color: var(--text-primary);
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
}

.toggle-password {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.toggle-password:hover {
    background: var(--bg-tertiary);
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-medium);
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.login-btn:active {
    transform: translateY(0);
}

.login-error {
    background: rgba(255, 68, 68, 0.1);
    color: var(--error-color);
    padding: 12px;
    border-radius: var(--radius-small);
    border: 1px solid rgba(255, 68, 68, 0.2);
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* App Container */
.app-container {
    min-height: 100vh;
    background: var(--bg-secondary);
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 12px;
}

.greeting-message {
    padding: 12px 24px 0 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    opacity: 0.8;
}

.greeting-message i {
    font-size: 12px;
    color: var(--primary-color);
}

.header-left {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-title i {
    font-size: 28px;
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(var(--primary-rgb), 0.3));
}

.app-title span {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-small);
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    font-size: 12px;
    color: var(--text-primary);
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-small);
    transition: var(--transition);
}

.logout-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Progress Overview */
.progress-overview {
    padding: 20px;
}

.progress-card {
    background: var(--bg-primary);
    border-radius: var(--radius-large);
    padding: 24px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-info h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.progress-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.progress-circle-container {
    position: relative;
}

.progress-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 6;
}

.progress-bar {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.8s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Categories */
.categories-container {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-card {
    background: var(--bg-primary);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    padding-bottom: 8px;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.category-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.category-header:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.category-header::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--text-secondary);
    font-size: 14px;
}

.category-card.open .category-header::after {
    transform: translateY(-50%) rotate(180deg);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}

.category-icon i {
    font-size: 20px;
    color: var(--text-primary);
}

.category-info {
    flex: 1;
}

.category-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.category-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.category-status {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-status[data-status="pending"] {
    background: rgba(255, 136, 0, 0.1);
    color: var(--warning-color);
}

.category-status[data-status="completed"] {
    background: rgba(0, 200, 81, 0.1);
    color: var(--success-color);
}

.category-content {
    display: none;
    padding: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card.open .category-content {
    display: block;
    animation: slideDown 0.3s ease;
}

.category-progress {
    display: none;
}

.progress-track {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 3px;
    width: 0%;
    transition: width 0.8s ease-in-out;
}

.category-description {
    margin-bottom: 16px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.category-description p {
    white-space: pre-line;
    line-height: 1.5;
    font-size: 15px;
    margin-bottom: 10px;
}

.category-description p:last-child {
    margin-bottom: 0;
}

.category-description::-webkit-scrollbar {
    width: 6px;
}

.category-description::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.category-description.has-content {
    padding: 4px 2px;
}

.no-content {
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
}

.category-description.has-content p {
    color: var(--text-primary);
    line-height: 1.6;
}

.category-actions {
    display: flex;
    gap: 8px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    flex: 1;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-small);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--bg-tertiary);
}

.edit-btn {
    color: var(--primary-color);
}

.edit-btn:hover {
    background: rgba(255, 215, 0, 0.1);
}

.complete-btn {
    color: var(--success-color);
}

.complete-btn:hover {
    background: rgba(0, 200, 81, 0.1);
}

.delete-btn {
    color: var(--error-color);
}

.delete-btn:hover {
    background: rgba(255, 68, 68, 0.1);
}

/* Timeline */
.timeline-section {
    padding: 20px;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header i {
    color: var(--primary-color);
}

.timeline-container {
    background: var(--bg-primary);
    border-radius: var(--radius-large);
    padding: 24px;
    box-shadow: var(--shadow-light);
}

.timeline-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 0.5s ease-out;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-icon i {
    font-size: 16px;
    color: var(--text-primary);
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.timeline-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-primary);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-heavy);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.show .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-small);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-secondary);
}

.modal-body {
    padding: 24px;
}

.modal-body textarea {
    width: 100%;
    min-height: 120px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    resize: vertical;
    outline: none;
    transition: var(--transition);
}

.modal-body textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: var(--radius-small);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

/* Notificações */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification {
    background: var(--bg-primary);
    border-radius: var(--radius-medium);
    padding: 16px 20px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(100%);
    transition: var(--transition);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--error-color);
}

.notification.info {
    border-left: 4px solid var(--primary-color);
}

.notification i {
    font-size: 16px;
}

.notification.success i {
    color: var(--success-color);
}

.notification.error i {
    color: var(--error-color);
}

.notification.info i {
    color: var(--primary-color);
}

.notification span {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

/* Animações */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 24px;
        padding-bottom: 24px;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .login-container {
        padding: 32px 24px;
    }
    
    .app-header {
        padding: 12px 16px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    
    .greeting-message {
        padding: 8px 16px 0 16px;
    }
    
    .header-left {
        margin-top: 0;
        flex-shrink: 0;
    }
    
    .header-right {
        flex-shrink: 0;
    }
    
    .updates-header {
        padding: 8px 16px 0 16px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        top: 120px;
    }
    
    .updates-header h2 {
        font-size: 18px;
        flex-wrap: wrap;
        gap: 8px;
        flex-direction: row;
        align-items: center;
    }
    
    .live-indicator {
        margin-left: 8px;
        margin-top: 0;
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .updates-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .category-selector {
        margin: 16px 0 24px 0;
        padding: 0 16px;
    }
    
    .category-pills {
        gap: 12px;
        padding: 8px 4px 12px 4px;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-pill {
        padding: 12px 20px;
        font-size: 14px;
        gap: 8px;
        min-width: auto;
        flex-shrink: 0;
    }
    
    .category-pill i {
        font-size: 15px;
    }
    
    .typing-indicator {
        margin: 0 16px 16px;
        padding: 12px 16px;
    }
    
    .updates-feed {
        margin: 0 16px;
    }
    
    .update-item {
        padding: 20px 16px;
    }
    
    .update-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .progress-overview {
        padding: 16px;
    }
    
    .progress-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .categories-container {
        padding: 0 16px 16px;
    }
    
    .category-header {
        padding: 16px;
    }
    
    .category-content {
        padding: 16px;
    }
    
    .category-actions {
        flex-direction: column;
    }
    
    .timeline-section {
        padding: 16px;
    }
    
    .timeline-container {
        padding: 16px;
    }
    
    .notification {
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 24px 20px;
    }
    
    .app-title span {
        font-size: 18px;
        white-space: nowrap;
    }
    
    .app-title {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .user-badge {
        padding: 6px 8px;
    }
    
    .user-name {
        display: none;
    }
    
    .progress-circle {
        width: 60px;
        height: 60px;
    }
    
    .progress-value {
        font-size: 14px;
    }
    
    .category-header {
        padding: 12px;
    }
    
    .category-content {
        padding: 12px;
    }
    
    .notification {
        min-width: 260px;
    }
}

/* Estados especiais */
.category-card.completed {
    border-left: 4px solid var(--success-color);
}

.category-card.completed .category-status {
    background: rgba(0, 200, 81, 0.1);
    color: var(--success-color);
}

.hidden {
    display: none !important;
}

/* Remove timeline and progress sections from layout */
.progress-overview,
.timeline-section {
    display: none !important;
}

/* Visual feedback for cards */
.category-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card.open {
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Updates Container */
.updates-container {
    margin: 0;
    padding-top: 8px;
}

.updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 24px 0 24px;
    background: transparent;
    position: sticky;
    top: 80px;
    z-index: 50;
}

.updates-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    letter-spacing: -0.3px;
}

.updates-header h2 i {
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(var(--primary-rgb), 0.3));
}

.add-update-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color), #f0b90b);
    color: #1a202c;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-update-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.35);
}

.add-update-btn i {
    font-size: 16px;
}

/* Category Pills */
.category-selector {
    margin: 20px 0 32px 0;
    padding: 0 20px;
}

.category-pills {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 12px 0 16px 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.category-pills::-webkit-scrollbar { display: none; }

.category-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #ffffff;
    color: #2d3748;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-pill i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.category-pill:hover {
    background: #f7fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.15);
}

.category-pill:hover i {
    transform: scale(1.1);
}

.category-pill.active {
    background: var(--primary-color);
    color: #1a202c;
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
    transform: translateY(-1px);
}

.category-pill.active i {
    transform: scale(1.05);
}

/* Updates Feed */
.updates-feed {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0 20px;
}

.no-updates {
    padding: 60px 24px;
    text-align: center;
    color: var(--text-secondary);
}

.no-updates i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-updates p {
    font-size: 16px;
    margin: 0;
}

/* Update Item */
.update-item {
    padding: 28px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
}

.update-item:last-child {
    border-bottom: none;
}

.update-item:hover {
    background: #fafbfc;
    transform: translateX(4px);
}

.update-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.update-item:hover::before {
    opacity: 1;
}

.update-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), #f0b90b);
    color: #1a202c;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.update-date {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.update-content {
    margin: 20px 0;
    line-height: 1.7;
}

.update-content p {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .updates-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .category-selector {
        margin: 16px 0 24px 0;
        padding: 0 16px;
    }
    
    .category-pills {
        gap: 12px;
        padding: 8px 4px 12px 4px;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-pill {
        padding: 12px 20px;
        font-size: 14px;
        gap: 8px;
        min-width: auto;
        flex-shrink: 0;
    }
    
    .category-pill i {
        font-size: 15px;
    }
    
    .update-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .update-item {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .category-selector {
        padding: 0 12px;
    }
    
    .category-pills {
        gap: 10px;
        padding: 6px 2px 10px 2px;
    }
    
    .category-pill {
        padding: 10px 16px;
        font-size: 13px;
        gap: 6px;
        border-radius: 16px;
    }
    
    .category-pill i {
        font-size: 14px;
    }
    
    .update-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .update-item {
        padding: 20px 16px;
    }
}

/* --- Update Header and Actions --- */
.update-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.update-content p:last-child {
    margin-bottom: 0;
}

.update-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.update-action-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.update-action-btn:hover {
    background: #f8fafc;
    color: #374151;
    border-color: #cbd5e1;
}

.update-action-btn.delete {
    color: #ef4444;
    border-color: #fecaca;
    background: #fef2f2;
}

.update-action-btn.delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* --- Professional Live Features --- */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 16px;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #16a34a;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #16a34a;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.project-status {
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* --- Typing Indicator --- */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    margin: 0 20px 16px;
    background: #f8fafc;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    animation: slideInFromLeft 0.5s ease;
}

.typing-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.typing-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots .dot {
    width: 4px;
    height: 4px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typingDots 1.4s infinite ease-in-out;
}

.typing-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDots {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-10px); opacity: 1; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Enhanced Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    max-width: 400px;
    margin: 0 auto;
}

.empty-state i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 8px rgba(var(--primary-rgb), 0.2));
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.empty-state p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 32px;
}

 