/* Web Tools Page Styles - Following Project Design System */

/* Welcome Section - Consistent with Utilities */
.welcome-section {
    margin-bottom: 3rem;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.welcome-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-card p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Featured Tools Section - Consistent with Utilities */
.featured-tools {
    margin: 3rem 0;
}

.featured-tools h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.featured-tools h4::before {
    content: '';
    width: 6px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(245, 57, 57, 0.3);
}

.featured-tools h4::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--border-light), transparent);
    border-radius: 1px;
}

/* Tools Grid - Consistent with Utilities */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* Tool Card - Following Project Card Design (Consistent with Utilities) */
.tool-card {
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    padding: 24px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Preview Section Styles */
.preview-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.preview-header h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gradient-preview {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.gradient-preview:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.preview-info {
    text-align: center;
    padding: 0.5rem;
}

/* Enhanced Color Input Styles */
input[type="color"] {
    width: 100%;
    height: 50px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: transparent;
}

input[type="color"]:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 57, 57, 0.1);
}

input[type="color"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 57, 57, 0.2);
}

/* Color Input Wrapper */
.input-wrapper input[type="color"] {
    padding: 0;
    background: var(--bg-primary);
}

/* Enhanced Form Controls */
.enhanced-input[type="color"] {
    min-height: 50px;
    border-radius: 12px;
    border: 2px solid var(--border-light);
    transition: all var(--transition-normal);
}

.enhanced-input[type="color"]:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: left var(--transition-normal);
}

.tool-card:hover::before {
    left: 0;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Tool Icon - Following Project Icon Design (Consistent with Utilities) */
.tool-card .tool-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.tool-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.5;
}

.tool-card .btn {
    width: 100%;
    justify-content: center;
}

/* Web Tools Specific Styles */
.webtools-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    padding: 3rem 2rem;
    border-radius: 24px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.webtools-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.webtools-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.webtools-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Tool Categories */
.tool-categories {
    margin: 3rem 0;
}

.category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.category-title::before {
    content: '';
    width: 6px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(245, 57, 57, 0.3);
}

.category-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--border-light), transparent);
    border-radius: 1px;
}

/* Enhanced Tool Cards */
.webtools-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
    margin-top: 28px;
}

.webtools-tool-card {
    background: var(--bg-primary);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.webtools-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: left var(--transition-normal);
}

.webtools-tool-card:hover::before {
    left: 0;
}

.webtools-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.webtools-tool-card .tool-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    position: relative;
}

.webtools-tool-card .tool-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.webtools-tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

.webtools-tool-card:hover .tool-icon::after {
    opacity: 0.3;
}

.webtools-tool-card h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
    transition: color var(--transition-normal);
}

.webtools-tool-card:hover h5 {
    color: var(--primary-color);
}

.webtools-tool-card p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.7;
    font-size: 1rem;
    transition: color var(--transition-normal);
}

.webtools-tool-card:hover p {
    color: var(--text-primary);
}

.webtools-tool-card .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
    font-weight: 600;
    border-radius: 16px;
    transition: all var(--transition-normal);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.webtools-tool-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Tool Status Badges */
.tool-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.tool-status.free {
    background: var(--success-color);
    color: var(--text-white);
}

.tool-status.premium {
    background: var(--warning-color);
    color: var(--text-white);
}

.tool-status.beta {
    background: var(--accent-color);
    color: var(--text-white);
}

.tool-status:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Tool Features */
.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.feature-tag {
    padding: 6px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 25px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: default;
}

.feature-tag:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Enhanced Search */
.search-container {
    position: relative;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--border-light);
    border-radius: 25px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(245, 57, 57, 0.1);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

/* Disabled States */
.webtools-tool-card.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.webtools-tool-card.disabled:hover {
    transform: none;
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

.webtools-tool-card.disabled .tool-icon {
    background: var(--text-tertiary);
}

.webtools-tool-card.disabled h5,
.webtools-tool-card.disabled p {
    color: var(--text-tertiary);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--text-tertiary);
    color: var(--text-white);
}

