body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.resume-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.resume-section h2 {
    color: #333;
    margin-bottom: 15px;
}

.experience-item {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.company-name {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.job-title {
    color: #666;
    margin: 5px 0;
}

.location {
    color: #888;
    font-style: italic;
    margin-bottom: 10px;
}

.description p {
    margin: 5px 0;
}

.section-content {
    line-height: 1.6;
}

.copy-btn-wrapper {
    position: relative;
}

.copy-btn {
    padding: 8px;
    min-width: 36px;
    height: 36px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background-color: #45a049;
}

.copy-tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    right: 0;
    top: -30px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
    white-space: nowrap;
}

.copy-tooltip.show {
    opacity: 1;
}

.bio-list {
    list-style: none;
    padding: 0;
}

.bio-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.bio-text {
    margin: 0;
    flex: 1;
    max-height: 60px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

@media screen and (max-width: 768px) {
    .bio-text {
        max-width: 70%;  /* More space for button on mobile */
    }

    .bio-item {
        padding: 10px;
    }
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.summary-text {
    margin: 0;
    flex: 1;
    max-height: 120px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.exp-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
    padding: 4px 0;
}

.exp-section > * {
    margin: 0;
}

.exp-section .description {
    flex: 1;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
}

.experience-item .copy-btn {
    padding: 6px;
    min-width: 30px;
    height: 30px;
}

.exp-separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 12px 0;
}

.edu-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 0;
}

.edu-section p {
    margin: 0;
    flex: 1;
    max-height: 80px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.edu-separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 12px 0;
}

.cover-letter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-weight: bold;
    color: #333;
}

.input-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.generate-btn {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.generate-btn:hover {
    background-color: #45a049;
}

.education-item {
    gap: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.input-with-button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 8px 30px 8px 10px; /* Right padding to make space for the clear button */
    border: 1px solid #ccc;
    border-radius: 4px;
}

.clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    z-index: 5;
}

.clear-btn:hover i {
    color: darkred;
}

.paste-btn {
    padding: 8px 12px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.paste-btn:hover {
    background: #e0e0e0;
}

/* Add custom scrollbar styling */
.bio-text::-webkit-scrollbar,
.summary-text::-webkit-scrollbar,
.description::-webkit-scrollbar,
.edu-section p::-webkit-scrollbar {
    width: 4px;
}

.bio-text::-webkit-scrollbar-thumb,
.summary-text::-webkit-scrollbar-thumb,
.description::-webkit-scrollbar-thumb,
.edu-section p::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}