/* style.css */
:root {
    --primary: #4a90e2;
    --success: #2ecc71;
    --error: #e74c3c;
    --other: #95a5a6;
}

body {
    font-family: sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure footer sticks to bottom */
}

header {
    background: #f0f0f0;
    padding: 1rem;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}
nav li { margin: 0 1rem;}
nav a {
    text-decoration: none;
    color: #333;
}


main {
    flex: 1; /* Allow main content to take up available space */
    display: flex;  /* For side-by-side layout */

}


.container {
    display: flex;            /* Enable flexbox for layout */
    max-width: 1200px;
    margin: 2rem auto;
    background: #f5f7fa;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-wrap: wrap;       /* Allow wrapping on smaller screens */
    gap: 1rem;             /* Spacing between main and sidebar */
}


.sidebar {
    width: 300px;                /* Fixed width for sidebar */
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    order: 1;
    flex-shrink: 0;
    margin-right: 1rem;
}

.main-content {
    flex: 1;              /* Main content takes remaining space */
    order: 2;               
    display: flex;
    flex-direction: column; /* Align items vertically */
}


h1 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
}

/* ... (rest of the styles are the same - see additions below) */


.animated-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease; /* Add box-shadow transition */
    overflow: hidden; /* For ripple effect */
    position: relative; /* For ripple positioning */
}

.animated-button:hover {
    transform: translateY(-2px);
    background: #357abd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add box-shadow on hover */
}

.animated-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Adjust box-shadow on active */
}


.animated-button span {  /* Add for ripple effect  */
    position: absolute;
    background: rgba(255,255,255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

footer {
    background: #333;
    color: white;
    padding: 1rem;
    text-align: center;
    margin-top: auto; /* Push footer to bottom */
    width: 100%;
}


.footer-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.footer-links li {
  display: inline;
  margin: 0 0.5rem;
}


.footer-links a {
  color: white;
  text-decoration: none;
}

.top-tools ul {
  list-style: none;
  padding: 0;
}


.top-tools a {
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--primary);
}


@media (max-width: 768px) { /* Adjust breakpoint as needed */
    .container {
        flex-direction: column;  /* Stack vertically on small screens */
    }
    .sidebar {
        width: 100%;           /* Sidebar takes full width */
        margin-right: 0;
    }
    .results {
        grid-template-columns: 1fr; /* Stack stats and chart */
    }
    }
