.tool-fullwidth {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Tool shell */
.engineering-tool {
    max-width: 100%;
    margin: 0 auto;
}

.engineering-tool .editor-section,
.editor-section.engineering-tool {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.engineering-tool .card:not(.result-card) {
    border: 1px solid var(--color-border, #e5e7eb);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
    border-radius: var(--radius, 12px);
    background: var(--color-surface, #fff);
}

.engineering-tool .card-body {
    padding: 1.25rem 1.35rem;
}

.engineering-tool .card-title {
    color: var(--color-text, #1f2937);
    font-weight: 700;
    font-size: 1.05rem;
}

.engineering-tool .form-control,
.engineering-tool .form-select,
.engineering-tool .select-input {
    border-radius: 8px;
    border: 1px solid var(--color-border, #e5e7eb);
}

.engineering-tool .form-control:focus,
.engineering-tool .form-select:focus {
    border-color: var(--color-primary, #0d9488);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.engineering-tool .btn-primary {
    background: var(--color-primary, #0d9488);
    border-color: var(--color-primary, #0d9488);
}

.engineering-tool .btn-primary:hover {
    background: var(--color-primary-hover, #0f766e);
    border-color: var(--color-primary-hover, #0f766e);
}

.engineering-tool .alert {
    border-radius: 10px;
}

[data-theme="dark"] .engineering-tool .card:not(.result-card) {
    background: var(--color-surface, #1f2937);
    border-color: var(--color-border, #374151);
}

[data-theme="dark"] .engineering-tool .card-title,
[data-theme="dark"] .engineering-tool .form-label,
[data-theme="dark"] .engineering-tool {
    color: var(--color-text, #f9fafb);
}

[data-theme="dark"] .engineering-tool .text-muted,
[data-theme="dark"] .engineering-tool .form-text {
    color: var(--color-text-secondary, #9ca3af) !important;
}

[data-theme="dark"] .engineering-tool .form-control,
[data-theme="dark"] .engineering-tool .form-select {
    background: #111827;
    color: var(--color-text, #f9fafb);
    border-color: var(--color-border, #374151);
}

/* --- tool: paint-material-calculator --- */
.tool-paint-calculator-full {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: auto;
    padding: 2rem 0;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.form-label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    font-weight: 500;
}

.btn-group-vertical .btn {
    border-radius: 0;
    border: 2px solid #e9ecef;
    background-color: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s ease;
}

.btn-group-vertical .btn:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.btn-group-vertical .btn:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.btn-group-vertical .btn:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.btn-outline-secondary, .btn-outline-info {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover, .btn-outline-info:hover {
    transform: translateY(-2px);
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.result-card .card-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.result-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.result-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.result-unit {
    font-size: 0.8rem;
    opacity: 0.7;
}

.calculation-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.calc-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.calc-label {
    font-weight: 500;
}

.calc-value {
    font-weight: bold;
}

.suggestions {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.suggestion-item {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .tool-paint-calculator-full {
        padding: 1rem 0;
    }
    
    .result-value {
        font-size: 1.5rem;
    }
    
    .btn-group-vertical {
        margin-left: 0.5rem;
    }
}
