
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.gproi-calculator-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    margin: 20px 0;
}

.gproi-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.gproi-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.gproi-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.gproi-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.gproi-calculator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.gproi-input-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.gproi-results-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.gproi-section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.gproi-input-group {
    margin-bottom: 20px;
}

.gproi-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.gproi-input-group input[type="number"],
.gproi-input-group input[type="range"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.gproi-input-group input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.gproi-input-group input[type="range"] {
    padding: 5px;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.gproi-input-group input[type="range"]::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
}

.gproi-input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    margin-top: -6px;
}

.gproi-input-group input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
}

.gproi-input-group input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
}

.gproi-input-group input[type="range"]::-ms-track {
    width: 100%;
    height: 8px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.gproi-input-group input[type="range"]::-ms-fill-lower {
    background: #ddd;
    border-radius: 5px;
}

.gproi-input-group input[type="range"]::-ms-fill-upper {
    background: #ddd;
    border-radius: 5px;
}

.gproi-input-group input[type="range"]::-ms-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
}

.gproi-range-value {
    font-weight: 600;
    color: #3498db;
    font-size: 1.1rem;
    margin-top: 5px;
}

.gproi-metric-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.gproi-metric-card.positive {
    background: linear-gradient(135deg, #27ae60, #219a52);
}

.gproi-metric-card.negative {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.gproi-metric-card.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.gproi-metric-title {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.gproi-metric-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.gproi-calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 20px;
}

.gproi-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

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

.gproi-insights {
    background: #f1f2f6;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.gproi-insights h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.gproi-insight-item {
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #3498db;
    background: white;
    border-radius: 5px;
}

.gproi-chart-container {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.gproi-chart-container h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.gproi-content-section {
    background: #f8f9fa;
    padding: 40px 30px;
    border-top: 2px solid #e9ecef;
}

.gproi-content-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.gproi-content-section h3 {
    color: #34495e;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.gproi-content-section p,
.gproi-content-section li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.gproi-content-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.gproi-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.gproi-content-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.gproi-content-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.gproi-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    color: #3498db;
    margin-left: 5px;
}

.gproi-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
}

@media (max-width: 768px) {
    .gproi-calculator-content {
        grid-template-columns: 1fr;
    }
    
    .gproi-header h1 {
        font-size: 2rem;
    }

    .gproi-content-grid {
        grid-template-columns: 1fr;
    }

    .gproi-tooltip:hover::after {
        white-space: normal;
        width: 200px;
        left: 0;
        transform: translateX(0);
    }
}
