/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container */
.container {
    background: #ffffff;
    padding: 40px;
    max-width: 100%;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Header */
.seu-header {
    width: 100%;
    font-family: Arial, sans-serif;
}

.top-bar {
    background-color: #666;
    color: white;
    display: flex;
    align-items: center;
    padding: 20px;
}

.logo-container,
.title,
.spacer {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo-container img {
    height: 50px;
}

.title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

/* Navigation */
.main-nav {
    display: flex;
    background-color: #A3C043;
    width: 100%;
    text-align: center;
}

.main-nav>a {
    flex: 1;
    padding: 15px 0;
    border-right: 1px solid white;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.main-nav>a:last-child {
    border-right: none;
}

/* Texts and Inputs */
.titolbeques {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #2c3e50;
}

.introduccio {
    font-size: 1rem;
    color: #000;
    margin-bottom: 30px;
    line-height: 1.5;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #000;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #007bff;
    outline: none;
}

/* Button */
.button {
    width: 20%;
    padding: 12px;
    margin-left: 80%;
    background-color: #29b635;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

button:hover {
    background-color: #1de43e;
}

/* Error Message */
.error {
    color: #d32f2f;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Result Section */

.data {
    display: none;
    background: white;
    padding: 40px;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Footer */
.footer {
    background-color: #eee;
    padding: 30px 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.footer-logo {
    height: 60px;
}

.footer-info {
    line-height: 1.6;
}

.footer-info a {
    color: #333;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-right img {
    height: 36px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-right img:hover {
    opacity: 1;
}


.btn-retorn {
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-weight: bold;
    margin: auto;
    display: block;
    text-decoration: none;
    width: 40%;
    height: 30px;
}

.btn-retorn:hover {
    background-color: #0056d2;
}

.spacer-flex {
    display: none;
    flex-grow: 1;
}


.loader {
  border: 3px solid #00ff15;
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}