/* Exponential Study CSS */
/* Augusto Damasceno */

.exp-study-container {
    padding: 20px 0;
}

.function-display {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    margin: 20px 0;
    max-width: 100%;
}

.chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

.card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
}

.form-label {
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.btn-outline-secondary {
    border-radius: 0;
    border-color: #ced4da;
    color: #495057;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.input-group .btn-outline-secondary:first-of-type {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .btn-outline-secondary:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.alert-info {
    background-color: #e7f3ff;
    border-color: #b6d4fe;
    color: #084298;
    border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 300px;
    }
    
    .function-display p {
        font-size: 1em !important;
    }
    
    .exp-study-container {
        padding: 10px 0;
    }
}

/* Animation for value changes */
@keyframes valueChange {
    0% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

.form-control:focus {
    animation: valueChange 0.5s ease;
}

/* Improve number input appearance */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Style for the info section */
.card-body ul {
    padding-left: 20px;
}

.card-body ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Improve button group appearance */
.input-group > .btn-outline-secondary + .btn-outline-secondary {
    border-left: 1px solid #ced4da;
}