.btn:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .webtools-header {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
        border-radius: 20px;
    }
    
    .webtools-header h1 {
        font-size: 2.5rem;
    }
    
    .webtools-header p {
        font-size: 1.1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0 16px;
    }
    
    .tool-card {
        margin: 0;
        padding: 20px;
    }
    
    .webtools-tools-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 0 16px;
    }
    
    .webtools-tool-card {
        padding: 28px;
        margin: 0;
    }
    
    .webtools-tool-card .tool-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .search-container {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .webtools-header {
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }
    
    .webtools-header h1 {
        font-size: 2.2rem;
    }
    
    .tools-grid {
        margin: 0 8px;
        gap: 12px;
    }
    
    .tool-card {
        padding: 16px;
        margin: 0;
    }
    
    .webtools-tools-grid {
        margin: 0 8px;
        gap: 16px;
    }
    
    .webtools-tool-card {
        padding: 24px;
        margin: 0;
    }
    
    .webtools-tool-card h5 {
        font-size: 1.3rem;
    }
    
    .webtools-tool-card p {
        font-size: 0.95rem;
    }
    
    .tool-features {
        gap: 8px;
    }
    
    .feature-tag {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}


/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover Effects */
.webtools-tool-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.webtools-tool-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-light);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Preview Container */
.preview-container {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-white);
    min-height: 600px;
    width: 100%;
    position: relative;
}

.preview-frame {
    width: 100%;
    height: 600px;
    border: none;
    background: var(--bg-white);
    min-height: 600px;
    display: block;
}

/* Preview Tab Active State */
#preview-tab.active {
    background: var(--primary-color);
    color: var(--text-white);
    border-bottom: 3px solid var(--primary-color);
}

/* Preview Container Full Width */
.tab-pane#preview {
    padding: 0;
}

.tab-pane#preview .preview-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

/* Preview Loading State */
.preview-container::before {
    content: 'Loading preview...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    z-index: 1;
    opacity: 0.7;
}

.preview-container.loaded::before {
    display: none;
}

/* Responsive Preview */
@media (max-width: 768px) {
    .preview-frame {
        height: 400px;
        min-height: 400px;
    }
    
    .preview-container {
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .preview-frame {
        height: 300px;
        min-height: 300px;
    }
    
    .preview-container {
        min-height: 300px;
    }
}

/* Tips Section Enhancement */
.tips-section {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.tips-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px 16px 0 0;
}

.tips-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.tips-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tips-title i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.tips-content {
    position: relative;
}

.tip-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tip-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.tip-item:hover::before {
    width: 8px;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-item h6 i {
    font-size: 1.1rem;
}

.tip-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Enhanced Input Styles */
.enhanced-input {
    resize: vertical;
    min-height: 200px;
}

.enhanced-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 57, 57, 0.25);
}

/* Input Footer */
.input-footer {
    margin-top: 0.5rem;
}

.form-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Button Loading States */
.btn-loading {
    display: none;
}

.btn-loading.d-none {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .html-form .form-actions .btn {
        margin-bottom: 0.5rem;
    }
    
    .content-stats .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .metadata-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .metadata-label {
        margin-bottom: 0.5rem;
        min-width: auto;
    }
    
    .preview-frame {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .html-form .form-control {
        font-size: 0.8rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .output-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Lorem Ipsum Generator Specific Styles */
.lorem-form {
    margin-bottom: 2rem;
}

.lorem-form .form-row {
    margin-bottom: 1.5rem;
}

.lorem-form .form-group {
    margin-bottom: 1rem;
}

.lorem-form .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.lorem-form .form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    height: auto;
    min-height: 42px;
    transition: all var(--transition-normal);
}

.lorem-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 57, 57, 0.25);
}

.lorem-form .form-actions {
    margin-top: 1.5rem;
}

.lorem-form .form-actions .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all var(--transition-normal);
}

/* Generated Text Section */
.generated-text-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.text-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.text-header h5 {
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.text-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.text-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.generated-text-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.generated-text {
    line-height: 1.8;
    color: var(--text-primary);
}

.generated-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

.generated-text p:last-child {
    margin-bottom: 0;
}

/* Text Statistics */
.text-stats {
    margin: 2rem 0;
}

.text-stats .stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.text-stats .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.text-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.text-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Enhanced Input Styles */
.enhanced-input {
    transition: all var(--transition-normal);
}

.enhanced-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 57, 57, 0.25);
}

/* Input Footer */
.input-footer {
    margin-top: 0.5rem;
}

