/**
 * Flower Card Generator - Main Stylesheet
 * 
 * This stylesheet provides comprehensive styling for the flower card generator application,
 * featuring a nature-friendly green color scheme and responsive design for all devices.
 * 
 * @author TomasHollosi
 * @version 1.0
 * @license MIT
 */

/* ============================================================================
   GLOBAL STYLES AND RESET
   ============================================================================ */

/* Base body styling with nature-friendly green theme */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f1f8f4; /* Light green background */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 10px;
    color: #2d5a3d; /* Dark green text */
    -webkit-text-size-adjust: 100%; /* Prevent text scaling on iOS */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    touch-action: manipulation; /* Optimize touch interactions */
}

/* Main application container */
.app-container {
    width: 100%;
    max-width: 1000px;
    text-align: left;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    margin: 0 auto;
}

/* Application header styling */
.app-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8f2ea;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    padding-right: 60px; /* Make space for fixed hamburger menu */
}

.header-text {
    text-align: left;
    flex: 1;
}

.app-header h1 {
    color: #2d5a3d;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.app-header p {
    color: #5a7c63;
    font-size: 16px;
    margin: 0;
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: #2d5a3d !important;
    border: 2px solid #1e3f2a;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    z-index: 9999;
    position: fixed;
    top: 20px;
    right: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 1 !important;
    visibility: visible !important;
}

/* Add text content as fallback */
.hamburger-menu::after {
    content: "☰";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    line-height: 1;
}

