/* Color Palette */
:root {
    --primary: #4361ee;
    /* Vibrant blue */
    --secondary: #3a0ca3;
    /* Deep purple */
    --accent: #f72585;
    /* Pink */
    --success: #4cc9f0;
    /* Light blue */
    --warning: #f8961e;
    /* Orange */
    --danger: #ef233c;
    /* Red */
    --light: #f8f9fa;
    /* Off-white */
    --dark: #212529;
    /* Dark gray */
    --text: #2b2d42;
    /* Dark blue-gray */
    --highlight: #7209b7;
    /* Purple */
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text);
    min-height: 100vh;
}

.spe-container {
    max-width: 99%;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 5px var(--primary);
    border: 2px solid white;
    position: relative;
    overflow: hidden;
}

.spe-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg,
            var(--primary) 0%,
            var(--accent) 50%,
            var(--success) 100%);
}

/* Typography */
.spe-pro-header {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--highlight));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
}

.spe-pro-subheader {
    font-size: 1.3rem;
    color: var(--secondary);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Form Elements */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.3);
    transform: translateY(-2px);
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--secondary);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.6);
}

.btn-secondary {
    background: var(--text);
}

.btn-warning {
    background: var(--warning);
}

/* Results Section */
#resultsSection {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 5px solid var(--primary);
}

.table {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background: var(--primary);
    color: white;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.table td {
    vertical-align: middle;
}

.table-primary {
    background-color: rgba(67, 97, 238, 0.1) !important;
}

/* Action Menu */
.action-menu span {
    background: linear-gradient(45deg, var(--accent), var(--primary));
    width: 60px;
    height: 60px;
    box-shadow: 0 5px 20px rgba(247, 37, 133, 0.4);
}

.action-menu ul {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.action-menu ul li a {
    color: var(--text);
    font-weight: 500;
}

.action-menu ul li:hover {
    background: rgba(67, 97, 238, 0.1);
}

.action-menu ul li a i {
    color: var(--primary);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.calculator-icon {
    animation: float 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 575.98px) {
    .spe-pro-header {
        font-size: 1.5rem;
    }

    .spe-pro-subheader {
        font-size: 1rem;
    }

    .spe-container {
        padding: 15px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .spe-container {
        padding: 20px;
        margin: 15px;
        border-radius: 15px;
    }

    .spe-pro-header {
        font-size: 1.8rem;
    }

    .btn {
        padding: 8px 15px;
        margin-bottom: 10px;
        width: 100%;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .spe-container {
        padding: 25px;
    }
}

@media (min-width: 1200px) {
    .spe-container {
        padding: 30px;
    }
}

/* Gradient Highlights */
.highlight-box {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(247, 37, 133, 0.1) 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px dashed var(--primary);
}