/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #555353;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffd700;
}

/* Main Content Styles */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.calculator-container {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input-section {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

#function-input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 200px;
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

#clear-btn {
    background-color: #f44336;
}

#clear-btn:hover {
    background-color: #da190b;
}

.graph-container {
    width: 100%;
    height: 400px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-bottom: 1rem;
}

#graph-canvas {
    width: 100%;
    height: 100%;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer Styles */
.footer {
    background-color: #555353;
    color: #ffffff;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #ffd700;
}

.share-btn {
    background-color: #1da1f2;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.share-btn:hover {
    background-color: #1991db;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .calculator-container {
        padding: 1rem;
    }

    .input-section {
        flex-direction: column;
    }

    .controls {
        flex-wrap: wrap;
    }

    .graph-container {
        height: 300px;
    }

    .footer-section {
        flex: 100%;
    }
}

@media screen and (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }

    button {
        width: 100%;
    }

    .graph-container {
        height: 250px;
    }
} 