.hamburger-menu:hover {
    background: #1e3f2a;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.hamburger-menu span {
    display: none; /* Hide spans since we're using Unicode character */
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: white;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.menu-overlay.active .menu-content {
    transform: translateX(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8f2ea;
}

.menu-header h2 {
    color: #2d5a3d;
    margin: 0;
    font-size: 24px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 28px;
    color: #2d5a3d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu:hover {
    color: #1e3f2a;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: block;
    padding: 15px;
    color: #2d5a3d;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-item:hover {
    background: #f1f8f4;
    color: #1e3f2a;
}

/* Help Sections */
.help-sections {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.help-sections.active {
    opacity: 1;
    visibility: visible;
}

.help-section {
    display: none;
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.help-section.active {
    display: block;
}

.help-content {
    padding: 30px;
    position: relative;
}

.help-content h2 {
    color: #2d5a3d;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

/* Close button for help sections */
.help-section .close-help {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #2d5a3d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.help-section .close-help:hover {
    background: rgba(45, 90, 61, 0.1);
    color: #1e3f2a;
}

.help-item {
    margin-bottom: 25px;
}

.help-item h3 {
    color: #2d5a3d;
    font-size: 18px;
    margin-bottom: 10px;
}

.help-item ol, .help-item ul {
    padding-left: 20px;
}

.help-item li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-info, .purpose-info, .examples-info {
    line-height: 1.6;
}

.contact-info p, .purpose-info p, .examples-info p {
    margin-bottom: 10px;
}

.example-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #2d5a3d;
}

.example-card h4 {
    color: #2d5a3d;
    margin-bottom: 10px;
}

/* Mobile responsive for menu */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-text {
        text-align: center;
    }
    
    .hamburger-menu {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .menu-content {
        width: 100%;
        max-width: 300px;
    }
    
    .help-content {
        padding: 20px;
    }
}

/* ============================================================================
   FORM STYLES
   ============================================================================ */

/* Form container styling */
.form-container {
    margin-bottom: 30px;
    text-align: left;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Form labels */
label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #34495e;
}

/* Form inputs and textareas */
input, textarea {
    width: 100%;
    margin: 12px 0;
    padding: 16px;
    font-size: 16px;
    border: 2px solid #d4e6d9; /* Light green border */
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    resize: vertical;
    max-width: 100%;
    min-height: 44px; /* Touch-friendly minimum height */
    -webkit-appearance: none;
    -webkit-border-radius: 8px;
    background-clip: padding-box;
}

/* Input focus states */
input:focus, textarea:focus {
    border-color: #4a7c59; /* Green focus border */
    box-shadow: 0 0 5px rgba(74, 124, 89, 0.3);
    outline: none;
}

/* ============================================================================
   BUTTON STYLES
   ============================================================================ */

/* Base button styling */
button {
    padding: 16px 24px;
    font-size: 16px;
    margin: 8px;
    cursor: pointer;
    border: none;
    background-color: #4a7c59; /* Primary green button */
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    min-height: 48px; /* Touch-friendly minimum height */
    min-width: 48px;
    touch-action: manipulation;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    box-sizing: border-box;
}

/* Button hover effects */
button:hover {
    background-color: #3d6b4a; /* Darker green on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 124, 89, 0.4);
}

/* Disabled button state */
button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* ============================================================================
   TABBED INTERFACE
   ============================================================================ */

/* Tab container styling */
.tabs-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Tab navigation */
.tabs-nav {
    display: flex;
    background: #e8f2ea; /* Light green background */
    border-bottom: 1px solid #d4e6d9;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tab buttons */
.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 16px 20px;
    background: transparent;
    color: #5a7c63;
    border: none;
    border-radius: 0;
    margin: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

/* Active tab styling */
.tab-btn.active {
    background: #4a7c59; /* Green background for active tab */
    color: white;
}

/* Tab content sections */
.tab-content {
    display: none;
    padding: 30px;
}

/* Active tab content */
.tab-content.active {
    display: block;
}

/* ============================================================================
   PREVIEW SECTION
   ============================================================================ */

/* Preview container */
.preview-container {
    margin-top: 30px;
    text-align: center;
}

.preview-container h2 {
    color: #2d5a3d;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Business card styling */
.business-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #e8f2ea;
}

/* Card content layout */
.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Text container within card */
.text-container {
    text-align: left;
}

.text-container h3 {
    color: #2d5a3d;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.text-container h3:first-child {
    font-size: 24px;
    margin-bottom: 8px;
}

.text-container h3:nth-child(2) {
    font-size: 18px;
    font-style: italic;
    color: #5a7c63;
    margin-bottom: 20px;
}

.text-container p {
    color: #5a7c63;
    font-size: 16px;
    line-height: 1.6;
    margin: 12px 0;
}

.text-container .label {
    font-weight: 600;
    color: #2d5a3d;
}

/* ============================================================================
   QR CODE SECTION
   ============================================================================ */

/* QR tab container */
.qr-tab-container {
    text-align: center;
}

.qr-tab-container h2 {
    color: #2d5a3d;
    margin-bottom: 15px;
}

/* QR description text */
.qr-description {
    color: #5a7c63;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* QR preview section */
.qr-preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

/* QR info display */
.qr-info {
    text-align: center;
}

.qr-info h3 {
    color: #2d5a3d;
    font-size: 20px;
    margin-bottom: 10px;
}

.qr-url {
    color: #5a7c63;
    font-size: 14px;
    word-break: break-all;
}

/* QR container */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* QR actions */
.qr-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* QR usage information */
.qr-usage-info {
    background: #f1f9f3;
    border: 1px solid #d4e6d9;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.qr-usage-info h4 {
    color: #2d5a3d;
    font-size: 18px;
    margin-bottom: 15px;
}

.qr-usage-info ul {
    color: #5a7c63;
    line-height: 1.6;
    padding-left: 20px;
}

.qr-usage-info li {
    margin-bottom: 8px;
}

/* ============================================================================
   UPLOAD SECTION
   ============================================================================ */

/* Upload section styling */
.upload-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f1f9f3;
    border-radius: 8px;
    border: 1px solid #d4e6d9;
}

.upload-section label {
    display: block;
    margin-bottom: 12px;
    color: #2d5a3d;
    font-weight: 600;
}

.image-upload-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.image-upload-buttons button {
    flex: 1;
    max-width: 200px;
    transition: all 0.3s ease;
    min-height: 44px;
}

.image-upload-buttons button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.image-upload-buttons button:disabled:hover {
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Image Container Styles */
.image-container {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    justify-content: center;
}

.image-container img {
    max-width: 48%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-container img:only-child {
    max-width: 100%;
}

/* ============================================================================
   BUTTON CONTAINERS
   ============================================================================ */

/* Button container layout */
.button-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

/* Special button styling */
#export-ftp-btn {
    background: #52a862; /* Different green for FTP export */
}

#export-ftp-btn:hover {
    background: #4a9a5a;
}

#test-ftp-btn, #regenerate-qr-btn {
    background: #7b9d3f; /* Olive green for test/regenerate buttons */
}

#test-ftp-btn:hover, #regenerate-qr-btn:hover {
    background: #6a8a35;
}

/* Template buttons styling */
#export-template-btn, #import-template-btn {
    background: #7b9d3f; /* Olive green for template buttons */
}

#export-template-btn:hover, #import-template-btn:hover {
    background: #6a8a35;
}

/* FTP settings buttons styling */
#export-ftp-settings-btn, #import-ftp-settings-btn {
    background: #7b9d3f; /* Olive green for FTP settings buttons */
}

#export-ftp-settings-btn:hover, #import-ftp-settings-btn:hover {
    background: #6a8a35;
}

/* ============================================================================
   STATUS MESSAGES
   ============================================================================ */

/* Status message styling */
.status-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ============================================================================
   PASSWORD INPUT WITH COPY BUTTON
   ============================================================================ */

