* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 300;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #495057;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    padding: 1.5rem 2rem 1rem;
    color: #2c3e50;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.url-input-section {
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
    height: auto;
}

.url-form {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#urlInput {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#urlInput:focus {
    outline: none;
    border-color: #667eea;
}

.inspect-btn {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.inspect-btn:hover {
    background: #34495e;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.2);
}

.iframe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
    z-index: 1000;
}

.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e8ed;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background: #5a6268;
}

.current-url {
    flex: 1;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toggle-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.toggle-btn:hover {
    background: #218838;
}

.toggle-btn.hidden {
    background: #dc3545;
}

.toggle-btn.hidden:hover {
    background: #c82333;
}

.main-view {
    flex: 1;
    display: flex;
    height: calc(100vh - 80px);
}

.id-panel {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e1e8ed;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.id-panel.hidden {
    margin-left: -300px;
}

.id-panel.overlay-mode {
    display: none;
}

.panel-header {
    padding: 1rem;
    border-bottom: 1px solid #e1e8ed;
    background: white;
}

.panel-header h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.id-count {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.id-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.loading {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

.id-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e1e8ed;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.id-item:hover {
    background: #e3f2fd;
}

.id-item.active {
    background: #2196f3;
    color: white;
}

.id-name {
    font-family: monospace;
    font-weight: bold;
    color: #d73502;
    font-size: 0.9rem;
}

.id-item.active .id-name {
    color: white;
}

.id-tag {
    font-size: 0.8rem;
    color: #666;
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-left: auto;
}

.id-item.active .id-tag {
    background: rgba(255,255,255,0.2);
    color: white;
}

.iframe-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#websiteFrame {
    flex: 1;
    border: none;
    width: 100%;
    height: 100%;
}

/* New SEO content sections */
.features-section,
.use-cases-section,
.how-it-works-section {
    margin-top: 1.5rem;
    text-align: left;
    width: 100%;
    max-width: 800px;
}

.features-section h2,
.use-cases-section h2,
.how-it-works-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-items: center;
}

.feature {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.feature h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.005em;
}

.feature p {
    color: #6c757d;
    line-height: 1.7;
    font-weight: 300;
}

.use-cases-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-cases-list li {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.use-cases-list strong {
    color: #28a745;
}

.steps-list {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    counter-reset: step-counter;
    list-style: none;
}

.steps-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e1e8ed;
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
}

.steps-list li:last-child {
    border-bottom: none;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0.8rem;
    background: #667eea;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    #urlInput {
        width: 100%;
    }
    
    .controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .current-url {
        min-width: 0;
        flex: 1 1 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .features-section h2,
    .use-cases-section h2,
    .how-it-works-section h2 {
        font-size: 1.5rem;
    }
    
    .url-input-section {
        padding: 1rem;
    }
    
    .url-form {
        padding: 1.5rem;
    }
}

/* Footer styles */
.footer {
    background: #2c3e50;
    color: white;
    margin-top: 4rem;
    padding: 3rem 2rem 2rem;
    border-radius: 12px 12px 0 0;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.footer p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.footer-keywords {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-keywords strong {
    color: #3498db;
}

.footer-tech {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-tech p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-tech strong {
    color: #e74c3c;
}

.footer-brand {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.footer-brand p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-brand a {
    color: #3498db;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-brand a:hover {
    color: #5dade2;
}