/* Components Styles */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag-danger {
    background: rgba(255, 71, 87, 0.2);
    color: var(--danger);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.profile-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.profile-item:last-child {
    border-bottom: none;
}

.ai-bubble {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 10px 25px rgba(0, 209, 178, 0.4);
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 70vh;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
}

.msg-ai {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px;
}

.msg-user {
    align-self: flex-end;
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.chat-input-area input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    color: white;
}

/* AI Pulse Animation for specific items */
.ai-active-item {
    position: relative;
    overflow: hidden;
}

.ai-active-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 209, 178, 0.05),
            transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

/* Floating Action Button specific adjustment */
.fab svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Forms (Hidden for now, but ready) */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    color: white;
    outline: none;
}

/* Medical Section */
.medical-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.medical-table th,
.medical-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.medical-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.file-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
}

.file-link:hover {
    text-decoration: underline;
}

.ai-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-main);
}

.table-container {
    max-width: 100%;
    overflow-x: auto;
}

.icon-btn-small.delete {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 1rem;
}

/* Update App Button */
.update-fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(6, 182, 212, 0.95));
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.update-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
}

.update-fab svg {
    width: 28px;
    height: 28px;
}