/* Password input container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    flex: 1;
    margin: 12px 0;
    padding-right: 50px; /* Make space for copy button */
}

/* Copy button styling */
.copy-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #4a7c59;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
    min-height: 32px;
    min-width: 36px;
    margin: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: #3d6b4a;
    transform: translateY(-50%) scale(1.05);
}

.copy-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.copy-btn.copied {
    background: #52a862;
    animation: copySuccess 0.3s ease;
}

@keyframes copySuccess {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); }
    100% { transform: translateY(-50%) scale(1); }
}

/* ============================================================================
   PICTOGRAM SECTION STYLING
   ============================================================================ */

/* Pictogram configuration section */
.pictogram-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8fdf9;
    border-radius: 10px;
    border: 1px solid #d4e6d9;
}

.pictogram-section h3 {
    color: #2d5a3d;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

/* Display mode toggle */
.display-mode-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #d4e6d9;
    flex: 1;
    min-width: 120px;
    justify-content: center;
    text-align: center;
}

.toggle-label:hover {
    background: #f1f8f4;
    border-color: #4a7c59;
}

.toggle-label input[type="radio"] {
    margin: 0;
    width: auto;
    min-height: auto;
}

.toggle-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #2d5a3d;
}

.toggle-label:has(input:checked) {
    background: #4a7c59;
    color: white;
    border-color: #2d5a3d;
}

.toggle-label:has(input:checked) span {
    color: white;
}

