h1 {
    margin: 2rem auto;
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(154, 42, 83, 0.6);
}

/* Main content wrapper (prevents overlap with sidebar) */
main {
    margin-left: 240px; /* same width as sidebar */
    padding: 2rem;
}

/* Profile page headline */
main h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(154, 42, 83, 0.6);
}

/* Profile container */
#profile-container {
    max-width: 700px;
    margin: 0 auto;
    background: #1a1a1f;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    animation: fadeIn 0.6s ease;
}

/* Profile header (avatar + name) */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #2a2a30;
    padding-bottom: 1rem;
}

.avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #0f0f12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(154, 42, 83, 0.6);
}

#username-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-color);
}

.muted {
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* Profile info section */
.profile-info p {
    font-size: 1rem;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #2a2a30;
    padding-bottom: 0.5rem;
}

.profile-info strong {
    color: var(--muted-text);
    flex: 1;
}

.profile-info span {
    color: var(--text-color);
    font-weight: 500;
    flex: 2;
    text-align: right;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main wrapper */
main {
    margin-left: 240px;
    padding: 2rem;
}

/* Headline */
main h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(154, 42, 83, 0.6);
}

/* Section styling */
#projects-container,
#add-project-container {
    background: #1a1a1f;
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

#projects-container h2,
#add-project-container h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Project list */
.projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.projects-list li {
    background: #0f0f12;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.projects-list li:hover {
    background: #16161c;
}

.delete-project-button {
    background: transparent;
    border: 1px solid #ff5555;
    color: #ff5555;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-project-button:hover {
    background: #ff5555;
    color: #fff;
}

/* Add project form */
#add-project-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.3rem;
    color: var(--muted-text);
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.8rem;
    border-radius: var(--radius);
    border: none;
    background: #0f0f12;
    color: var(--text-color);
}

.form-group input:focus {
    outline: 2px solid var(--primary);
}

#add-project-button {
    align-self: flex-start;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

#add-project-button:disabled {
    background: #333;
    cursor: not-allowed;
}

#add-project-button:hover:not(:disabled) {
    background: #9A2A53;
}

/* ============================
   MODAL STYLES
   ============================ */

/* Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 20, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

/* Modal box */
.modal {
    background: #1a1a1f;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 0 30px rgba(154, 42, 83, 0.5);
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: scaleIn 0.3s ease;
}

.modal h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal p {
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Actions */
.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.modal-actions button {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #2a2a30;
    color: var(--text-color);
}

.btn-cancel:hover {
    background: #333;
}

.btn-confirm {
    background: #2f1d1e;
    color: #fff;
}

.btn-confirm:hover {
    background: #ff1a1a;
}

/* Animations */
@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.project-error {
    color: #ff5555; /* Neon red for error */
    margin-top: 0.5rem;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

.hidden {
    display: none;
}



