/**
 * File Circle AI Tools Template Styles
 * Responsive design for AI tools showcase and individual tool pages
 */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

.ai-tools-template {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.ai-tools-container {
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.tools-page-header,
.tool-page-header {
    background: linear-gradient(135deg, #1d9051 0%, #16a085 100%);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

.tools-page-header h1,
.tool-page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Individual Tool Page Header */
.breadcrumb {
    margin-bottom: 30px;
    text-align: left;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.tool-header {
    display: grid;
    align-items: center;
    gap: 5px;
    text-align: left;
}

.tool-header .tool-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-header .tool-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.tool-header .tool-icon i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.8);
}

.tool-info h1 {
    margin: 0 0 10px;
    font-size: 2.5rem;
}

.tool-info .tool-description {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin: 40px 0;
}

/* Popular Tools Grid - 5 per row */
.tools-grid.popular-tools {
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* All Tools Grid - 5 per row */
.tools-grid.all-tools {
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* Small Cards Grid for Related Tools */
.tools-grid.small-cards {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.tool-card {
    background: linear-gradient(135deg, #1d9051 0%, #84ae66 100%);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(29, 144, 81, 0.2);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    color: white;
}

/* Small Card Style */
.tool-card.small {
    padding: 20px 15px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1d9051 0%, #84ae66 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(29, 144, 81, 0.2);
}

.tool-card.small:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(29, 144, 81, 0.3);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(29, 144, 81, 0.4);
}

.tool-card.featured {
    background: linear-gradient(135deg, #1d9051 0%, #84ae66 100%);
    box-shadow: 0 6px 20px rgba(29, 144, 81, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.tool-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: 15px;
    right: -25px;
    background: #f88b29;
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.tool-card .tool-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Small Card Icon */
.tool-card.small .tool-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.tool-card.small:hover .tool-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.tool-card:hover .tool-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.tool-card .tool-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: filter 0.3s ease;
    filter: brightness(0) invert(1);
}

.tool-card.small .tool-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.tool-card:hover .tool-icon img {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

.tool-card .tool-icon i {
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.tool-card.small .tool-icon i {
    font-size: 1.2rem;
    color: white;
}

.tool-card:hover .tool-icon i {
    color: white;
    transform: scale(1.1);
}

.tool-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: white;
    line-height: 1.3;
}

/* Small Card Name */
.tool-card.small .tool-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: white;
    line-height: 1.2;
}

.tool-description {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 15px;
    line-height: 1.4;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Small Card Description */
.tool-card.small .tool-description {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px;
    font-size: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-stats {
    margin: 12px 0;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Small Card Stats */
.tool-card.small .tool-stats {
    margin: 8px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.usage-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

/* Small Card Usage Count */
.tool-card.small .usage-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    justify-content: center;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Small Card Link */
.tool-card.small .tool-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tool-card.small .tool-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.tool-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
.popular-tools-section,
.all-tools-section,
.related-tools-section {
    padding: 60px 0;
}

.popular-tools-section {
    background: white;
}

.all-tools-section {
    background: #f8f9fa;
}

.related-tools-section {
    background: white;
    border-top: 1px solid #e9ecef;
}

.popular-tools-section h2,
.all-tools-section h2,
.related-tools-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 50px;
    color: #2c3e50;
}

/* Tools Filter */
.tools-filter {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #667eea;
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

/* No Results Message */
.no-results,
.no-tools-message {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results i,
.no-tools-message i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-results h3,
.no-tools-message h2 {
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: #495057;
}

.message-content {
    max-width: 400px;
    margin: 0 auto;
}

/* Individual Tool Content */
.tool-content {
    background: white;
    padding: 60px 0;
}

.tool-interface {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid #e9ecef;
}

.tool-description-full {
    max-width: 800px;
    margin: 0 auto;
}

.tool-description-full h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 25px;
    color: #2c3e50;
}

.description-content {
    color: #495057;
    line-height: 1.7;
}

.description-content h3 {
    color: #2c3e50;
    margin: 30px 0 15px;
}

.description-content ul,
.description-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.description-content li {
    margin-bottom: 8px;
}

/* Ad Containers */
.ad-container {
    padding: 30px 0;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.ad-top {
    border-top: none;
}

.ad-bottom {
    border-bottom: none;
}

/* Related Tools Grid */
.related-tools {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .tools-page-header,
    .tool-page-header {
        padding: 40px 0 30px;
    }
    
    .tools-page-header h1,
    .tool-page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-description {
        font-size: 1.1rem;
    }
    
    .tool-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .tool-header .tool-icon {
        width: 70px;
        height: 70px;
    }
    
    .tool-info h1 {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin: 30px 0;
    }
    
    .tools-grid.popular-tools,
    .tools-grid.all-tools {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    /* Small Cards Responsive */
    .tools-grid.small-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .tool-card {
        padding: 25px;
    }
    
    .tool-card.small {
        padding: 15px 10px;
    }
    
    .popular-tools-section,
    .all-tools-section,
    .related-tools-section {
        padding: 40px 0;
    }
    
    .popular-tools-section h2,
    .all-tools-section h2,
    .related-tools-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .tool-interface {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .tool-content {
        padding: 40px 0;
    }
    
    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .tools-page-header h1,
    .tool-page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .tools-grid.popular-tools,
    .tools-grid.all-tools {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .tool-card {
        padding: 18px 15px;
    }
    
    .tool-card.small {
        padding: 12px 8px;
    }
    
    /* Small Cards Mobile */
    .tools-grid.small-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .tool-card.small .tool-name {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .tool-card.small .tool-description {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }
    
    .tool-card.small .tool-link {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .tool-card.small .tool-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }
    
    .tool-card.small .tool-icon img {
        width: 20px;
        height: 20px;
    }
    
    .tool-card.small .tool-icon i {
        font-size: 1rem;
    }
    
    .tool-name {
        font-size: 1.2rem;
    }
    
    .tool-description {
        font-size: 0.9rem;
    }
    
    .tool-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .tool-interface {
        padding: 20px;
    }
}

/* Animation for tool cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeInUp 0.6s ease forwards;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading states */
.tools-grid.loading .tool-card {
    opacity: 0.5;
    pointer-events: none;
}

.search-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.search-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Accessibility improvements */
.tool-card:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.tool-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Related Tools Section */
.file-circle-related-tools-section {
    margin: 30px 0;
}

.related-tools-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px;
    text-align: center;
    position: relative;
}

.related-tools-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #1d9051 0%, #84ae66 100%);
    border-radius: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tool-card {
        border: 2px solid #000;
    }
    
    .tool-link {
        border: 2px solid transparent;
    }
    
    .tool-link:hover,
    .tool-link:focus {
        border-color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .tool-card,
    .tool-icon,
    .tool-link {
        transition: none;
    }
    
    .tool-card {
        animation: none;
    }
    
    .tool-card:hover {
        transform: none;
    }
}

/* WhatsApp Tool Specific Styles */
.whatsapp-tool {
    max-width: 800px;
    margin: 0 auto;
}

.tool-form {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group label i {
    margin-right: 8px;
    color: #667eea;
    width: 16px;
}

.required {
    color: #e74c3c;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:invalid {
    border-color: #e74c3c;
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
}

.char-count {
    font-weight: 600;
    color: #495057;
}

.char-count.warning {
    color: #f39c12;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 140px;
    justify-content: center;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20b954;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-copy {
    background: #17a2b8;
    color: white;
    min-width: auto;
    padding: 12px 16px;
}

.btn-copy:hover {
    background: #138496;
}

.btn-copy.copied {
    background: #28a745;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Tool Result Styles */
.tool-result {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.result-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px 30px;
    text-align: center;
}

.result-header h3 {
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.result-content {
    padding: 30px;
}

.preview-section,
.link-section {
    margin-bottom: 30px;
}

.preview-section h4,
.link-section h4 {
    margin: 0 0 15px;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.whatsapp-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.whatsapp-chat-preview {
    max-width: 100%;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.chat-header i {
    color: #25d366;
    font-size: 1.2rem;
}

.chat-header span {
    font-weight: 600;
    color: #2c3e50;
}

.chat-info {
    color: #495057;
}

.phone-info,
.message-info {
    margin-bottom: 12px;
}

.message-preview {
    background: #e3f2fd;
    padding: 10px 12px;
    border-radius: 6px;
    margin-top: 8px;
    font-style: italic;
    border-left: 3px solid #2196f3;
}

.link-container {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.link-input {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Tool Error Styles */
.tool-error {
    background: #ffffff;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin-bottom: 30px;
}

.error-content {
    padding: 20px;
    text-align: center;
    color: #721c24;
    background: #f8d7da;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.error-content i {
    color: #e74c3c;
    font-size: 1.2rem;
}

/* Tool Loading Styles */
.tool-loading {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 30px;
}

.loading-content {
    padding: 40px;
    text-align: center;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
}

.loading-content i {
    color: #667eea;
    font-size: 1.5rem;
}

/* Tool Info Section */
.tool-info-section {
    margin-top: 50px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.info-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.info-icon i {
    color: white;
    font-size: 1.5rem;
}

.info-content h4 {
    margin: 0 0 10px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.info-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive Design for WhatsApp Tool */
@media (max-width: 768px) {
    .tool-form {
        padding: 25px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
    
    .link-container {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .result-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tool-form {
        padding: 20px;
    }
    
    .result-header {
        padding: 15px 20px;
    }
    
    .result-header h3 {
        font-size: 1.2rem;
    }
    
    .whatsapp-preview {
        padding: 15px;
    }
    
    .info-card {
        padding: 20px;
    }
}

/* Success animations */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.result-header {
    animation: successPulse 0.6s ease-out;
}

/* Copy button feedback */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.btn-copy.copied {
    animation: copySuccess 0.3s ease-out;
}

/* Focus states for accessibility */
.form-control:focus,
.btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* QR Code Tool Specific Styles */
.qr-code-tool {
    max-width: 800px;
    margin: 0 auto;
}

.qr-code-preview {
    max-width: 100%;
}

.qr-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.qr-header i {
    color: #667eea;
    font-size: 1.3rem;
}

.qr-header span {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.qr-image-container {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: #ffffff;
    border: 2px dashed #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.qr-image-container:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.qr-code-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.qr-code-image:hover {
    transform: scale(1.05);
}

.qr-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.qr-info > div {
    margin-bottom: 12px;
    color: #495057;
}

.qr-info > div:last-child {
    margin-bottom: 0;
}

.qr-info strong {
    color: #2c3e50;
    font-weight: 600;
}

.preview-content {
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
    margin-top: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border-left: 3px solid #667eea;
    word-break: break-all;
}

/* QR Code Form Specific Styles */
.qr-form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.size-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.size-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    transition: background 0.3s ease;
}

.size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-slider::-webkit-slider-thumb:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

.size-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.size-slider::-moz-range-thumb:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

.size-display {
    font-weight: 600;
    color: #667eea;
    text-align: center;
    font-size: 0.9rem;
}

.data-type-indicator {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
    border: 1px solid #bbdefb;
}

.char-count-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.875rem;
}

.char-count {
    font-weight: 600;
    color: #495057;
}

.char-count.warning {
    color: #f39c12;
}

.char-count.error {
    color: #e74c3c;
}

.char-limit {
    color: #6c757d;
}

/* QR Code Options */
.qr-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.option-group select {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.option-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* QR Code Result Actions */
.qr-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.btn-download {
    background: #28a745;
    color: white;
}

.btn-download:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.btn-download i {
    margin-right: 8px;
}



/* Responsive Design for QR Code Tool */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .qr-options {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .qr-actions {
        flex-direction: column;
    }
    

    
    .qr-info {
        padding: 15px;
    }
    
    .qr-image-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .qr-info-card {
        padding: 15px;
    }
    
    .qr-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .preview-content {
        font-size: 0.8rem;
        padding: 10px;
    }
}

/* QR Code Animation */
@keyframes qrGenerate {
    0% { 
        opacity: 0; 
        transform: scale(0.8) rotate(-5deg); 
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.1) rotate(2deg); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
}

.qr-code-image {
    animation: qrGenerate 0.8s ease-out;
}

/* Data type specific styling */
.data-type-url .data-type-indicator {
    background: #e8f5e8;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.data-type-email .data-type-indicator {
    background: #fff3e0;
    color: #f57c00;
    border-color: #ffcc02;
}

.data-type-phone .data-type-indicator {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #ce93d8;
}

.data-type-text .data-type-indicator {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tool-form,
    .tool-result,
    .info-card,
    .qr-info-card {
        border: 2px solid #000;
    }
    
    .form-control,
    .size-slider {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .qr-image-container {
        border: 2px solid #000;
    }
}
/*
 Password Generator Tool Styles */
.password-tool {
    max-width: 800px;
    margin: 0 auto;
}

.password-tool .form-row {
    margin-bottom: 30px;
}

.password-tool .form-group {
    margin-bottom: 20px;
}

.password-tool .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1rem;
}

.password-tool .form-group label i {
    margin-right: 8px;
    color: #667eea;
}

/* Length Control */
.length-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.length-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.length-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.length-display {
    background: #667eea;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/* Checkbox Groups */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item label i {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Password Display */
.password-display-section {
    margin-bottom: 30px;
}

.password-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.password-input {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    letter-spacing: 1px;
    font-weight: 600;
}

.password-actions {
    display: flex;
    gap: 8px;
}

.password-actions .btn {
    padding: 15px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy.copied {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

/* Strength Analysis */
.strength-analysis-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.strength-analysis-section h4 {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.strength-meter {
    margin-bottom: 20px;
}

.strength-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.strength-fill {
    height: 100%;
    border-radius: 6px;
    transition: all 0.5s ease;
    background: #dc3545;
}

.strength-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.strength-text {
    font-weight: 600;
}

.strength-score {
    color: #6c757d;
}

.strength-details {
    margin-top: 15px;
}

.strength-feedback h5 {
    margin: 0 0 10px;
    color: #495057;
    font-size: 0.95rem;
}

.strength-feedback ul {
    margin: 0;
    padding-left: 20px;
    color: #6c757d;
    font-size: 0.9rem;
}

.strength-feedback li {
    margin-bottom: 5px;
}

/* Password Info */
.password-info-section {
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.info-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* Character Breakdown */
.character-breakdown h5 {
    margin: 0 0 15px;
    color: #2c3e50;
    font-size: 1rem;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.85rem;
}

.breakdown-label {
    color: #495057;
}

.breakdown-value {
    font-weight: 600;
    color: #667eea;
}

/* Password Tips */
.password-tips {
    margin-top: 30px;
    padding: 20px;
    background: #e8f4fd;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.password-tips h4 {
    margin: 0 0 15px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.password-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #495057;
}

.password-tips li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Button States */
.btn.saved {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .password-tool .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .password-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .password-actions {
        justify-content: center;
        margin-top: 10px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .length-control {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .length-display {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .password-input {
        font-size: 1rem;
        padding: 12px;
    }
    
    .checkbox-item {
        padding: 10px;
    }
    
    .checkbox-item label {
        font-size: 0.9rem;
    }
}
/* Colo
r Tools Styles */

/* RGB to Hex Converter Tool */
.rgb-hex-tool {
    max-width: 800px;
    margin: 0 auto;
}

.conversion-type-selector {
    margin-bottom: 30px;
}

.conversion-type-select {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.conversion-type-select:focus {
    outline: none;
    border-color: #667eea;
}

.conversion-input-group {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.conversion-input-group h3 {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.input-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 120px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.color-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.color-input[type="number"] {
    text-align: center;
}

.hex-input {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.color-preview-small {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    margin-left: 10px;
    flex-shrink: 0;
}

.tool-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.convert-color-btn,
.clear-inputs-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.convert-color-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.convert-color-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.convert-color-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.clear-inputs-btn {
    background: #6c757d;
    color: white;
}

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

.auto-convert-option {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.auto-convert-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.conversion-results {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.color-preview {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.color-preview-text {
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-family: 'Courier New', monospace;
}

.results-table {
    display: grid;
    gap: 15px;
}

.result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.result-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
}

.result-value {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #2c3e50;
    flex: 1;
    text-align: center;
}

.copy-btn {
    padding: 6px 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

/* Color Picker Tool */
.color-picker-tool {
    max-width: 1000px;
    margin: 0 auto;
}

.color-picker-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.color-picker-section,
.color-info-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.color-picker-section h3,
.color-info-section h3 {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.color-picker-input-group {
    margin-bottom: 20px;
}

.color-picker-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

#color-picker-input {
    width: 100%;
    height: 60px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

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

.current-color-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.current-color-preview {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.current-color-info {
    flex: 1;
}

.current-color-value {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.color-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.save-color-btn,
.copy-color-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-color-btn {
    background: #17a2b8;
    color: white;
}

.save-color-btn:hover {
    background: #138496;
}

.copy-color-btn {
    background: #28a745;
    color: white;
}

.copy-color-btn:hover {
    background: #218838;
}

.color-info {
    margin-top: 20px;
}

.color-info-grid {
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.info-item label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.copyable {
    font-family: 'Courier New', monospace;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.copyable:hover {
    background: #e9ecef;
}

.palette-generator {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.palette-generator h3 {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.palette-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.palette-type-select {
    padding: 10px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    min-width: 200px;
}

.generate-palette-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-palette-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.generated-palette {
    margin-top: 20px;
}

.color-palettes {
    display: grid;
    gap: 30px;
}

.palette-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.palette-section h4 {
    margin: 0 0 15px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.palette-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
}

.palette-color {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.palette-color:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

.palette-colors.generated .palette-color {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 5px;
}

.color-label {
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.recent-colors {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.recent-colors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.recent-colors-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.clear-recent-btn {
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.clear-recent-btn:hover {
    background: #c82333;
}

.no-recent {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin: 20px 0;
}

.tool-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
}

.error-message,
.success-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

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

/* Responsive Design for Color Tools */
@media (max-width: 768px) {
    .color-picker-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .input-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .input-group {
        min-width: auto;
    }
    
    .tool-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .convert-color-btn,
    .clear-inputs-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .result-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .result-label {
        min-width: auto;
    }
    
    .palette-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .palette-type-select,
    .generate-palette-btn {
        width: 100%;
    }
    
    .palette-colors {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        gap: 8px;
    }
    
    .palette-color {
        width: 40px;
        height: 40px;
    }
    
    .palette-colors.generated .palette-color {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .conversion-input-group {
        padding: 20px;
    }
    
    .color-picker-section,
    .color-info-section,
    .palette-generator,
    .palette-section,
    .recent-colors {
        padding: 20px;
    }
    
    .color-preview {
        height: 80px;
    }
    
    .current-color-display {
        flex-direction: column;
        text-align: center;
    }
    
    .color-actions {
        justify-content: center;
    }
    
    .tool-messages {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* Word Counter Tool Styles */
.word-counter-tool {
    max-width: 1000px;
    margin: 0 auto;
}

.word-counter-interface {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 30px;
}

.text-input-section {
    background: white;
    border-radius: 10px;
}

.text-input-section h3 {
    margin: 0 0 15px;
    color: #2c3e50;
    font-size: 1.3rem;
}

#word-counter-text {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#word-counter-text:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.text-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.text-actions .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.stats-panel {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.stats-panel h3 {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: grid;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.copy-stats {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-stats:hover {
    background: #e9ecef;
    border-color: #667eea;
    color: #667eea;
}

.copy-stats.copied {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.analysis-results,
.reading-time-results {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.analysis-results h4,
.reading-time-results h4 {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.analysis-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.analysis-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.analysis-section h5 {
    margin: 0 0 10px;
    color: #495057;
    font-size: 1.1rem;
}

.analysis-section p {
    margin: 5px 0;
    color: #6c757d;
}

.primary-time {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    text-align: center;
    margin: 20px 0;
}

.reading-speeds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.reading-speeds p {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
}

.word-count {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

/* IP Lookup Tool Styles */
.ip-lookup-tool {
    max-width: 800px;
    margin: 0 auto;
}

.ip-input-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.ip-input-section h3 {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.ip-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#ip-address-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#ip-address-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ip-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detected-ip {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.detected-ip strong {
    color: #495057;
}

.ip-lookup-results,
.ip-security-results {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.ip-lookup-results h4,
.ip-security-results h4 {
    margin: 0 0 25px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.ip-info-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.ip-info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ip-info-section h5 {
    margin: 0 0 15px;
    color: #495057;
    font-size: 1.2rem;
}

.ip-info-section p {
    margin: 8px 0;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-flag {
    width: 24px;
    height: auto;
    border-radius: 2px;
}

.security-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.security-warnings {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.security-warnings h5 {
    margin: 0 0 10px;
    color: #856404;
}

.security-warnings ul {
    margin: 0;
    padding-left: 20px;
    color: #856404;
}

.security-note {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.security-note p {
    margin: 0;
    color: #0c5460;
}

.ip-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Loading and Messages */
.loading-message {
    display: none;
    text-align: center;
    padding: 20px;
    color: #667eea;
    font-style: italic;
}

.loading-message i {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
    display: none;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .word-counter-interface {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-panel {
        order: -1;
    }
    
    .text-actions {
        justify-content: center;
    }
    
    .ip-input-group {
        flex-direction: column;
    }
    
    .ip-actions {
        justify-content: center;
    }
    
    .reading-speeds {
        grid-template-columns: 1fr;
    }
    
    .security-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tool-interface {
        padding: 20px;
    }
    
    .text-input-section,
    .stats-panel,
    .ip-input-section,
    .ip-lookup-results,
    .ip-security-results,
    .analysis-results,
    .reading-time-results {
        padding: 20px;
    }
    
    .primary-time {
        font-size: 1.5rem;
    }
    
    .text-actions .btn,
    .ip-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}
/* Popu
lar Tools Section Styles */
.file-circle-popular-tools-section {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

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

.popular-tools-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popular-tools-header p {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
    opacity: 0.8;
}

.popular-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.popular-tool-card {
    background: #fff;
    border: 2px solid #f1f3f4;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.popular-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.popular-tool-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.popular-tool-card:hover::before {
    transform: scaleX(1);
}

.popular-tool-card .tool-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    font-size: 24px;
}

.popular-tool-card .tool-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.popular-tool-card .tool-content {
    text-align: center;
}

.popular-tool-card .tool-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 12px;
}

.popular-tool-card .tool-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-tool-card .tool-name a:hover {
    color: #667eea;
}

.popular-tool-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-tool-link:hover {
    color: #667eea;
    text-decoration: none;
}

.popular-tool-card .tool-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 20px;
}

.popular-tool-card .tool-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #8e9aaf;
}

.popular-tool-card .tool-meta i {
    margin-right: 6px;
    color: #667eea;
}

.popular-tool-card .use-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.popular-tool-card .use-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    color: white;
}

.popular-tool-card .use-tool-btn i {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.popular-tool-card .use-tool-btn:hover i {
    transform: translateX(3px);
}

.popular-tools-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.view-all-tools-link {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: transparent;
}

.view-all-tools-link:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.view-all-tools-link i {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.view-all-tools-link:hover i {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-circle-popular-tools-section {
        padding: 30px 20px;
        margin: 30px 0;
    }
    
    .popular-tools-header h3 {
        font-size: 1.8rem;
    }
    
    .popular-tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .popular-tool-card {
        padding: 20px;
    }
    
    .popular-tool-card .tool-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .popular-tool-card .tool-icon img {
        width: 30px;
        height: 30px;
    }
    
    .popular-tool-card .tool-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .file-circle-popular-tools-section {
        padding: 25px 15px;
        margin: 25px 0;
    }
    
    .popular-tools-header h3 {
        font-size: 1.6rem;
    }
    
    .popular-tools-header p {
        font-size: 1rem;
    }
    
    .popular-tool-card {
        padding: 18px;
    }
    
    .popular-tool-card .use-tool-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Integration with existing template styles */
.fc-upload-template .file-circle-popular-tools-section,
.fc-all-in-one-template .file-circle-popular-tools-section {
    margin: 40px auto;
    max-width: 1200px;
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
    .file-circle-popular-tools-section {
        background: #1a1a1a;
        border-color: #333;
        color: #e9ecef;
    }
    
    .popular-tools-header h3 {
        color: #e9ecef;
    }
    
    .popular-tool-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .popular-tool-card .tool-name a {
        color: #e9ecef;
    }
    
    .popular-tool-card .tool-description {
        color: #adb5bd;
    }
}