:root {
    --primary-color-start: #11998e;
    --primary-color-end: #38ef7d;
    --background-color: #f4f7fc;
    --card-background: #ffffff;
    --text-color-primary: #1e293b;
    --text-color-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-color: rgba(17, 153, 142, 0.1);
    --hover-bg: #f8f9fa;
    --danger-color: #e53e3e;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}
.main-container { width: 100%; max-width: 900px; }
.tool-card {
    background: var(--card-background);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}
h1 { text-align: center; color: var(--text-color-primary); font-size: 28px; font-weight: 700; margin: 0 0 10px 0; }
.tagline { text-align: center; color: var(--text-color-secondary); font-size: 16px; margin: 0 0 30px 0; }

/* AI Tool Specific Styles */
.input-group { margin-bottom: 20px; }
.input-group label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color-primary);
    margin-bottom: 10px;
    display: block;
}
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
}

.generate-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    background-image: linear-gradient(45deg, var(--primary-color-start), var(--primary-color-end));
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}
.generate-button:hover { box-shadow: 0 5px 15px var(--shadow-color); transform: translateY(-2px); }
.generate-button:disabled { background: var(--secondary-color); cursor: not-allowed; }

.results-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed var(--border-color);
    position: relative;
    min-height: 100px;
}

.loader {
    border: 5px solid var(--hover-bg);
    border-top: 5px solid var(--primary-color-start);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -20px;
    margin-top: -20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.hidden { display: none; }

#bulletPointsResults .error { color: var(--danger-color); font-weight: 600; text-align: center; }

/* New styles for result items */
.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}
.result-item p {
    margin: 0;
    flex-grow: 1;
    line-height: 1.6;
}
.copy-btn {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--primary-color-start);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 15px;
    white-space: nowrap;
}
.copy-btn:hover { background-color: var(--primary-color-start); color: white; }

/* Other Sections */
.extra-section, footer, .ad-container { margin-top: 25px; }
.ad-container { text-align: center; }
.extra-section { background: var(--card-background); padding: 30px; border-radius: 20px; box-shadow: 0 10px 40px var(--shadow-color); border: 1px solid var(--border-color); }
.section-title { font-size: 22px; font-weight: 600; color: var(--text-color-primary); margin-bottom: 20px; border-bottom: 3px solid var(--primary-color-start); padding-bottom: 10px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.tool-button { display: inline-block; padding: 12px 25px; background-color: var(--primary-color-start); color: white; text-decoration: none; font-weight: 600; text-align: center; border-radius: 10px; transition: all 0.3s ease; }
.tool-button:hover { opacity: 0.9; }
.resume-promo-box { border: 2px solid var(--primary-color-start); text-align: center; }
.how-to-use-list { list-style-type: none; padding-left: 0; counter-reset: steps-counter; }
.how-to-use-list li { position: relative; padding-left: 45px; margin-bottom: 15px; font-size: 16px; color: var(--text-color-secondary); }
.how-to-use-list li::before { counter-increment: steps-counter; content: counter(steps-counter); position: absolute; left: 0; top: 0; width: 30px; height: 30px; background-color: var(--primary-color-start); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 600; }
footer { text-align: center; padding: 20px; color: var(--text-color-secondary); font-size: 14px; }

/* Sticky Ads and Media Queries */
.sticky-ad-left, .sticky-ad-right { display: none; }
@media (min-width: 1300px) {
    .sticky-ad-left, .sticky-ad-right { display: block; position: fixed; top: 100px; width: 160px; height: 600px; z-index: 10; }
    .sticky-ad-left { left: 20px; }
    .sticky-ad-right { right: 20px; }
}