* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
} */

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
     background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
    color: white !important;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}




header h1 {
    font-size: 45px !important;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.1rem;
    color: white !important;
}

.calculator-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.input-section {
    background: #f8fdff !important;
    padding: 25px !important;
    border-radius: 15px !important;
    border: 2px solid #87ceeb !important;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.1);
}

.point-group {
    margin-bottom: 25px;
}

.point-group:last-child {
    margin-bottom: 0;
}

.point-group h3 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.coordinate-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    color: #4a90e2 !important;
    margin-bottom: 5px;
    font-size: 1rem;
}

.input-group input {
    padding: 12px !important;
    border: 2px solid #87ceeb !important;
    border-radius: 8px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
	font-family:inherit;
}

.input-group input:focus {
    outline: none !important;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.graph-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fdff;
    border-radius: 15px;
    border: 2px solid #87ceeb;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.1);
    padding: 20px;
}

#graphCanvas {
    border-radius: 10px !important;
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-section {
    background:linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%)!important;
    padding: 25px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.results-section h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 600;
	color:White !important;
}

.result-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.result-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.result-item label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
	color:white !important;
}

.result-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.3);
    padding: 10px 12px;
    border-radius: 6px;
}

.result-value span {
    font-size: 1.2rem;
    font-weight: 800;
}

.copy-btn {
    background: none !important;
    border: none !important ;
    color: white !important;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.copy-btn:hover {
    opacity: 1;
    transform: scale(1.1) !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

.formula-section {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.formula-section h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
	color:white !important;
}

.formula-section p {
    margin: 5px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 5px !important;
    }
    
    header h1 {
        font-size: 35px !important;
    }
	.e-con{
		padding:7px;
	}
    
    .calculator-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .coordinate-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .result-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #graphCanvas {
        width: 100%;
        max-width: 350px;
        height: auto;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .input-section,
    .results-section,
    .graph-section {
        padding: 20px;
    }
    
/*     #graphCanvas {
        width: 280px;
        height: 280px;
    } */
}

/* Animation for smooth transitions */
.input-group input,
.copy-btn,
.result-item {
    transition: all 0.3s ease;
}

/* Toast notification styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4a90e2;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}