/* New Project Page Styles */
.new-project-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

.new-project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.new-project-header h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    letter-spacing: -1px;
}

.new-project-header p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 0;
    font-weight: 300;
    line-height: 1.6;
}

.new-project-container {
    background: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.new-project-form {
    padding: 1.5rem;
    background: #f8f9fa;
}

/* Form Sections */
.form-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Section Header with Filter */
.np-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.np-section-header h3 {
    margin: 0;
}

/* Material Filter Container */
.np-material-filter-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.np-material-filter-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.np-material-filter-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.np-material-filter-btn i {
    color: #667eea;
    font-size: 0.9rem;
}

.np-material-filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    display: none;
    margin-top: 0.25rem;
}

.np-material-filter-dropdown.show {
    display: block;
}

.np-material-filter-dropdown .filter-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.np-material-filter-dropdown .filter-option:last-child {
    border-bottom: none;
}

.np-material-filter-dropdown .filter-option:hover {
    background: #f8f9fa;
}

.np-material-filter-dropdown .filter-option i {
    color: #667eea;
    font-size: 0.9rem;
    width: 16px;
}

.np-material-filter-dropdown .filter-option span {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Active Filter Label */
.active-filter-label {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
    padding: 4px 8px;
    background: #f0f4ff;
    border-radius: 4px;
    white-space: nowrap;
}

/* Tool Filter Container */
.np-tool-filter-container {
    position: relative;
    display: flex;
    align-items: center;
}

.np-tool-filter-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.np-tool-filter-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.np-tool-filter-btn i {
    color: #667eea;
    font-size: 0.9rem;
}

.np-tool-filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    display: none;
    margin-top: 0.25rem;
}

.np-tool-filter-dropdown.show {
    display: block;
}

.np-tool-filter-dropdown .filter-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.np-tool-filter-dropdown .filter-option:last-child {
    border-bottom: none;
}

.np-tool-filter-dropdown .filter-option:hover {
    background: #f8f9fa;
}

.np-tool-filter-dropdown .filter-option i {
    color: #667eea;
    font-size: 0.9rem;
    width: 16px;
}

.np-tool-filter-dropdown .filter-option span {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Form Groups */
.np-form-group {
    margin-bottom: 1.5rem;
}

.np-form-group:last-child {
    margin-bottom: 0;
}

.np-form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.np-form-group input,
.np-form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    min-height: 48px;
    box-sizing: border-box;
}

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

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

/* Tool Selection Container */
#toolSelectionContainer {
    margin-bottom: 0;
}

#toolSelectionContainer p {
    color: #666;
    text-align: center;
    padding: 1rem;
    margin: 0;
    font-style: italic;
    font-size: 0.9rem;
}

/* Dual Tool Selection */
.dual-tool-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 0;
}

.dual-tool-selection .np-form-group {
    margin-bottom: 0;
}

.dual-tool-selection .np-form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    min-height: 48px;
    box-sizing: border-box;
}

.dual-tool-selection .np-form-group label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dual-tool-selection .np-form-group label::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Single Tool Selection */
#toolSelectionContainer select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    min-height: 48px;
    box-sizing: border-box;
}

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

/* Parameter Rows */
.parameter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
    position: relative;
}



.parameter-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.parameter-row label {
    flex: 1;
    margin: 0;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Info Icon and Tooltip */
.info-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.info-icon {
    color: #667eea;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.info-icon:hover {
    opacity: 1;
    color: #764ba2;
    transform: scale(1.1);
}

.info-tooltip {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 0.75rem 1rem;
    background: #2c3e50;
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    min-width: 250px;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(-5px);
    z-index: 1000;
    pointer-events: none;
    word-wrap: break-word;
}

.info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2c3e50;
    transition: border-color 0.3s ease;
}

/* Tooltip zobrazený dole (když není místo nahoře) */
.info-tooltip.tooltip-bottom {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 8px;
    transform: translateX(-50%) translateY(5px);
}

.info-tooltip.tooltip-bottom::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #2c3e50;
}

.info-icon-wrapper:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.info-icon-wrapper:hover .info-tooltip.tooltip-bottom {
    transform: translateX(-50%) translateY(0);
}

