@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Montserrat:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.title-container img {
    width: 48px;
    height: 48px;
}

.title-container h1 {
    margin: 0;
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #4CAF50;
}

.back-button {
    display: inline-block;
    text-decoration: none;
    color: #1a237e;
    margin-bottom: 20px;
    font-weight: 500;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
}

.back-button:hover {
    background-color: #388E3C;
}

h1 {
    color: #1a237e;
    margin-bottom: 30px;
    text-align: center;
}

.visualization-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

canvas {
    max-width: 300px;
    margin: 0 auto;
}

.controls {
    margin-top: 20px;
}

button {
    background: #1a237e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.2s;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

button:hover {
    background: #283593;
    background-color: #388E3C;
}

.conversion-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-group {
    text-align: center;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: #666;
}

input {
    width: 80px;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1em;
}

.fraction-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.fraction-line {
    width: 100%;
    height: 2px;
    background: #333;
}

.arrows {
    display: flex;
    gap: 10px;
}

.arrow {
    color: #1a237e;
    font-size: 1.5em;
}

.percent-input {
    display: flex;
    align-items: center;
    gap: 5px;
}

.examples-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: #1a237e;
    margin-bottom: 20px;
}

.example-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.example-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.visual-area {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.info {
    padding: 20px;
}

.info h3 {
    color: #1a237e;
    margin-bottom: 10px;
}

.result {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

.fraction {
    font-size: 1.2rem;
    font-weight: 500;
}

.result-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
}

.topbar {
    background-color: #2196F3;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 48px;
    height: 48px;
}

.app-name {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Pizza Visualization */
.pizza-slices {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(
        #f44336 0% 37.5%,
        #e0e0e0 37.5% 100%
    );
}

/* Water Visualization */
.water-container {
    width: 100px;
    height: 150px;
    border: 3px solid #2196f3;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.water-level {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 75%;
    background: #2196f3;
    transition: height 0.3s;
}