/* Pictogram options container */
.pictogram-options {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pictogram groups */
.pictogram-group {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8f2ea;
}

.pictogram-group > label {
    color: #2d5a3d;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    display: block;
}

/* Pictogram choices */
.pictogram-choices {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pictogram-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e8f2ea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-width: 100px;
    text-align: center;
}

.pictogram-choice:hover {
    border-color: #4a7c59;
    background: #f1f8f4;
}

.pictogram-choice input {
    margin: 0;
    width: auto;
    min-height: auto;
}

.pictogram-choice:has(input:checked) {
    border-color: #2d5a3d;
    background: #4a7c59;
    color: white;
}

.pictogram-choice:has(input:checked) .pictogram-text {
    color: white;
    font-weight: 600;
}

.pictogram-icon {
    font-size: 32px;
    display: block;
    line-height: 1.2;
}

.pictogram-text {
    font-size: 14px;
    color: #5a7c63;
    font-weight: 500;
}

/* Dimension inputs */
.dimension-inputs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.dimension-input {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e8f2ea;
}

.dimension-input label {
    font-weight: 600;
    color: #2d5a3d;
    margin: 0;
    white-space: nowrap;
}

.dimension-input input {
    flex: 1;
    margin: 0;
    padding: 8px;
    border: 1px solid #d4e6d9;
    border-radius: 4px;
}

.dimension-icon {
    font-size: 24px;
    color: #4a7c59;
}

/* Winter resistance styling */
.winter-resistance-input {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.winter-choice {
    align-self: flex-start;
}

.temperature-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: #f1f8f4;
    border-radius: 6px;
    border: 1px solid #d4e6d9;
    margin-top: 10px;
}

.temperature-range label {
    font-weight: 600;
    color: #2d5a3d;
    margin: 0;
    font-size: 14px;
}

.temperature-inputs {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.temperature-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.temperature-input label {
    font-weight: 600;
    color: #2d5a3d;
    margin: 0;
    font-size: 12px;
}

.temperature-range input,
.temperature-input input {
    margin: 0;
    padding: 8px;
    border: 1px solid #d4e6d9;
    border-radius: 4px;
}

/* Preview pictogram display */
.pictogram-display {
    margin-top: 20px;
    padding: 15px;
    background: #f8fdf9;
    border-radius: 8px;
    border: 1px solid #d4e6d9;
    position: relative;
}



/* Adjust spacing when text descriptions are hidden */
.business-card .text-container {
    transition: all 0.3s ease;
}

.pictogram-display.checkbox-mode {
    margin-top: 10px;
}

.pictogram-info-section h4 {
    color: #2d5a3d;
    font-size: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.pictogram-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    min-height: 40px;
}

.pictogram-row:empty {
    display: none;
}

.pictogram-row .icon {
    font-size: 28px;
    width: 32px;
    text-align: center;
}

.pictogram-row .text {
    flex: 1;
    color: #2d5a3d;
    font-weight: 500;
}

.pictogram-row .value {
    color: #5a7c63;
    font-weight: 400;
}

/* ============================================================================
   TEMPLATE SECTION STYLING
   ============================================================================ */



/* ============================================================================
   INFO BOX STYLING
   ============================================================================ */

/* Info box for instructions */
.info-box {
    background: linear-gradient(135deg, #e8f5eb, #f1f9f3);
    border: 1px solid #4a7c59;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-box p {
    color: #2d5a3d;
    margin-bottom: 10px;
    font-weight: 500;
}

.info-box ol {
    color: #5a7c63;
    padding-left: 20px;
    line-height: 1.6;
}

.info-box li {
    margin-bottom: 8px;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Mobile and tablet responsive styles */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .app-container {
        padding: 15px;
        border-radius: 10px;
    }
    
    .app-header h1 {
        font-size: 24px;
    }
    
    .app-header p {
        font-size: 14px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        min-width: 100px;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .form-container {
        padding: 15px;
    }
    
    input, textarea {
        padding: 12px;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px;
    }
    
    button {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 44px;
        margin: 6px;
    }
    
    .button-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .button-container button {
        width: 100%;
        margin: 0;
    }
    
    .business-card {
        margin: 0 10px;
    }
    
    .card-content {
        padding: 20px;
        gap: 15px;
    }
    
    .text-container h3 {
        font-size: 20px;
    }
    
    .text-container h3:first-child {
        font-size: 22px;
    }
    
    .text-container h3:nth-child(2) {
        font-size: 16px;
    }
    
    .text-container p {
        font-size: 15px;
    }
    
    .qr-preview-section {
        gap: 20px;
    }
    
    .qr-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .qr-actions button {
        width: 100%;
    }
    
    .qr-usage-info {
        padding: 15px;
    }
    
    .qr-usage-info h4 {
        font-size: 16px;
    }
    
    .copy-btn {
        min-height: 28px;
        min-width: 32px;
        font-size: 12px;
        padding: 6px 8px;
    }

    .business-card h3 {
        font-size: 20px;
        margin: 0;
    }
    
    .business-card p {
        font-size: 15px;
        margin: 8px 0;
    }
    
    .info-box {
        padding: 12px;
    }
    
    .info-box ol {
        padding-left: 15px;
    }
    
    .info-box li {
        margin-bottom: 6px;
        font-size: 14px;
    }
    
    /* Pictogram section mobile styles */
    .display-mode-toggle {
        flex-direction: column;
        gap: 8px;
    }
    
    .toggle-label {
        padding: 8px 10px;
        font-size: 13px;
        min-width: auto;
    }
    
    .pictogram-choices {
        gap: 10px;
    }
    
    .pictogram-choice {
        min-width: 80px;
        padding: 8px;
    }
    
    .pictogram-icon {
        font-size: 28px;
    }
    
    .pictogram-text {
        font-size: 12px;
    }
    
    .dimension-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .dimension-input {
        min-width: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .pictogram-display {
        padding: 10px;
    }
    
    .pictogram-row {
        padding: 6px;
        min-height: 35px;
    }
    
    .pictogram-row .icon {
        font-size: 24px;
        width: 28px;
    }
    
    .temperature-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .temperature-input {
        flex: none;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .app-container {
        padding: 10px;
        border-radius: 8px;
    }
    
    .app-header h1 {
        font-size: 22px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .form-container {
        padding: 12px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .text-container h3 {
        font-size: 18px;
    }
    
    .text-container h3:first-child {
        font-size: 20px;
    }
    
    .text-container h3:nth-child(2) {
        font-size: 15px;
    }
    
    .text-container p {
        font-size: 14px;
    }
    
    .qr-usage-info {
        padding: 12px;
    }
    
    .info-box {
        padding: 10px;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

/* Print-specific styles for better printing */
@media print {
    body {
        background-color: white;
        padding: 0;
    }
    
    .app-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .header {
        background: #4a7c59 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .tabs-nav,
    .button-container,
    .upload-section {
        display: none;
    }
    
    .tab-content {
        display: block !important;
        padding: 0;
    }
    
    .business-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================================================
   INTERNAL FIELDS STYLES
   ============================================================================ */

.internal-fields-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fdf9;
    border-radius: 8px;
    border: 1px solid #d4e6d9;
}

.internal-fields-section h3 {
    color: #2d5a3d;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #4a7c59;
    padding-bottom: 5px;
}

.section-description {
    color: #5a7c63;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

.template-section {
    margin-top: 30px;
    padding: 20px;
    background: #f1f8f4;
    border-radius: 8px;
    border: 1px solid #c4e6d4;
}

.template-section h3 {
    color: #2d5a3d;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #4a7c59;
    padding-bottom: 5px;
}

/* Mobile responsive for internal fields */
@media (max-width: 768px) {
    .internal-fields-section,
    .template-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .internal-fields-section h3,
    .template-section h3 {
        font-size: 16px;
    }
    
    .image-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .image-container img {
        max-width: 100%;
    }
    
    .image-upload-buttons {
        flex-direction: column;
        gap: 8px;
    }
}
