/* Layout Container */
.ig-tool-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    background: #f9fafb; /* Light gray background */
    padding: 20px;
    border-radius: 12px;
}

/* Sidebar / Form */
.ig-tool-sidebar {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.ig-header h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #111827;
    font-size: 1.25rem;
}

.ig-form-group {
    margin-bottom: 15px;
}

.ig-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

.ig-form-group textarea,
.ig-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s;
}

.ig-form-group textarea:focus,
.ig-form-group select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.ig-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.ig-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Button */
.ig-btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #10b981; /* CopyAI Greenish/Teal */
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
}

.ig-btn-primary:hover {
    background-color: #059669;
}

.ig-btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Results Area */
.ig-tool-results {
    flex: 1.5;
    min-width: 300px;
}

#ig-initial-state {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    background: #fff;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
}

/* Result Cards */
.ig-result-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ig-card-header {
    background: #f3f4f6;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.ig-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.ig-card-body {
    padding: 15px;
    white-space: pre-wrap;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ig-hashtags-card .ig-card-body {
    color: #2563eb;
    font-weight: 500;
}

/* Copy Button */
.ig-copy-btn {
    background: white;
    border: 1px solid #d1d5db;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #4b5563;
}
.ig-copy-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Loading Skeleton */
.ig-skeleton-card {
    height: 120px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 20px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Error */
#ig-error-msg {
    background: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid #fca5a5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ig-tool-container {
        flex-direction: column;
    }
}
