/* Tech Pack Enhanced Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #4b5563;
    --background-color: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --border-radius: 0.75rem;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.08);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    
    /* Section Colors */
    --overview-color: #10b981;
    --fabric-color: #3b82f6;
    --construction-color: #f59e0b; 
    --print-color: #8b5cf6;
    --packaging-color: #ec4899;
}

/* Base Container */
.tech-pack-container {
    font-family: var(--font-primary);
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    color: var(--secondary-color);
    line-height: 1.6;
    overflow: hidden;
}

/* Header Section */
.tech-pack-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to right, rgba(37, 99, 235, 0.03), rgba(37, 99, 235, 0.08));
}

.tech-pack-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.tech-pack-title:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), rgba(37, 99, 235, 0.5));
    border-radius: 3px;
}

/* Navigation */
.tech-pack-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 1.5rem -1rem 0;
    padding: 0 1rem;
    gap: 0.5rem;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.tech-pack-nav::-webkit-scrollbar {
    display: none;
}

.tech-pack-tab {
    white-space: nowrap;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--secondary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
}

.tech-pack-tab i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.tech-pack-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
}

.tech-pack-tab:hover:not(.active) {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Content Container */
.tech-pack-content {
    padding: 2rem;
}

/* Tab Content */
.tech-pack-tab-content {
    display: none;
}

.tech-pack-tab-content.active {
    display: block;
}

/* Section Styling */
.tech-pack-section {
    margin-bottom: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tech-pack-section:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.section-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-header .section-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.25rem;
}

/* Section-specific colors */
.overview-section .section-header {
    border-bottom: 2px solid var(--overview-color);
}

.overview-section .section-icon {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--overview-color);
}

.fabrics-section .section-header {
    border-bottom: 2px solid var(--fabric-color);
}

.fabrics-section .section-icon {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--fabric-color);
}

.construction-section .section-header {
    border-bottom: 2px solid var(--construction-color);
}

.construction-section .section-icon {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--construction-color);
}

.prints-section .section-header {
    border-bottom: 2px solid var(--print-color);
}

.prints-section .section-icon {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--print-color);
}

.packaging-section .section-header {
    border-bottom: 2px solid var(--packaging-color);
}

.packaging-section .section-icon {
    background-color: rgba(236, 72, 153, 0.1);
    color: var(--packaging-color);
}

.section-content {
    padding: 1.5rem;
    position: relative;
}

/* Cards Layout */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.card {
    background: var(--white);
    border-radius: 0.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.card-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #1a202c;
}

.card-content {
    font-size: 0.9375rem;
}

/* Detail Rows */
.detail-row {
    display: flex;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.detail-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    flex: 0 0 40%;
    font-weight: 500;
    color: #4b5563;
}

.detail-value {
    flex: 0 0 60%;
    color: #1a202c;
}

/* Tables */
.tech-pack-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.25rem 0;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.tech-pack-table th {
    background: #f3f4f6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #4b5563;
    padding: 0.75rem 1rem;
    text-align: left;
}

.tech-pack-table td {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
}

.tech-pack-table tr:nth-child(even) {
    background: #f9fafb;
}

.tech-pack-table tr:hover {
    background: #f3f4f6;
}

/* Tooltip Styling */
.tech-term {
    position: relative;
    border-bottom: 1px dotted var(--primary-color);
    cursor: help;
}

.tooltip {
    position: absolute;
    z-index: 10;
    background: #1a202c;
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    width: 200px;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    pointer-events: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1a202c transparent transparent transparent;
}

/* Footer */
.tech-pack-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: #f9fafb;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-btn i {
    margin-right: 0.5rem;
}

.download-btn.primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.download-btn.primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
}

.download-btn.secondary {
    background: var(--white);
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.download-btn.secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Care Instructions */
.care-instructions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.care-item {
    background: #f3f4f6;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #4b5563;
}

/* Special Items */
.special-note {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
    color: #92400e;
    border-radius: 0 0.25rem 0.25rem 0;
}

/* Timeline for Construction */
.construction-timeline {
    position: relative;
    margin-left: 2rem;
    margin-top: 2rem;
}

.construction-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary-color);
    transform: translateX(-50%);
}

.timeline-content {
    background: var(--white);
    border-radius: 0.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a202c;
}

.timeline-description {
    color: #4b5563;
}

