.gif-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 0 20px;
    background: #ffffff;
    border-radius: 0;
    color: #333;
    border-bottom: 1px solid #e9ecef;
}

.header-content h1 {
    font-size: 1.5rem;
    line-height: 2rem;
    text-transform: capitalize;
    font-weight: 700;
	margin-bottom: 0 !important;
}

.header-content p {
    font-size: 1em;
    color: #6c757d;
    margin: 0;
}

.header-icon svg {
	vertical-align: top;
}

.feature-highlight {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.feature-content h3 {
    margin-bottom: 8px;
    font-size: 1.3em;
}

.main-content {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

.left-panel, .right-panel {
    background: white;
    border-radius: 12px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.panel-header h3 {
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
}

.panel-icon {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 8px;
}

.upload-area {
    border: 3px dashed #007cba;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 25px;
}

.upload-area:hover,
.upload-area.drag-over {
    background: #f0f8ff;
    border-color: #005a8b;
    transform: translateY(-2px);
}

.upload-content h4 {
    margin: 15px 0 8px;
    color: #2c3e50;
    font-size: 1.2em;
}

.upload-content p {
    color: #6c757d;
    margin-bottom: 10px;
}

.upload-content small {
    color: #6c757d;
    font-size: 0.9em;
}

.frames-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    min-height: 150px;
    padding: 20px;
    margin-bottom: 25px;
    display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 10px;
}

.frame-item {
    position: relative;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background: white;
	box-shadow: 0 0px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
    border-radius: 8px;
}

.frame-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(220, 53, 69, 0.95);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}

.frame-delete:hover {
    background: #dc3545;
    transform: scale(1.05);
}

.frames-placeholder {
    text-align: center;
    padding: 30px 20px;
    color: #6c757d;
    width: 100%;
}

.frames-placeholder p {
    margin-top: 15px;
}

.animated-preview {
    text-align: center;
    padding: 20px;
}

.preview-frame {
    margin-bottom: 15px;
}

.preview-info {
    text-align: center;
}

.settings-section, .export-settings {
    border: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 10px;
}

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

.settings-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #495057;
}

.label-icon {
    font-size: 1.1em;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.range-slider {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    outline: none;
}

.range-value {
    font-weight: 600;
    color: #007cba;
    min-width: 60px;
    text-align: right;
}

/* Base form control styles */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

/* Only SELECT elements get the arrow */
select.form-control {
    padding-right: 40px; /* Override right padding for select only */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Custom dropdown arrow - for select only */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 24px 20px;
}

/* For better cross-browser compatibility */
select.form-control::-ms-expand {
    display: none;
}

/* Ensure input elements don't inherit select styles */
input.form-control {
    background-image: none;
    padding-right: 15px;
}

.preview-area {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
}

.preview-placeholder {
    text-align: center;
    color: #6c757d;
    padding: 40px 20px;
}

.preview-placeholder h4 {
    margin: 15px 0 8px;
    color: #495057;
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    display: none;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #28a745);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
    color: #495057;
}

.status-message {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.export-settings {
    margin-bottom: 25px;
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
	width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #007cba, #005a8b);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #f39c12);
    color: #212529;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.btn-cta {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 50px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.optimization-panel {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: none;
}

.optimization-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.optimization-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #28a745;
}

.stat-label {
    font-size: 0.9em;
    color: #6c757d;
}

/* SEO Content Styles */
.seo-content-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-top: 50px;
}

.seo-header {
    text-align: center;
    margin-bottom: 40px;
}

.seo-header h2 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-top: 15px;
}

.seo-icon {
    display: inline-block;
    padding: 15px;
    background: #fff3cd;
    border-radius: 50%;
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.feature-card {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card-icon {
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.2em;
}

.feature-card p {
    color: #6c757d;
    font-size: 0.95em;
}

.how-it-works {
    margin-bottom: 50px;
}

.how-it-works h3 {
    text-align: center;
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 30px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007cba, #28a745);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-content h4 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.step-content p {
    color: #6c757d;
    font-size: 0.95em;
}

.use-cases {
    margin-bottom: 50px;
}

.use-cases h3 {
    text-align: center;
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 30px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.use-case {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    font-weight: 500;
    color: #495057;
}

.use-case-icon {
    font-size: 1.4em;
}

.benefits-section {
    margin-bottom: 50px;
}

.benefits-section h3 {
    text-align: center;
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 30px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #28a745;
}

.benefit-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-text strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.benefit-text span {
    color: #6c757d;
}

.faq-section {
    margin-bottom: 50px;
}

.faq-section h3 {
    text-align: center;
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 30px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.faq-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007cba;
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.faq-item p {
    color: #6c757d;
    font-size: 0.95em;
}

.cta-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    margin-bottom: 30px;
}

.cta-content h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1em;
    margin-bottom: 25px;
    opacity: 0.9;
}

.plugin-footer {
    background: #2c3e50;
    color: white;
    border-radius: 12px;
    padding: 25px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1em;
}

.footer-info {
    text-align: right;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Inline form layout for settings groups */
.settings-group-inline {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-end; /* Changed from flex-start to flex-end */
}

.settings-group-inline .form-group {
    flex: 1;
    min-width: 0; /* Allow flex items to shrink */
}

.settings-group-inline .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
    height: 24px; /* Fixed height for consistent spacing */
}

.settings-group-inline .form-group .form-control {
    width: 100%;
    height: 48px; /* Fixed height for all form controls */
    box-sizing: border-box;
	background: #fff;
	border-radius: 8px;
}

/* Ensure consistent label heights across all groups */
.settings-group label,
.settings-group-inline .form-group label {
    min-height: 24px;
    line-height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-group-inline {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gif-creator-container {
        padding: 20px;
    }
    
    .header-content h1 {
        font-size: 2em;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
    
    .feature-highlight {
        flex-direction: column;
        text-align: center;
    }
    
    .seo-content-section {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .optimization-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}