/* ================================================
   Modern Hardware Settings - Project View Style
   ================================================ */

/* CSS Variables - Matching Project View */
:root {
    --hw-primary: rgb(43, 62, 75);
    --hw-primary-light: rgba(43, 62, 75, 0.7);
    --hw-secondary: rgb(63, 161, 77);
    --hw-secondary-light: rgba(63, 161, 77, 0.5);
    --hw-accent: #4CAF50;
    --hw-danger: #e74c3c;
    --hw-warning: #f39c12;
    --hw-info: #3498db;
    --hw-background: #f5f7fa;
    --hw-card-bg: rgba(255, 255, 255, 0.95);
    --hw-border: #d3d3d3;
    --hw-text: #333;
    --hw-text-light: #666;
    --hw-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --hw-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
    --hw-radius: 16px;
    --hw-radius-sm: 8px;
    --hw-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
#settings-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Exo', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ================================================
   Tab Navigation - Modern Horizontal Tabs
   ================================================ */
.hw-tab-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--hw-card-bg);
    padding: 12px;
    border-radius: var(--hw-radius);
    margin-bottom: 30px;
    box-shadow: var(--hw-shadow);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.hw-tab-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--hw-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--hw-text-light);
    cursor: pointer;
    transition: var(--hw-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hw-tab-btn:hover {
    background: rgba(63, 161, 77, 0.1);
    color: var(--hw-secondary);
    border-color: rgba(63, 161, 77, 0.3);
}

.hw-tab-btn.active {
    background: var(--hw-secondary);
    color: white;
    border-color: var(--hw-secondary);
    box-shadow: 0 4px 15px rgba(63, 161, 77, 0.3);
}

.hw-tab-btn .tab-icon {
    font-size: 18px;
}

/* Tab Sections */
.hw-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.hw-section.active {
    display: block;
}

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

/* ================================================
   Section Headers
   ================================================ */
h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--hw-primary);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--hw-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--hw-secondary) 0%, var(--hw-accent) 100%);
    border-radius: 2px;
}

/* ================================================
   Table Container - Card Style
   ================================================ */
.table-container {
    background: var(--hw-card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--hw-radius);
    margin-bottom: 20px;
    box-shadow: var(--hw-shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: var(--hw-transition);
}

.table-container:hover {
    box-shadow: var(--hw-shadow-hover);
}

/* Table Wrapper for horizontal scroll */
.table-wrapper {
    max-height: 600px;
    overflow: auto;
}

/* ================================================
   Table Styling
   ================================================ */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 800px;
}

thead {
    background: var(--hw-primary);
    position: sticky;
    top: 0;
    z-index: 10;
}

thead th {
    color: white !important;
    padding: 16px 14px;
    text-align: left;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    white-space: nowrap;
}

thead th:first-child {
    border-radius: 0;
}

thead th:last-child {
    border-radius: 0;
    position: sticky;
    right: 0;
    background: var(--hw-primary);
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
}