.form-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Button Loading States */
.btn-loading {
    display: none;
}

.btn-loading.d-none {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lorem-form .form-actions .btn {
        margin-bottom: 0.5rem;
    }
    
    .text-stats .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .text-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .text-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .generated-text-container {
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .lorem-form .form-control {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
        min-height: 38px;
    }
    
    .text-stats .stat-card {
        padding: 1rem;
    }
    
    .text-stats .stat-value {
        font-size: 1.25rem;
    }
    
    .generated-text-container {
        padding: 1rem;
        max-height: 300px;
    }
    
    .text-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Color Palette Generator Specific Styles */
.color-form {
    margin-bottom: 2rem;
}

.color-form .form-row {
    margin-bottom: 1.5rem;
}

.color-form .form-group {
    margin-bottom: 1rem;
}

.color-form .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.color-form .form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    height: auto;
    min-height: 42px;
    transition: all var(--transition-normal);
}

.color-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 57, 57, 0.25);
}

.color-form .form-actions {
    margin-top: 1.5rem;
}

.color-form .form-actions .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all var(--transition-normal);
}

/* Generated Color Palette */
.generated-palette-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.palette-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.palette-header h5 {
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.palette-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.palette-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.palette-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.color-palette-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.color-swatch {
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.05);
}

.color-codes {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}



/* CSS Gradient Generator Specific Styles */
.gradient-form {
    margin-bottom: 2rem;
}

.gradient-form .form-row {
    margin-bottom: 1.5rem;
}

.gradient-form .form-group {
    margin-bottom: 1rem;
}

.gradient-form .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.gradient-form .form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    height: auto;
    min-height: 42px;
    transition: all var(--transition-normal);
}

.gradient-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 57, 57, 0.25);
}

.gradient-form .form-actions {
    margin-top: 1.5rem;
}

.gradient-form .form-actions .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all var(--transition-normal);
}

