/**
 * Industrial Components CSS
 * Component-specific styles for the industrial theme
 */

/* Loader Styles */
.loader-industrial {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-content {
    text-align: center;
}

.wrench-loader {
    width: 80px;
    height: 80px;
    animation: rotate 2s linear infinite;
}

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

.loader-text {
    color: #ff6b35;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    margin-top: 20px;
    letter-spacing: 2px;
}

/* Calculator Component */
.industrial-calculator-section {
    padding: 80px 0;
    background: #f5f5f5;
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border: 4px solid #1a1a1a;
    border-radius: 0;
    box-shadow: 12px 12px 0 rgba(0,0,0,0.3);
    padding: 60px;
    position: relative;
}

.calculator-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #ff6b35, #ffd93d);
    z-index: -1;
    opacity: 0.3;
}

.calculator-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    text-align: center;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.calculator-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 18px;
}

.calc-input-group {
    margin-bottom: 30px;
}

.calc-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.range-input-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.range-input-wrapper input[type="range"] {
    flex: 1;
    height: 12px;
    background: linear-gradient(to right, #ff6b35 0%, #ff6b35 50%, #ddd 50%, #ddd 100%);
    border-radius: 6px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-input-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    background: #ff6b35;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.range-input-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.range-input-wrapper input[type="range"]::-moz-range-thumb {
    width: 32px;
    height: 32px;
    background: #ff6b35;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.range-input-wrapper input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.range-input-wrapper input[type="number"] {
    width: 120px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.calc-results {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-label {
    font-size: 16px;
    color: #666;
}

.result-value {
    font-size: 32px;
    font-weight: 700;
    color: #ff6b35;
    font-family: 'Bebas Neue', sans-serif;
}

.calc-actions {
    text-align: center;
}

.btn-industrial {
    display: inline-block;
    padding: 15px 40px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-primary-industrial {
    background: #ff6b35;
    color: white;
    box-shadow: 4px 4px 0 #000;
}

.btn-primary-industrial:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}

.calc-disclaimer {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

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

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .industrial-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100%;
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 80px 20px 20px;
    }
    
    .industrial-nav.mobile-open {
        right: 0;
    }
    
    .industrial-nav ul {
        flex-direction: column;
        gap: 20px;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #17a2b8;
}