/* Upload page */
.upload-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.upload-container h1 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
}

.upload-container > p {
    margin-bottom: 32px;
    color: var(--muted-color);
    font-size: 15px;
}

.upload-card {
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--card-color);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.upload-card > label {
    display: block;
    margin: 22px 0 9px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 700;
}

.upload-card > label:first-child {
    margin-top: 0;
}

.upload-card input[type="text"],
.upload-card textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    background: var(--bg-color);
    color: var(--text-color);
    font: inherit;
    transition: 0.2s ease;
}

.upload-card input[type="text"] {
    min-height: 48px;
    padding: 0 14px;
}

.upload-card textarea {
    min-height: 125px;
    padding: 14px;
    resize: vertical;
}

.upload-card input[type="text"]:focus,
.upload-card textarea:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.drop-zone {
    padding: 34px 20px;
    border: 2px dashed rgba(139, 92, 246, 0.55);
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.06);
    text-align: center;
    transition: 0.2s ease;
}

.drop-zone:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.drop-zone label {
    display: block;
    cursor: pointer;
}

.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.15);
    font-size: 30px;
}

.drop-zone h3 {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 18px;
}

.drop-zone p {
    margin: 0;
    color: var(--muted-color);
    font-size: 13px;
}

#file-name {
    margin-top: 16px;
    color: #a78bfa;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.character-count {
    margin-top: 10px;
    color: var(--muted-color);
    font-size: 12px;
    text-align: right;
}

#count {
    color: var(--text-color);
    font-weight: 700;
}

#analyzeBtn {
    width: 100%;
    margin-top: 26px;
    min-height: 50px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

#analyzeBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

#analyzeBtn:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .upload-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .drop-zone {
        padding: 28px 14px;
    }

    .upload-container > p {
        margin-bottom: 24px;
    }
}
/* Keep the page footer below the sidebar */
.footer {
    position: relative;
    z-index: 2;
    clear: both;
}

.sidebar {
    height: calc(100vh - 72px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 24px;
}


.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border: 2px solid #8b5cf6;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}