/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #00c9ff, #92fe9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.calculator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.circle-diagram {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.circle-diagram h2 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 1.8rem;
    color: #00c9ff;
}

.circle-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.circle-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);*/
}

.variable-info {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.variable-info h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #92fe9d;
}

.variable {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.variable label {
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.variable label i {
    margin-right: 10px;
    color: #00c9ff;
}

.variable input {
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.variable input:focus {
    outline: none;
    border-color: #00c9ff;
    box-shadow: 0 0 15px rgba(0, 201, 255, 0.3);
}

.variable input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.results-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.results-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #ffd166;
}

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

.result-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.4);
}

.result-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #92fe9d;
}

.result-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #00c9ff, #92fe9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-card .unit {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 5px;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    width: 100%;
    opacity: 0.7;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column;
    }

    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .circle-diagram {
        padding: 15px;
    }
    
    .circle-diagram h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .variable-info {
        padding: 15px;
    }
    
    .variable-info h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .results-container {
        padding: 20px 15px;
    }
    
    .results-container h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .result-card {
        padding: 15px;
    }
    
    .result-card .value {
        font-size: 1.5rem;
    }
    
    .result-card h3 {
        font-size: 1rem;
    }
}