/* Generated Gradient */
.generated-gradient-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.gradient-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.gradient-header h5 {
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.gradient-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gradient-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.gradient-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.gradient-preview {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.gradient-code {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

/* Gradient Statistics */
.gradient-stats {
    margin: 2rem 0;
}

.gradient-stats .stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.gradient-stats .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.gradient-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.gradient-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Modern Color Picker Styles */
.color-picker-wrapper {
    position: relative;
}

/* Color Picker Modal */
.color-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.color-picker-modal.show {
    opacity: 1;
    visibility: visible;
}

.color-picker-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.color-picker-modal.show .color-picker-content {
    transform: scale(1);
}

.color-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.color-picker-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.color-picker-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-picker-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.color-picker-input {
    width: 100%;
    height: 60px;
    border: 3px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.color-picker-input:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.color-picker-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(245, 57, 57, 0.1);
}

.color-picker-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.color-picker-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-picker-btn.cancel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
}

.color-picker-btn.cancel:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.color-picker-btn.apply {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.color-picker-btn.apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 57, 57, 0.3);
}

.color-display {
    width: 100%;
    height: 60px;
    border-radius: 12px;
    border: 3px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.color-display:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.color-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.color-display:hover::before {
    transform: translateX(100%);
}

.color-value {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    letter-spacing: 0.5px;
}

.color-dropdown-icon {
    color: white;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-normal);
}

.color-display:hover .color-dropdown-icon {
    transform: rotate(180deg);
}

/* Color Presets */
.color-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preset-item {
    height: 80px;
    border-radius: 12px;
    border: 2px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.preset-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.preset-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.preset-item:hover::before {
    transform: translateX(100%);
}

.preset-name {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    text-align: center;
    z-index: 1;
}

/* Color Input Specific Styles */
input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .color-form .form-actions .btn,
    .gradient-form .form-actions .btn {
        margin-bottom: 0.5rem;
    }
    
    .gradient-stats .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .palette-header,
    .gradient-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .palette-actions,
    .gradient-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .color-palette-display {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .color-presets {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .preset-item {
        height: 70px;
    }
    
    .color-picker-content {
        padding: 1.5rem;
        max-width: 350px;
    }
    
    .color-picker-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .color-form .form-control,
    .gradient-form .form-control {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
        min-height: 38px;
    }
    
    .color-stats .stat-card,
    .gradient-stats .stat-card {
        padding: 1rem;
    }
    
    .color-stats .stat-value,
    .gradient-stats .stat-value {
        font-size: 1.25rem;
    }
    
    .palette-container,
    .gradient-container {
        padding: 1rem;
    }
    
    .palette-actions .btn,
    .gradient-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .color-palette-display {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.25rem;
    }
    
    .color-swatch {
        padding: 1.5rem;
        font-size: 0.8rem;
    }
    
    .color-picker-content {
        padding: 1rem;
        max-width: 300px;
        width: 95%;
    }
    
    .color-picker-title {
        font-size: 1rem;
    }
    
    .color-picker-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .color-picker-btn {
        width: 100%;
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
}

/* Formatted Code Container */
.formatted-code-container {
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    overflow: auto;
    max-height: 500px;
}

.formatted-code {
    color: var(--text-white);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    padding: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* JSON Syntax Highlighting */
.json-string {
    color: #a8ff60;
    font-weight: 500;
}

.json-number {
    color: #ff9d00;
    font-weight: 600;
}

.json-boolean {
    color: #ff6b6b;
    font-weight: 600;
}

.json-null {
    color: #ff6b6b;
    font-weight: 600;
    font-style: italic;
}

.json-key {
    color: #4ecdc4;
    font-weight: 600;
}

/* Enhanced Code Block for JSON */
.enhanced-code-block {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: auto;
    max-height: 600px;
    transition: all var(--transition-normal);
}

.enhanced-code-block:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.enhanced-code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px 12px 0 0;
}

.enhanced-code-block pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.enhanced-code-block code {
    background: transparent;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    border-radius: 0;
}

/* Fullscreen Support */
.enhanced-code-block:fullscreen {
    background: linear-gradient(135deg, #0f0f23, #1a1a2e);
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    max-height: none;
    height: 100vh;
    width: 100vw;
    border-radius: 0;
    border: none;
}

.enhanced-code-block:fullscreen::before {
    display: none;
}

.enhanced-code-block:-webkit-full-screen {
    background: linear-gradient(135deg, #0f0f23, #1a1a2e);
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    max-height: none;
    height: 100vh;
    width: 100vw;
    border-radius: 0;
    border: none;
}

.enhanced-code-block:-webkit-full-screen::before {
    display: none;
}

.enhanced-code-block:-ms-fullscreen {
    background: linear-gradient(135deg, #0f0f23, #1a1a2e);
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    max-height: none;
    height: 100vh;
    width: 100vw;
    border-radius: 0;
    border: none;
}

.enhanced-code-block:-ms-fullscreen::before {
    display: none;
}

/* JSON Formatter Specific Styles */
.json-formatter-result {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all var(--transition-normal);
    animation: slideInUp 0.5s ease-out;
}

.json-formatter-result:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.json-formatter-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px 12px 0 0;
}

.json-formatter-result pre {
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.json-formatter-result code {
    background: transparent;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    border-radius: 0;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced Input Styling */
.enhanced-input {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    transition: all var(--transition-normal);
    resize: vertical;
    min-height: 200px;
}

.enhanced-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 57, 57, 0.1);
    background: white;
    transform: translateY(-2px);
}

.enhanced-input::placeholder {
    color: #94a3b8;
    font-style: italic;
}

/* Enhanced Button Styling */
.form-actions .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.form-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.form-actions .btn:hover::before {
    left: 100%;
}

.form-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.form-actions .btn:active {
    transform: translateY(-1px);
}

/* Primary Button */
.form-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
}

.form-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
}

/* Success Button */
.form-actions .btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

.form-actions .btn-success:hover {
    background: linear-gradient(135deg, #059669, var(--success-color));
}

/* Info Button */
.form-actions .btn-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.form-actions .btn-info:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

/* Warning Button */
.form-actions .btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #ea580c);
    color: white;
}

.form-actions .btn-warning:hover {
    background: linear-gradient(135deg, #ea580c, var(--warning-color));
}

/* Outline Buttons */
.form-actions .btn-outline-secondary,
.form-actions .btn-outline-danger,
.form-actions .btn-outline-warning {
    background: transparent;
    border: 2px solid;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.form-actions .btn-outline-secondary {
    color: #64748b;
    border-color: #64748b;
}

.form-actions .btn-outline-secondary:hover {
    background: #64748b;
    color: white;
    transform: translateY(-3px);
}

.form-actions .btn-outline-danger {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.form-actions .btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-3px);
}

.form-actions .btn-outline-warning {
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.form-actions .btn-outline-warning:hover {
    background: var(--warning-color);
    color: white;
    transform: translateY(-3px);
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}

.result-actions .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--transition-normal);
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.result-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Copy Button */
.result-actions .btn-secondary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.result-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

/* Download Button */
.result-actions .btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.result-actions .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* Error Section Enhancement */
.error-section {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    border: 1px solid #feb2b2;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 20px rgba(254, 178, 178, 0.2);
}

.error-section .result-title {
    color: #c53030;
    font-weight: 600;
}

.error-section .result-description {
    color: #742a2a;
}

.error-details .alert-danger {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    border: 1px solid #fc8181;
    color: #742a2a;
    border-radius: 8px;
    padding: 1rem;
    font-weight: 500;
}

/* Success Section Enhancement */
.results-section {
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
    border: 1px solid #9ae6b4;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 20px rgba(154, 230, 180, 0.2);
}

.results-section .result-title {
    color: #22543d;
    font-weight: 600;
}

.results-section .result-description {
    color: #2f855a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enhanced-code-block {
        font-size: 0.8rem;
        padding: 1rem;
        max-height: 400px;
    }
    
    .json-formatter-result {
        padding: 1rem;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .result-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .enhanced-code-block {
        font-size: 0.75rem;
        padding: 0.75rem;
        max-height: 300px;
    }
    
    .json-formatter-result {
        padding: 0.75rem;
    }
}

/* Tips Section Enhancement */
.tips-section {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.tips-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px 16px 0 0;
}

.tips-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.tips-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tips-title i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.tips-content {
    position: relative;
}

.tip-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tip-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.tip-item:hover::before {
    width: 8px;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-item h6 i {
    font-size: 1.1rem;
}

.tip-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Enhanced Form Styling */
.json-form {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
    font-weight: 700;
}

.form-label i {
    color: var(--primary-color);
}

.input-wrapper {
    position: relative;
}

.input-footer {
    margin-top: 0.5rem;
}

.form-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-text i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Loading States */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Notification Enhancement */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.notification-content {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-success .notification-content {
    border-left-color: var(--success-color);
}

.notification-error .notification-content {
    border-left-color: var(--danger-color);
}

.notification-warning .notification-content {
    border-left-color: var(--warning-color);
}

.notification-info .notification-content {
    border-left-color: var(--primary-color);
}

.notification-message {
    color: var(--text-primary);
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.notification-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .json-form {
        padding: 1.5rem;
    }
    
    .tips-section {
        padding: 1.5rem;
    }
    
    .tip-item {
        padding: 1.25rem;
    }
    
    .form-actions .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .enhanced-input {
        font-size: 0.85rem;
        padding: 0.875rem;
    }
}

@media (max-width: 576px) {
    .json-form {
        padding: 1rem;
    }
    
    .tips-section {
        padding: 1rem;
    }
    
    .tip-item {
        padding: 1rem;
    }
    
    .form-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .enhanced-input {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
    
    .tips-title {
        font-size: 1.25rem;
    }
}

/* Format Switch Styles */
.format-switch-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.format-switch {
    position: relative;
    display: inline-flex;
    background: var(--bg-secondary);
    border-radius: 50px;
    padding: 4px;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.format-switch:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.format-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.format-switch-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    min-width: 120px;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.format-switch-input:checked + .format-switch-label {
    color: var(--text-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.format-switch-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 40px;
    transition: all var(--transition-normal);
    z-index: 1;
}

.format-switch-input:checked + .format-switch-label + .format-switch-input + .format-switch-label + .format-switch-slider {
    transform: translateX(100%);
}

.format-switch-text {
    position: relative;
    z-index: 2;
    font-weight: inherit;
    letter-spacing: 0.5px;
}

/* Active state for JSON to XML */
.format-switch-input[value="json-to-xml"]:checked ~ .format-switch-slider {
    transform: translateX(0);
}

/* Active state for XML to JSON */
.format-switch-input[value="xml-to-json"]:checked ~ .format-switch-slider {
    transform: translateX(100%);
}

/* Responsive format switch */
@media (max-width: 576px) {
    .format-switch {
        padding: 3px;
    }
    
    .format-switch-label {
        padding: 10px 20px;
        font-size: 0.8rem;
        min-width: 100px;
    }
}

/* SEO Tools Specific Styles */
.seo-tools-header {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: var(--text-white);
    padding: 3rem 2rem;
    border-radius: 24px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.seo-tools-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="seo-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23seo-grain)"/></svg>');
    opacity: 0.3;
}

.seo-tools-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.seo-tools-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* SEO Tools Grid */
.seo-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
    margin-top: 28px;
}

.seo-tool-card {
    background: var(--bg-primary);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.seo-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    transition: left var(--transition-normal);
}

.seo-tool-card:hover::before {
    left: 0;
}

.seo-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: #1e40af;
}

.seo-tool-card .tool-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: var(--text-white);
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    position: relative;
}

.seo-tool-card .tool-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.seo-tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

.seo-tool-card:hover .tool-icon::after {
    opacity: 0.3;
}

.seo-tool-card h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
    transition: color var(--transition-normal);
}

.seo-tool-card:hover h5 {
    color: #1e40af;
}

.seo-tool-card p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.7;
    font-size: 1rem;
    transition: color var(--transition-normal);
}

.seo-tool-card:hover p {
    color: var(--text-primary);
}

.seo-tool-card .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
    font-weight: 600;
    border-radius: 16px;
    transition: all var(--transition-normal);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seo-tool-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* SEO Analysis Results */
.analysis-results {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.analysis-section {
    margin-bottom: 2rem;
}

.analysis-section:last-child {
    margin-bottom: 0;
}

.analysis-section h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.analysis-section h5 i {
    color: #1e40af;
    font-size: 1.2rem;
}

/* Meta Tags List */
.meta-tags-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meta-tag-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.meta-tag-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #1e40af;
}

.meta-tag-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.meta-tag-content {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.meta-tag-status {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Issues List */
.issues-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.issue-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-normal);
    position: relative;
}

.issue-item.issue-critical {
    border-left: 4px solid var(--danger-color);
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
}

.issue-item.issue-warning {
    border-left: 4px solid var(--warning-color);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.issue-item.issue-passed {
    border-left: 4px solid var(--success-color);
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
}

.issue-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.issue-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.issue-description {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.issue-impact {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.issue-suggestion {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #1e40af;
}

/* Recommendations List */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-normal);
    position: relative;
}

.recommendation-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #1e40af;
}

.recommendation-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.recommendation-title i {
    color: #1e40af;
}

.recommendation-description {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.recommendation-priority {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.recommendation-priority.priority-high {
    background: var(--danger-color);
    color: white;
}

.recommendation-priority.priority-medium {
    background: var(--warning-color);
    color: white;
}

.recommendation-priority.priority-low {
    background: var(--success-color);
    color: white;
}

.recommendation-impact {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* SEO Score */
.seo-score-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.seo-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: conic-gradient(#1e40af 0deg, #1e40af var(--score-angle, 0deg), #e5e7eb var(--score-angle, 0deg));
    transition: all var(--transition-normal);
}

.seo-score-circle.score-excellent {
    background: conic-gradient(#10b981 0deg, #10b981 var(--score-angle, 0deg), #e5e7eb var(--score-angle, 0deg));
}

.seo-score-circle.score-good {
    background: conic-gradient(#3b82f6 0deg, #3b82f6 var(--score-angle, 0deg), #e5e7eb var(--score-angle, 0deg));
}

.seo-score-circle.score-fair {
    background: conic-gradient(#f59e0b 0deg, #f59e0b var(--score-angle, 0deg), #e5e7eb var(--score-angle, 0deg));
}

.seo-score-circle.score-poor {
    background: conic-gradient(#ef4444 0deg, #ef4444 var(--score-angle, 0deg), #e5e7eb var(--score-angle, 0deg));
}

.seo-score-circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--bg-primary);
    border-radius: 50%;
    z-index: 1;
}

.score-text {
    position: relative;
    z-index: 2;
    text-align: center;
}

.score-text span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.score-text small {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.score-description {
    text-align: center;
}

.score-description p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Site Audit Specific Styles */
.audit-results {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.audit-sections {
    margin-top: 2rem;
}

.audit-section {
    margin-bottom: 2rem;
}

.audit-section:last-child {
    margin-bottom: 0;
}

.audit-section h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.audit-section h5 i {
    color: #1e40af;
    font-size: 1.2rem;
}

/* Audit Score Cards */
.audit-score-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.audit-score-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #1e40af;
}

.audit-score-card h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    background: conic-gradient(#1e40af 0deg, #1e40af var(--score-angle, 0deg), #e5e7eb var(--score-angle, 0deg));
    transition: all var(--transition-normal);
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    border-radius: 50%;
    z-index: 1;
}

.score-circle span {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.audit-score-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Audit Progress */
.audit-progress-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.audit-status {
    margin-top: 1rem;
}

.audit-status p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

/* Progress Bar */
.progress {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    border-radius: 4px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}

.result-actions .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--transition-normal);
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.result-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form Enhancements for SEO Tools */
.seo-form {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.seo-form .form-group {
    margin-bottom: 1.5rem;
}

.seo-form .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.seo-form .form-label.required::after {
    content: ' *';
    color: var(--danger-color);
    font-weight: 700;
}

.seo-form .form-label i {
    color: #1e40af;
}

/* Dynamic Form Elements */
.user-agents-container,
.paths-container,
.allow-paths-container,
.urls-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-agent-item,
.path-item,
.url-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem;
    transition: all var(--transition-normal);
}

.user-agent-item:hover,
.path-item:hover,
.url-item:hover {
    border-color: #1e40af;
    box-shadow: var(--shadow-sm);
}

.user-agent-input,
.path-input,
.url-input {
    flex: 1;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.user-agent-input:focus,
.path-input:focus,
.url-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.1);
}

.remove-user-agent,
.remove-path,
.remove-url {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.remove-user-agent:hover,
.remove-path:hover,
.remove-url:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Audit Options */
.audit-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.audit-options .form-check {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem;
    transition: all var(--transition-normal);
}

.audit-options .form-check:hover {
    border-color: #1e40af;
    box-shadow: var(--shadow-sm);
}

.audit-options .form-check-input {
    margin-right: 0.75rem;
}

.audit-options .form-check-label {
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
}

/* Preview Styles */
.search-result-preview {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.search-title {
    color: #1a0dab;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.search-url {
    color: #006621;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.search-description {
    color: #545454;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.social-preview {
    margin-top: 1.5rem;
}

.social-preview h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-card {
    display: flex;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    max-width: 500px;
}

.social-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

.social-content {
    padding: 1rem;
    flex: 1;
}

.social-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.social-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.social-url {
    color: #1a0dab;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for SEO Tools */
@media (max-width: 768px) {
    .seo-tools-header {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
        border-radius: 20px;
    }
    
    .seo-tools-header h1 {
        font-size: 2.5rem;
    }
    
    .seo-tools-header p {
        font-size: 1.1rem;
    }
    
    .seo-tools-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 0 16px;
    }
    
    .seo-tool-card {
        padding: 28px;
        margin: 0;
    }
    
    .seo-tool-card .tool-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .seo-score-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .audit-score-card {
        padding: 1.5rem;
    }
    
    .user-agent-item,
    .path-item,
    .url-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .audit-options {
        grid-template-columns: 1fr;
    }
    
    .social-card {
        flex-direction: column;
        max-width: 100%;
    }
    
    .social-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .seo-tools-header {
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }
    
    .seo-tools-header h1 {
        font-size: 2.2rem;
    }
    
    .seo-tools-grid {
        margin: 0 8px;
        gap: 16px;
    }
    
    .seo-tool-card {
        padding: 24px;
        margin: 0;
    }
    
    .seo-tool-card h5 {
        font-size: 1.3rem;
    }
    
    .seo-tool-card p {
        font-size: 0.95rem;
    }
    
    .seo-form {
        padding: 1.5rem;
    }
    
    .analysis-results,
    .audit-results {
        padding: 1.5rem;
    }
    
    .meta-tag-item,
    .issue-item,
    .recommendation-item {
        padding: 1.25rem;
    }
    
    .seo-score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-circle {
        width: 70px;
        height: 70px;
    }
    
    .score-circle::before {
        width: 50px;
        height: 50px;
    }
    
    .score-circle span {
        font-size: 1.25rem;
    }
}
