/* Sidebar Component Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .sidebar {
        gap: 1rem;
    }
}

.profile-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.profile-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.upload-zone {
    padding: 2rem;
    text-align: center;
    border: 2px dashed rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 240, 255, 0.02);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .upload-zone {
        padding: 1.5rem 1rem;
    }
    .upload-zone i {
        font-size: 1.5rem;
    }
    .upload-zone span {
        font-size: 0.85rem;
    }
}

.parsing-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.upload-zone i,
.upload-zone span,
.upload-zone .spinner {
    position: relative;
    z-index: 20;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.upload-zone i {
    font-size: 2rem;
    color: var(--primary);
}

#pdfInput {
    display: none;
}

.library-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: -0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.base-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow-y: auto;
    flex: 1;
    padding-top: 5px; /* Room for item hover translation */
}

#adminLink {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px dashed rgba(139, 92, 246, 0.3);
    border-radius: 20px;
}
@keyframes pulse-border {
    0% { border-color: rgba(0, 240, 255, 0.3); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
    50% { border-color: var(--primary); box-shadow: 0 0 10px 2px rgba(0, 240, 255, 0.2); }
    100% { border-color: rgba(0, 240, 255, 0.3); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}