/* Tooltip zobrazený vlevo (když není místo vpravo) */
.info-tooltip.tooltip-left {
    left: auto;
    right: 100%;
    transform: translateY(-50%);
    margin-right: 8px;
    margin-bottom: 0;
    margin-top: 0;
    top: 50%;
    bottom: auto;
}

.info-tooltip.tooltip-left::after {
    left: auto;
    right: -12px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-right-color: transparent;
    border-left-color: #2c3e50;
}

.info-icon-wrapper:hover .info-tooltip.tooltip-left {
    transform: translateY(-50%);
}

/* Kombinace tooltip-left s tooltip-bottom */
.info-tooltip.tooltip-left.tooltip-bottom {
    top: 100%;
    transform: translateY(0);
    margin-top: 8px;
}

.info-tooltip.tooltip-left.tooltip-bottom::after {
    top: auto;
    bottom: 100%;
    transform: translateX(0);
    border-left-color: transparent;
    border-bottom-color: #2c3e50;
}

.info-icon-wrapper:hover .info-tooltip.tooltip-left.tooltip-bottom {
    transform: translateY(0);
}

/* Input with Unit */
.np-input-with-unit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.np-input-with-unit input {
    width: 80px;
    text-align: center;
    padding: 0.4rem 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    min-height: 36px;
    box-sizing: border-box;
}

.np-input-with-unit input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.unit {
    color: #7f8c8d;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 20px;
}

/* Coordinates Container */
.coordinates-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 280px;
}

.coordinate-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.coordinate-input label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7f8c8d;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 20px;
    text-align: center;
}

.coordinate-input input {
    width: 80px;
    min-width: 80px;
    text-align: center;
    padding: 0.4rem 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
    min-height: 36px;
}

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

.coordinate-input input:hover {
    border-color: #667eea;
}

/* Parameter Select */
.parameter-select {
    min-width: 100px;
    padding: 0.4rem 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-height: 36px;
    box-sizing: border-box;
}

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

/* Toggle Switch Styles (like in Settings) */
.np-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
    user-select: none;
}



.np-toggle-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.np-toggle-switch {
    width: 40px;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
    border: none;
}

