body {
    font-family: Arial, sans-serif;
    background-color: #f1f3f4;
    color: #202124;
    margin: 0;
    padding: 20px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.controls, .preview-panel {
    flex: 1;
    min-width: 350px;
}

h2 {
    font-weight: 500;
    color: #3c4043;
    border-bottom: 1px solid #dadce0;
    padding-bottom: 8px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #3c4043;
}

.input-group input[type="text"],
.input-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-sizing: border-box;
}

.pixel-counter {
    font-size: 12px;
    color: #5f6368;
    margin-top: 3px;
    text-align: right;
}

.counter-container {
    font-size: 13px;
    color: #5f6368;
    margin-top: 5px;
    text-align: right;
}

.counter.warning {
    color: #d93025;
    font-weight: bold;
}

.view-toggle {
    margin-bottom: 15px;
}

.view-toggle label {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.view-toggle input[type="radio"] {
    display: none;
}

.view-toggle input[type="radio"]:checked + label {
    background-color: #e8f0fe;
    color: #1967d2;
    font-weight: 600;
}

#preview-wrapper {
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
}

.serp-result {
    font-family: Arial, sans-serif;
}

.serp-url-container {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.favicon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.serp-url-text {
    font-size: 14px;
    color: #4d5156;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#preview-site-path {
    color: #70757a;
}

.serp-title {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    color: #1a0dab;
    text-decoration: none;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.serp-description {
    margin: 0;
    font-size: 14px;
    color: #4d5156;
    line-height: 1.57;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#preview-wrapper.desktop {
    max-width: 600px;
}

.desktop .serp-description {
    -webkit-line-clamp: 2;
}

.desktop .serp-title {
    max-width: 600px;
}

#preview-wrapper.mobile {
    max-width: 375px;
    font-size: 12px;
}

.mobile .serp-title {
    font-size: 18px;
    white-space: normal;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.mobile .serp-description {
    font-size: 13px;
    -webkit-line-clamp: 3;
}
