/* Tool Page Common Styles */
.tool-page {
    padding-top: 0;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: #2196F3;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ddd;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

.tool-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-header::before {
    content: '📊';
    position: absolute;
    font-size: 300px;
    opacity: 0.05;
    top: -50px;
    left: -50px;
    animation: rotate 20s linear infinite;
}

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

.tool-header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-separator {
    opacity: 0.5;
}

.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

/* Barcode Container */
.barcode-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.12);
    overflow: hidden;
}

.barcode-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    padding: 45px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.barcode-header::before {
    content: '|||||||';
    position: absolute;
    font-size: 150px;
    opacity: 0.1;
    top: -20px;
    right: -20px;
    font-family: monospace;
    letter-spacing: 10px;
}

.barcode-header h2 {
    font-size: 38px;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.barcode-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 1;
}

.barcode-body {
    padding: 40px 30px;
}

/* Input Section */
.barcode-input-section {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.15);
}

.barcode-input-section h3 {
    color: #1976D2;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
}

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

.barcode-input-group label {
    display: block;
    font-weight: 700;
    color: #1976D2;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.barcode-input-group input[type="text"],
.barcode-input-group select,
.barcode-input-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 3px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: white;
    transition: all 0.3s;
}

.barcode-input-group input[type="text"]:focus,
.barcode-input-group select:focus,
.barcode-input-group textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

.barcode-input-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.barcode-input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2196F3;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

.barcode-input-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2196F3;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

.barcode-input-group input[type="color"] {
    width: 100%;
    height: 50px;
    border: 3px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    cursor: pointer;
    background: white;
    padding: 5px;
}

.input-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.range-value {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #1976D2;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 10px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label span {
    font-weight: 600;
    color: #1976D2;
    font-size: 14px;
}

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

/* Buttons */
.barcode-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.barcode-btn-generate {
    width: 100%;
    background: white;
    color: #2196F3;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.barcode-btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.barcode-btn-primary {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.barcode-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.barcode-btn-download {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.barcode-btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.barcode-btn-secondary {
    background: white;
    color: #2196F3;
    border: 3px solid #2196F3;
}

.barcode-btn-secondary:hover {
    background: #2196F3;
    color: white;
    transform: translateY(-2px);
}

/* Preview Section */
.barcode-preview-section {
    background: white;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 3px solid #E3F2FD;
}

.barcode-preview-section h3 {
    color: #2196F3;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.barcode-preview-box {
    background: #f8f9fa;
    border: 3px dashed #2196F3;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#barcodePreview {
    max-width: 100%;
    height: auto;
}

.preview-hint {
    color: #999;
    font-size: 16px;
    font-style: italic;
}

.barcode-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Examples Section */
.barcode-examples {
    background: white;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 2px solid #f0f0f0;
}

.barcode-examples h3 {
    color: #2196F3;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.example-card {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
}

.example-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.example-title {
    font-weight: 700;
    color: #1976D2;
    font-size: 16px;
    margin-bottom: 8px;
}

.example-code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* Info Box */
.barcode-info-box {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-left: 5px solid #FF9800;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.barcode-info-box h4 {
    color: #E65100;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

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

.info-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.7;
    font-size: 14px;
    color: #555;
}

.info-item strong {
    color: #E65100;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Bulk Generation Section */
.barcode-bulk-section {
    background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.barcode-bulk-section h3 {
    color: #7B1FA2;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.barcode-bulk-section p {
    color: #666;
    margin-bottom: 15px;
}

.barcode-bulk-section textarea {
    width: 100%;
    padding: 15px;
    border: 3px solid rgba(123, 31, 162, 0.3);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    margin-bottom: 15px;
}

.bulk-barcode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.bulk-barcode-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bulk-barcode-item svg {
    max-width: 100%;
    height: auto;
}

/* SEO Content Section */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #333;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article ul,
.content-article ol {
    margin-bottom: 25px;
    padding-left: 30px;
    color: #666;
}

.content-article li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-article strong {
    color: #333;
    font-weight: 700;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

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

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #2196F3;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
}

/* Notification */
.barcode-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    font-size: 16px;
    font-weight: 600;
    z-index: 10000;
    animation: slideInUp 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.barcode-notification.hide {
    animation: slideOutDown 0.3s ease-out;
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .barcode-format-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-subtitle {
        font-size: 16px;
    }
    
    .tool-icon-large {
        font-size: 52px;
    }
    
    .tool-meta {
        font-size: 14px;
    }

    .barcode-header h2 {
        font-size: 28px;
    }
    
    .barcode-body {
        padding: 30px 20px;
    }
    
    .barcode-input-section,
    .barcode-preview-section,
    .barcode-examples,
    .barcode-bulk-section {
        padding: 25px 20px;
    }
    
    .barcode-format-grid {
        grid-template-columns: 1fr;
    }
    
    .barcode-examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .barcode-actions {
        flex-direction: column;
    }
    
    .barcode-btn {
        width: 100%;
    }
    
    .bulk-barcode-grid {
        grid-template-columns: 1fr;
    }
    
    .content-article h2 {
        font-size: 26px;
    }
    
    .content-article h3 {
        font-size: 20px;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .barcode-header {
        padding: 35px 20px;
    }
    
    .barcode-header h2 {
        font-size: 24px;
    }
    
    .barcode-examples-grid {
        grid-template-columns: 1fr;
    }
    
    .barcode-preview-box {
        padding: 20px;
    }
    
    .barcode-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        font-size: 14px;
    }
}