       .linkedin-tool * { box-sizing: border-box; }
        .linkedin-tool {
            --linkedin-blue: #0a66c2;
            --linkedin-gray: #666666;
            --linkedin-bg: #f3f2f0;
            --white: #ffffff;
            --border-color: #e0e0e0; padding:5em 0em 0em 0em;
        }


#app {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    color: var(--linkedin-blue);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 800;
}

main {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: start;
}

.editor-container,
.preview-container {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.seo-section {
    grid-column: 1 / span 2;
    margin-top: 40px;
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.seo-section h2 {
    color: var(--linkedin-blue);
    font-size: 28px;
    margin-bottom: 20px;
}

.seo-section h3 {
    font-size: 20px;
    color: #333;
    margin-top: 30px;
}

.seo-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.seo-card {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 10px;
    border-left: 4px solid var(--linkedin-blue);
}

.seo-card h3 {
    margin-top: 0;
}

@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
    }

    .seo-section {
        grid-column: 1;
        padding: 30px 20px;
    }

    .seo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .editor-container,
    .preview-container {
        padding: 16px;
    }

    .tabs {
        flex-direction: column;
    }

    .toolbar {
        justify-content: center;
    }

    .seo-section h2 {
        font-size: 24px;
    }
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h2 {
    margin: 0px 0px 20px 0px;
}

.secondary-btn {
    background-color: var(--white);
    color: var(--linkedin-blue);
    border: 1.5px solid var(--linkedin-blue);
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.secondary-btn:hover {
    background-color: rgba(10, 102, 194, 0.06);
    box-shadow: 0 0 0 1px var(--linkedin-blue);
}

textarea {
    width: 100%;
    height: 180px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: var(--linkedin-blue);
}

.toolbar {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.toolbar-group {
    display: flex;
    gap: 4px;
    background: #f8f9fa;
    padding: 2px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.toolbar button {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

.toolbar button:hover {
    background: #e9ecef;
    color: var(--linkedin-blue);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 8px;
    padding: 6px;
    margin-top: 4px;
    border: 1px solid #dee2e6;
}

.dropdown-content button {
    display: flex;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    font-size: 13px;
    justify-content: flex-start;
}

.dropdown-content button:hover {
    background-color: #f1f3f4;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.emoji-picker-container {
    position: absolute;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.emoji-picker-container span {
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.emoji-picker-container span:hover {
    background: #f1f3f4;
}

.tabs {
    display: flex;
    background: #f1f3f4;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #5f6368;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
    background: var(--white);
    color: var(--linkedin-blue);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
    color: #202124;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content.active {
    display: block;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--linkedin-blue);
}

.linkedin-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 0 0 0;
    background: var(--white);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.linkedin-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 16px;
    margin-bottom: 12px;
}

.user-info {
    display: flex;
    gap: 12px;
}

.avatar {
    width: 52px;
    height: 52px;
    background: #f0f2f5;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.user-meta .name-row {
    font-size: 15px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
}

.user-meta .degree {
    font-weight: 400;
    color: #666;
    margin-left: 2px;
    font-size: 13px;
}

.user-meta .title {
    font-size: 13px;
    color: #666;
    line-height: 0.7;
    margin: 2px 0;
}

.user-meta .time-row {
    font-size: 12px;
    color: #666;
}

.follow-btn {
    color: var(--linkedin-blue);
    background: none;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background 0.2s;
}

.follow-btn:hover {
    background-color: rgba(10, 102, 194, 0.08);
}

.content {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 15px;
    line-height: 1.6;
    padding: 4px 16px 20px 16px;
    color: rgba(0, 0, 0, 0.9);
}

.card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 6px 12px;
}

.engagement-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s;
}

.user-selector:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ccc;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.dropdown-icon {
    color: #5f6368;
}

.interactions {
    display: flex;
    justify-content: space-around;
    flex: 1;
}

.interaction-item {
    background: white;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 8px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.interaction-item .icon {
    width: 24px;
    height: 24px;
    stroke: rgba(0, 0, 0, 0.6);
    stroke-width: 1.8;
}

.interaction-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.8);
}

.interaction-item:active {
    transform: scale(0.96);
}