.np-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.np-toggle-label input[type="checkbox"]:checked + .np-toggle-switch {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.np-toggle-label input[type="checkbox"]:checked + .np-toggle-switch::after {
    transform: translateX(20px);
}

/* Checkbox Styles (for other checkboxes) */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Trim Options */
.trim-options {
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #e9ecef;
    margin-top: 1rem;
}

/* Trim Tool Options */
.trim-tool-options {
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #e9ecef;
    margin-top: 1rem;
}

.trim-tool-options .parameter-row {
    margin-bottom: 0;
}

/* Trim Single Value */
.trim-single-value {
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #e9ecef;
    margin-top: 1rem;
}

.trim-single-value .parameter-row {
    margin-bottom: 0;
}

.trim-individual-values {
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #e9ecef;
    margin-top: 1rem;
}

.trim-individual-values .parameter-row {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.trim-individual-values .parameter-row.hidden {
    display: none !important;
}

.trim-individual-values .parameter-row label {
    min-width: 100px;
    margin-bottom: 0;
    flex: none;
}

.trim-individual-values .parameter-row .np-input-with-unit {
    flex: none;
    max-width: 120px;
}

.trim-individual-values .parameter-row:last-child {
    margin-bottom: 0;
}

/* Placement Area Options - odsazení podobné jako u trim options */
.placement-area-options {
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #e9ecef;
    margin-top: 1rem;
}

.placement-area-options .parameter-row {
    margin-bottom: 0.75rem;
}

.placement-area-options .parameter-row:last-child {
    margin-bottom: 0;
}

.trim-value-row {
    transition: opacity 0.3s ease;
}

.trim-value-row[style*="display: none"] {
    opacity: 0;
}

/* Interactive Board Styles */
.interactive-board-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    margin: 0 auto;
    max-width: 400px;
}

.board-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.interactive-board {
    cursor: pointer;
}

.board-edge {
    cursor: pointer;
    transition: all 0.3s ease;
    stroke-linecap: round;
}

.board-edge:hover {
    stroke-width: 4;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.board-edge.selected {
    stroke: #667eea;
    stroke-width: 4;
    filter: drop-shadow(0 2px 6px rgba(102, 126, 234, 0.4));
}

.clickable-area {
    cursor: pointer;
}


.selected-edges-info {
    text-align: center;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-width: 200px;
}

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

.selected-edges-info.has-selection span {
    color: #667eea;
    font-weight: 600;
}

/* Section Header with Mode Buttons */
.section-header-with-modes {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-header-with-modes h3 {
    margin: 0;
    margin-right: 0.5rem;
}

.mode-buttons {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.mode-btn {
    padding: 0.4rem 0.6rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    min-width: auto;
}

.mode-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
}

.mode-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.mode-btn i {
    font-size: 0.8rem;
}

.mode-btn span {
    font-weight: 600;
    white-space: nowrap;
}

/* Elements Table */
.elements-table-container {
    margin-bottom: 2rem;
}

.elements-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.elements-table thead {
    background: #e9ecef;
    color: #343a40;
}

.elements-table th {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.elements-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
    vertical-align: middle;
}

.elements-table tbody tr:hover {
    background: #f8f9fa;
}

.elements-table input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.9rem;
}

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

.remove-element-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.remove-element-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.remove-element-btn.disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.remove-element-btn.disabled:hover {
    background: #6c757d;
    transform: none;
}

.add-element-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-right: 1rem;
}

.add-element-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.add-element-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Mode-specific visibility */
.elements-table-container.hidden {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.excel-import-section.hidden {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}


.excel-import-section h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.file-drop-zone {
    border: 2px dashed #e9ecef;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    margin-bottom: 1rem;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.file-drop-zone i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.file-drop-zone p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.template-link {
    text-align: center;
    margin: 0;
}

.template-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.template-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.np-action-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

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

.save-template-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

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

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

.calculate-btn:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.calculate-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .new-project-content {
        padding: 1rem;
        background: transparent;
    }
    
    .new-project-header {
        margin-bottom: 2rem;
    }
    
    .new-project-header h1 {
        font-size: 2.5rem;
    }
    
    .new-project-header p {
        font-size: 1.1rem;
    }
    
    .new-project-container {
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }
    
    .new-project-form {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1rem;
        margin-bottom: 0.75rem;
        border-radius: 8px;
    }
    
    .form-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .np-section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .np-section-header h3 {
        margin: 0;
        flex: 1;
    }
    
    .np-material-filter-container,
    .np-tool-filter-container {
        flex-shrink: 0;
    }
    
    .np-material-filter-btn,
    .np-tool-filter-btn {
        width: 32px;
        height: 32px;
    }
    
    .np-material-filter-btn i,
    .np-tool-filter-btn i {
        font-size: 0.8rem;
    }
    
    .np-form-group {
        margin-bottom: 1rem;
    }
    
    .np-form-group label {
        font-size: 0.9rem;
    }
    
    .np-form-group input,
    .np-form-group select,
    #toolSelectionContainer select,
    .dual-tool-selection .np-form-group select {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .parameter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }
    
    .parameter-row label {
        flex: none;
        margin-bottom: 0.25rem;
        font-size: 0.85rem;
    }
    
    .info-tooltip {
        min-width: 200px;
        max-width: 280px;
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .np-input-with-unit {
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
    }
    
    .np-input-with-unit input {
        width: 80px;
        min-height: 32px;
        font-size: 0.8rem;
    }
    
    .coordinates-container {
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .coordinate-input {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .coordinate-input input {
        width: 80px;
        min-width: 80px;
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
        min-height: 32px;
    }
    
    .parameter-select {
        min-width: auto;
        width: 100%;
        min-height: 32px;
        font-size: 0.8rem;
    }
    
    .np-toggle-label {
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
    }
    
    .trim-options,
    .trim-tool-options,
    .trim-single-value,
    .trim-individual-values {
        margin-left: 1rem;
        padding-left: 0.5rem;
    }
    
    .trim-individual-values .parameter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .trim-individual-values .parameter-row label {
        min-width: auto;
        margin-bottom: 0.25rem;
    }
    
    .trim-individual-values .parameter-row .np-input-with-unit {
        max-width: none;
        width: 100px;
    }
    
    .interactive-board-container {
        max-width: 300px;
        padding: 0.5rem;
    }
    
    .selected-edges-info {
        min-width: 150px;
        padding: 0.5rem 0.75rem;
    }
    
    .selected-edges-info span {
        font-size: 0.8rem;
    }
    
    .section-header-with-modes {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }
    
    .section-header-with-modes h3 {
        margin-right: 0;
        text-align: left;
        flex: 1;
    }
    
    .mode-buttons {
        justify-content: flex-end;
        flex-shrink: 0;
    }
    
    .mode-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .elements-table {
        font-size: 0.8rem;
    }
    
    .elements-table th,
    .elements-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }
    
    .elements-table input {
        padding: 0.3rem;
        font-size: 0.8rem;
    }
    
    .remove-element-btn,
    .add-element-btn {
        width: 28px;
        height: 28px;
        padding: 0.3rem;
    }
    
    .file-drop-zone {
        padding: 2rem 1rem;
    }
    
    .file-drop-zone i {
        font-size: 2.5rem;
    }
    
    .file-drop-zone p {
        font-size: 0.85rem;
    }
    
    .template-link a {
        font-size: 0.85rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .np-action-btn {
        width: 100%;
        max-width: 300px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .new-project-content {
        padding: 0.75rem;
        background: transparent;
    }
    
    .new-project-header {
        margin-bottom: 1.5rem;
    }
    
    .new-project-header h1 {
        font-size: 2rem;
    }
    
    .new-project-header p {
        font-size: 1rem;
    }
    
    .new-project-container {
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
    
    .new-project-form {
        padding: 0.75rem;
    }
    
    .form-section {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        border-radius: 6px;
    }
    
    .form-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .np-section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .np-material-filter-btn,
    .np-tool-filter-btn {
        width: 28px;
        height: 28px;
    }
    
    .np-material-filter-btn i,
    .np-tool-filter-btn i {
        font-size: 0.75rem;
    }
    
    .np-form-group {
        margin-bottom: 0.75rem;
    }
    
    .np-form-group label {
        font-size: 0.85rem;
    }
    
    .np-form-group input,
    .np-form-group select,
    #toolSelectionContainer select,
    .dual-tool-selection .np-form-group select {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .parameter-row {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
        padding: 0.4rem 0;
    }
    
    .parameter-row label {
        font-size: 0.8rem;
    }
    
    .info-icon {
        font-size: 0.75rem;
    }
    
    .info-tooltip {
        min-width: 180px;
        max-width: 240px;
        font-size: 0.75rem;
        padding: 0.5rem 0.7rem;
    }
    
    .np-input-with-unit input {
        width: 70px;
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
        min-height: 28px;
    }
    
    .coordinates-container {
        gap: 0.4rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .coordinate-input input {
        width: 70px;
        min-width: 70px;
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
        min-height: 28px;
    }
    
    .parameter-select {
        width: 100%;
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
        min-height: 28px;
    }
    
    .trim-options,
    .trim-tool-options,
    .trim-single-value,
    .trim-individual-values {
        margin-left: 0.75rem;
        padding-left: 0.4rem;
    }
    
    .trim-individual-values .parameter-row {
        gap: 0.4rem;
    }
    
    .trim-individual-values .parameter-row .np-input-with-unit {
        width: 80px;
    }
    
    .interactive-board-container {
        max-width: 250px;
        padding: 0.4rem;
    }
    
    .selected-edges-info {
        min-width: 120px;
        padding: 0.4rem 0.6rem;
    }
    
    .selected-edges-info span {
        font-size: 0.75rem;
    }
    
    .section-header-with-modes {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .mode-btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.65rem;
    }
    
    .mode-btn span {
        display: none;
    }
    
    .elements-table {
        font-size: 0.75rem;
    }
    
    .elements-table th,
    .elements-table td {
        padding: 0.4rem 0.2rem;
        font-size: 0.7rem;
    }
    
    .elements-table input {
        padding: 0.25rem;
        font-size: 0.75rem;
    }
    
    .remove-element-btn,
    .add-element-btn {
        width: 24px;
        height: 24px;
        padding: 0.25rem;
    }
    
    .file-drop-zone {
        padding: 1.5rem 0.75rem;
    }
    
    .file-drop-zone i {
        font-size: 2rem;
    }
    
    .file-drop-zone p {
        font-size: 0.8rem;
    }
    
    .template-link a {
        font-size: 0.8rem;
    }
    
    .form-actions {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .np-action-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}
