/* Container */
.ig-tool-wrapper {
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* Cards */
.ig-tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

/* Header */
.ig-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 700;
}
.ig-header p {
    color: #64748b;
    margin-bottom: 25px;
}

/* Form Elements */
.ig-form-group {
    margin-bottom: 20px;
}

.ig-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.ig-tool-wrapper input,
.ig-tool-wrapper select, 
.ig-tool-wrapper textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ig-tool-wrapper textarea {
    min-height: 80px;
    resize: vertical;
}

.ig-tool-wrapper input:focus,
.ig-tool-wrapper select:focus, 
.ig-tool-wrapper textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Grid Layout */
.ig-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .ig-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ig-tool-card {
        padding: 20px;
    }
}

/* Button */
#ig-generate-btn {
    width: 100%;
    background: #FF4573;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#ig-generate-btn:hover {
    background: #FF4573;
}

#ig-generate-btn:disabled {
    background: #FF4573;
    cursor: not-allowed;
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.hidden { display: none !important; }

.ig-result-group {
    margin-bottom: 20px;
}

.ig-copy-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.ig-content {
    padding-right: 60px;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    white-space: pre-wrap;
}

.ig-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.ig-copy-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.ig-copy-btn.copied {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.hashtags-box .ig-content {
    color: #2563eb;
    font-weight: 500;
}

#ig-error-msg {
    margin-top: 15px;
    padding: 12px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    font-size: 14px;
}