/* Collapsible Sections */
.collapsible-section .section-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible-section.collapsed .section-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.section-header::after {
    content: '−';
    position: absolute;
    right: 1.5rem;
    font-size: 1.25rem;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.collapsible-section.collapsed .section-header::after {
    content: '+';
}

/* Responsive Design */
@media (max-width: 768px) {
    .tech-pack-container {
        margin: 1rem;
        border-radius: 0.5rem;
    }
    
    .tech-pack-header, .tech-pack-content, .tech-pack-footer {
        padding: 1.25rem;
    }
    
    .tech-pack-title {
        font-size: 1.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-label, .detail-value {
        flex: 0 0 100%;
    }
    
    .detail-label {
        margin-bottom: 0.25rem;
    }
    
    .tech-pack-table {
        display: block;
        overflow-x: auto;
    }
    
    .construction-timeline {
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .tech-pack-nav {
        padding: 0 0.5rem;
    }
    
    .tech-pack-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .section-header h2 {
        font-size: 1.125rem;
    }
    
    .section-header .section-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    body, html {
        width: 100%;
        margin: 0;
        padding: 0;
        background: white;
    }
    
    .tech-pack-container {
        box-shadow: none;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .tech-pack-section {
        box-shadow: none;
        border: 1px solid #e5e7eb;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .tech-pack-nav, .tech-pack-footer, .tech-pack-tab-content:not(.active) {
        display: none;
    }
    
    .tech-pack-tab-content.active {
        display: block;
    }
    
    .tooltip {
        display: none !important;
    }
    
    .tech-term {
        border-bottom: none;
    }
    
    .section-header::after {
        display: none;
    }
    
    .collapsible-section.collapsed .section-content {
        max-height: none;
        display: block;
        padding: 1.5rem;
    }
    
    .cards-grid {
        display: block;
    }
    
    .card {
        margin-bottom: 1.25rem;
        page-break-inside: avoid;
    }
    
    .tech-pack-table {
        page-break-inside: avoid;
    }

    /* Hide non-essential elements */
    .no-print {
        display: none !important;
    }

    /* Ensure proper page breaks */
    .page-break {
        page-break-after: always;
    }

    /* Header styles */
    .tech-pack-header {
        text-align: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #000;
    }

    /* Section styles */
    .tech-pack-section {
        margin-bottom: 2rem;
        page-break-inside: avoid;
    }

    /* Table styles */
    .tech-pack-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1rem;
    }

    .tech-pack-table th,
    .tech-pack-table td {
        border: 1px solid #000;
        padding: 0.5rem;
        text-align: left;
    }

    .tech-pack-table th {
        background-color: #f3f4f6;
        font-weight: bold;
    }

    /* Image styles */
    .tech-pack-image {
        max-width: 100%;
        height: auto;
        margin: 1rem 0;
    }

    /* Measurement styles */
    .measurement-table {
        width: 100%;
        border-collapse: collapse;
        margin: 1rem 0;
    }

    .measurement-table th,
    .measurement-table td {
        border: 1px solid #000;
        padding: 0.5rem;
        text-align: center;
    }

    /* Footer styles */
    .tech-pack-footer {
        text-align: center;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid #000;
        font-size: 0.875rem;
        color: #666;
    }

    /* Ensure proper spacing */
    .tech-pack-content {
        margin: 0;
        padding: 0;
    }

    /* Ensure proper font sizes */
    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1 {
        font-size: 18pt;
    }

    h2 {
        font-size: 16pt;
    }

    h3 {
        font-size: 14pt;
    }

    /* Ensure proper colors */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Regular screen styles */
.tech-pack-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tech-pack-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.tech-pack-section {
    margin-bottom: 2rem;
}

.tech-pack-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.tech-pack-table th,
.tech-pack-table td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.tech-pack-table th {
    background-color: #f3f4f6;
    font-weight: bold;
}

.tech-pack-image {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
}

.measurement-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.measurement-table th,
.measurement-table td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: center;
}

.tech-pack-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}

/* Print button styles */
.print-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #3b82f6;
    color: white;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.print-button:hover {
    background-color: #2563eb;
}

.print-button i {
    margin-right: 0.5rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .tech-pack-container {
        padding: 1rem;
    }

    .tech-pack-table th,
    .tech-pack-table td,
    .measurement-table th,
    .measurement-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
} 