/* Modern Tools Collection Styles */
.mtc-container {
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mtc-header {
    background: linear-gradient(135deg, #0061ff, #60efff);
    color: white;
    padding: 20px;
    text-align: center;
}

.mtc-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.mtc-header p {
    font-size: 16px;
    opacity: 0.9;
}

.mtc-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    overflow-x: auto;
}

.mtc-tab-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mtc-tab-btn:hover {
    color: #0061ff;
    background: rgba(0, 97, 255, 0.05);
}

.mtc-tab-btn.active {
    color: #0061ff;
    border-bottom: 3px solid #0061ff;
    background: rgba(0, 97, 255, 0.1);
}

.mtc-tab-content {
    padding: 25px;
}

.mtc-tab-pane {
    display: none;
}

.mtc-tab-pane.active {
    display: block;
}

.mtc-tool-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.mtc-tool-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
}

.mtc-input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    align-items: end; /* Fix for dropdown alignment */
}

.mtc-input {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Fix for dropdown alignment */
    height: 100%; /* Fix for dropdown alignment */
}

.mtc-input label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
}

.mtc-input input, .mtc-input select {
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    height: 46px; /* Fixed height for alignment */
    box-sizing: border-box; /* Include padding in height */
}

.mtc-input input:focus, .mtc-input select:focus {
    outline: none;
    border-color: #0061ff;
    box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.1);
}

.mtc-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.mtc-btn-primary {
    background: linear-gradient(135deg, #0061ff, #60efff);
    color: white;
}

.mtc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mtc-result-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mtc-result-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.mtc-result {
    font-size: 20px;
    font-weight: 600;
    color: #0061ff;
    text-align: center;
    margin-bottom: 10px;
}

.mtc-result-date {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.mtc-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.mtc-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.mtc-checkbox input {
    display: none;
}

.mtc-checkbox-custom {
    width: 20px;
    height: 20px;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.mtc-checkbox input:checked + .mtc-checkbox-custom {
    background: #0061ff;
    border-color: #0061ff;
}

.mtc-checkbox input:checked + .mtc-checkbox-custom::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* BMI Calculator Styles */
.mtc-bmi-value {
    font-size: 32px;
    font-weight: 700;
    color: #0061ff;
    text-align: center;
    margin-bottom: 10px;
}

.mtc-bmi-category {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.mtc-bmi-chart {
    position: relative;
    height: 40px;
    background: #e9ecef;
    border-radius: 20px;
    margin-top: 30px;
    overflow: hidden;
}

.mtc-bmi-scale {
    display: flex;
    height: 100%;
}

.mtc-bmi-range {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: white;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.mtc-bmi-range.underweight {
    background: #3db2ff;
}

.mtc-bmi-range.normal {
    background: #2ecc71;
}

.mtc-bmi-range.overweight {
    background: #f39c12;
}

.mtc-bmi-range.obese {
    background: #e74c3c;
}

.mtc-bmi-indicator {
    position: absolute;
    top: -10px;
    width: 4px;
    height: 60px;
    background: #0061ff;
    transform: translateX(-50%);
}

.mtc-bmi-indicator::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #0061ff;
}

/* Password Generator Styles */
.mtc-password-result {
    display: flex;
    margin-bottom: 15px;
}

.mtc-password-result input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px 0 0 6px;
    font-size: 16px;
    font-family: monospace;
}

.mtc-copy-btn {
    padding: 12px 15px;
    background: #0061ff;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mtc-copy-btn:hover {
    background: #004ecc;
}

.mtc-password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mtc-strength-label {
    font-weight: 600;
    color: #495057;
}

.mtc-strength-value {
    font-weight: 600;
    color: #0061ff;
}

.mtc-strength-meter {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.mtc-strength-bar {
    height: 100%;
    width: 60%;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mtc-tabs {
        flex-direction: column;
    }
    
    .mtc-tab-btn {
        border-bottom: 1px solid #dee2e6;
    }
    
    .mtc-tab-btn.active {
        border-bottom: 3px solid #0061ff;
    }
    
    .mtc-input-group {
        grid-template-columns: 1fr;
    }
    
    .mtc-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .mtc-password-result {
        flex-direction: column;
    }
    
    .mtc-password-result input {
        border-radius: 6px 6px 0 0;
    }
    
    .mtc-copy-btn {
        border-radius: 0 0 6px 6px;
    }
    
    .mtc-password-strength {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .mtc-strength-meter {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .mtc-container {
        box-shadow: none;
    }
    
    .mtc-tabs {
        display: none;
    }
    
    .mtc-tab-content {
        padding: 0;
    }
    
    .mtc-tab-pane {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .mtc-btn {
        display: none;
    }
}