/* Custom styles for the CVPro AI - Neo Brutalist Edition */
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

#previewContainer iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* Clean look for iframe inside the preview container */
}

/* Form Entry Cards */
.experience-entry, .education-entry {
    background-color: #F9FAFB;
    padding: 1.5rem;
    border: 2px solid #1A1A1A;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px 0px #E5E7EB;
}

.experience-entry:hover, .education-entry:hover {
    box-shadow: 4px 4px 0px 0px #1A1A1A;
    transform: translate(-1px, -1px);
}

/* Remove Button */
.remove-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    background-color: #EF4444;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid #1A1A1A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 2px 2px 0px 0px #1A1A1A;
    transition: all 0.1s ease;
}

.remove-btn:hover {
    background-color: #DC2626;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px 0px #1A1A1A;
}

.remove-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-left: 2px solid #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #1A1A1A;
    border: 2px solid #F3F4F6;
}

::-webkit-scrollbar-thumb:hover {
    background: #4B5563;
}

/* Utility to ensure clicks work */
.cursor-pointer {
    cursor: pointer !important;
}

/* Ensure inputs in dynamic lists look right */
.experience-entry input, .experience-entry textarea,
.education-entry input {
    width: 100%;
    background-color: white;
    border: 2px solid #E5E7EB;
    padding: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.experience-entry input:focus, .experience-entry textarea:focus,
.education-entry input:focus {
    border-color: #1A1A1A;
    box-shadow: 2px 2px 0px 0px #1A1A1A;
    outline: none;
}

/* Placeholder styling */
::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}