tbody tr {
    transition: var(--hw-transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

tbody tr:hover {
    background: rgba(63, 161, 77, 0.08);
}

tbody td {
    padding: 14px;
    border: none;
    vertical-align: middle;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

tbody td:last-child {
    position: sticky;
    right: 0;
    background: inherit;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

/* ================================================
   Action Buttons
   ================================================ */
.action-btn {
    background: var(--hw-danger);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 3px;
    transition: var(--hw-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-btn.edit {
    background: var(--hw-secondary);
}

.action-btn.duplicate {
    background: var(--hw-info);
}

.action-btn.delete {
    background: var(--hw-danger);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-btn.edit:hover {
    background: #27ae60;
}

.action-btn.duplicate:hover {
    background: #2980b9;
}

.action-btn.delete:hover {
    background: #c0392b;
}

/* ================================================
   Add Button - Primary CTA
   ================================================ */
.add-item {
    background: linear-gradient(135deg, var(--hw-secondary) 0%, var(--hw-accent) 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--hw-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 25px auto;
    box-shadow: 0 4px 20px rgba(63, 161, 77, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(63, 161, 77, 0.4);
}

.add-item:active {
    transform: translateY(-1px);
}

/* ================================================
   Popup/Modal - Project View Style
   ================================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 9, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--hw-transition);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: var(--hw-card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--hw-radius);
    padding: 0;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.95) translateY(20px);
    transition: var(--hw-transition);
    display: flex;
    flex-direction: column;
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
}

/* Popup Header */
.popup-header {
    background: var(--hw-primary);
    color: white;
    padding: 20px 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popup-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.popup-close {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--hw-transition);
}

.popup-close:hover {
    background: var(--hw-danger);
    border-color: var(--hw-danger);
    transform: rotate(90deg);
}

/* ================================================
   File Upload Section - Enhanced
   ================================================ */
.file-upload-section {
    background: linear-gradient(135deg, rgba(63, 161, 77, 0.05) 0%, rgba(76, 175, 80, 0.1) 100%);
    border: 2px dashed var(--hw-secondary);
    border-radius: var(--hw-radius-sm);
    padding: 25px;
    margin: 20px 30px;
    transition: var(--hw-transition);
}

.file-upload-section:hover {
    border-color: var(--hw-accent);
    background: linear-gradient(135deg, rgba(63, 161, 77, 0.08) 0%, rgba(76, 175, 80, 0.15) 100%);
}

.file-upload-section h4 {
    color: var(--hw-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-section-content p {
    color: var(--hw-text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.upload-container {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

#hardware-file-upload,
#extraction-prompt {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid var(--hw-border);
    border-radius: var(--hw-radius-sm);
    background: white;
    font-size: 14px;
    transition: var(--hw-transition);
}

#hardware-file-upload:focus,
#extraction-prompt:focus {
    border-color: var(--hw-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 161, 77, 0.1);
}

#extraction-prompt {
    resize: vertical;
    min-height: 80px;
}

.extract-btn {
    background: linear-gradient(135deg, var(--hw-info) 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--hw-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--hw-transition);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    white-space: nowrap;
}

.extract-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

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

/* ================================================
   Form Styling
   ================================================ */
.popup-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 25px 30px;
    overflow-y: auto;
    max-height: calc(90vh - 250px);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hw-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    background: white;
    border: 2px solid var(--hw-border);
    border-radius: var(--hw-radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    transition: var(--hw-transition);
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--hw-secondary);
    box-shadow: 0 0 0 3px rgba(63, 161, 77, 0.1);
}

.form-input:hover:not(:focus) {
    border-color: var(--hw-secondary-light);
}

/* File Input Enhanced */
.form-input[type="file"] {
    padding: 10px 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
    border-style: dashed;
}

.form-input[type="file"]:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: var(--hw-secondary);
}

/* ================================================
   File Management (bestehende Dateien)
   ================================================ */
.file-existing-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f7f0 0%, #e8f5e9 100%);
    border: 1px solid var(--hw-secondary-light);
    border-radius: var(--hw-radius-sm);
    gap: 12px;
}

.file-existing-container.marked-for-deletion {
    background: linear-gradient(135deg, #fef0f0 0%, #fee2e2 100%);
    border-color: var(--hw-danger);
    opacity: 0.7;
}

.file-existing-container.marked-for-deletion .file-name {
    text-decoration: line-through;
    color: var(--hw-danger);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.file-name {
    color: var(--hw-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.file-name:hover {
    color: var(--hw-secondary);
}

.file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.file-action-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.file-action-btn.replace {
    background: var(--hw-info);
    color: white;
}

.file-action-btn.replace:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.file-action-btn.delete {
    background: var(--hw-danger);
    color: white;
}

.file-action-btn.delete:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.file-action-btn.cancel {
    background: #95a5a6;
    color: white;
}

.file-action-btn.cancel:hover {
    background: #7f8c8d;
}

.file-upload-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-upload-container .form-input[type="file"] {
    flex: 1;
}

/* Color Input */
.form-input[type="color"] {
    height: 48px;
    padding: 4px;
    cursor: pointer;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--hw-secondary);
}

.checkbox-group label {
    font-size: 15px;
    color: var(--hw-text);
    cursor: pointer;
    font-weight: 500;
}

/* Select */
select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 44px;
}

/* ================================================
   Submit Button
   ================================================ */
.submit-btn {
    background: linear-gradient(135deg, var(--hw-secondary) 0%, var(--hw-accent) 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: var(--hw-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--hw-transition);
    margin: 0 30px 25px;
    box-shadow: 0 4px 20px rgba(63, 161, 77, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(63, 161, 77, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ================================================
   Loading Animation
   ================================================ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
}

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

/* ================================================
   Notification Styling
   ================================================ */
.notification {
    font-family: 'Exo', sans-serif !important;
}

.notification-success {
    background: linear-gradient(135deg, var(--hw-secondary) 0%, var(--hw-accent) 100%) !important;
}

.notification-error {
    background: linear-gradient(135deg, var(--hw-danger) 0%, #c0392b 100%) !important;
}

/* ================================================
   Custom Scrollbar
   ================================================ */
.table-container::-webkit-scrollbar,
.popup-form::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track,
.popup-form::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb,
.popup-form::-webkit-scrollbar-thumb {
    background: var(--hw-secondary-light);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover,
.popup-form::-webkit-scrollbar-thumb:hover {
    background: var(--hw-secondary);
}

/* ================================================
   DXF Upload Fields - Special Styling
   ================================================ */
.form-group input[type="file"][accept*="dxf"],
.form-group input[type="file"][accept*="dwg"] {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #ff9800;
}

.form-group input[type="file"][accept*="dxf"]:hover,
.form-group input[type="file"][accept*="dwg"]:hover {
    border-color: #f57c00;
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
}

/* DXF Label Styling */
.form-label[for*="dxf"]::before {
    content: '\2220  ';
}

/* ================================================
   Empty State
   ================================================ */
tbody tr td[colspan] {
    text-align: center;
    padding: 60px 20px;
    color: var(--hw-text-light);
    font-size: 15px;
    background: rgba(0, 0, 0, 0.02);
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 992px) {
    .hw-tab-navigation {
        position: relative;
    }

    .hw-tab-btn {
        min-width: 120px;
        padding: 12px 16px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    #settings-container {
        padding: 15px;
    }

    .hw-tab-navigation {
        gap: 6px;
        padding: 10px;
    }

    .hw-tab-btn {
        min-width: 100px;
        padding: 10px 12px;
        font-size: 11px;
    }

    .hw-tab-btn .tab-icon {
        display: none;
    }

    .popup-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .popup-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .file-upload-section {
        margin: 15px;
        padding: 15px;
    }

    .upload-container {
        flex-direction: column;
    }

    h2 {
        font-size: 20px;
    }

    .add-item {
        padding: 14px 24px;
        font-size: 14px;
    }

    .submit-btn {
        margin: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .hw-tab-btn {
        min-width: 80px;
        padding: 8px 10px;
        font-size: 10px;
    }

    .popup-header {
        padding: 15px 20px;
    }

    .popup-title {
        font-size: 16px;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ================================================
   MOBILE CARD LAYOUT - Hardware Settings
   ================================================ */

/* Mobile Card View - wird von JavaScript erstellt */
.ee-hardware-mobile-cards {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.ee-hardware-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ee-hardware-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.ee-hardware-card__title {
    font-size: 16px;
    font-weight: 600;
    color: rgb(43, 62, 75);
    flex: 1;
    padding-right: 12px;
}

.ee-hardware-card__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ee-hardware-card__actions .action-btn {
    padding: 8px 12px;
    font-size: 12px;
}

.ee-hardware-card__field {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.ee-hardware-card__field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ee-hardware-card__label {
    color: #888;
    flex-shrink: 0;
    padding-right: 12px;
}

.ee-hardware-card__value {
    font-weight: 500;
    color: rgb(43, 62, 75);
    text-align: right;
    word-break: break-word;
}

/* Mobile-spezifische Anpassungen */
@media (max-width: 768px) {
    #settings-container {
        padding: 12px;
    }

    /* Tab Navigation horizontal scrollen */
    .hw-tab-navigation {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 8px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hw-tab-navigation::-webkit-scrollbar {
        display: none;
    }

    .hw-tab-btn {
        flex-shrink: 0;
        min-width: 100px;
        padding: 10px 14px;
        font-size: 12px;
    }

    /* Tabellen verstecken, Cards anzeigen */
    .table-container table {
        display: none !important;
    }

    .table-wrapper {
        display: none !important;
    }

    .ee-hardware-mobile-cards {
        display: flex !important;
    }

    /* Section Titles */
    h2 {
        font-size: 18px !important;
        padding-bottom: 12px !important;
        margin-bottom: 16px !important;
    }

    /* Add Button - volle Breite */
    .add-item {
        width: calc(100% - 24px);
        margin: 16px 12px;
        padding: 14px 24px;
    }

    /* Popup als Bottom Sheet */
    .popup-overlay {
        align-items: flex-end !important;
    }

    .popup-container {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 85vh !important;
        border-radius: 20px 20px 0 0 !important;
        margin: 0 !important;
        animation: ee-slideUpHw 0.3s ease;
    }

    @keyframes ee-slideUpHw {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    /* Bottom Sheet Handle */
    .popup-container::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 8px auto 0 auto;
    }

    .popup-header {
        padding: 16px 20px !important;
    }

    .popup-content {
        max-height: calc(85vh - 80px);
        overflow-y: auto;
        padding: 0 16px 16px 16px;
    }

    /* Form Inputs */
    .form-input,
    .form-select {
        font-size: 16px !important; /* Verhindert iOS Zoom */
        padding: 14px !important;
    }

    /* Form Row zu Column */
    .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .form-group {
        width: 100% !important;
    }

    /* Submit Button */
    .submit-btn {
        width: calc(100% - 32px);
        margin: 16px;
        padding: 16px;
        min-height: 48px;
    }

    /* PDF Extraktion verstecken auf Mobile */
    .file-upload-section,
    .extract-btn,
    .extraction-status {
        display: none !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    #settings-container {
        padding: 8px;
    }

    .hw-tab-btn {
        min-width: 80px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .ee-hardware-card {
        padding: 12px;
    }

    .ee-hardware-card__title {
        font-size: 14px;
    }

    .ee-hardware-card__field {
        font-size: 13px;
        padding: 8px 0;
    }

    .ee-hardware-card__actions .action-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* ================================================
   Print Styles
   ================================================ */
@media print {
    .hw-tab-navigation,
    .add-item,
    .action-btn,
    .popup-overlay,
    .ee-hardware-mobile-cards {
        display: none !important;
    }

    .hw-section {
        display: block !important;
        page-break-inside: avoid;
    }

    .table-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .table-container table {
        display: table !important;
    }
}
