* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background:
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><circle cx='30' cy='30' r='5' fill='rgba(255,255,255,0.1)'/><circle cx='80' cy='70' r='8' fill='rgba(255,255,255,0.1)'/><circle cx='150' cy='30' r='10' fill='rgba(255,255,255,0.1)'/><circle cx='30' cy='120' r='7' fill='rgba(255,255,255,0.1)'/><circle cx='170' cy='150' r='5' fill='rgba(255,255,255,0.1)'/><circle cx='100' cy='180' r='8' fill='rgba(255,255,255,0.1)'/></svg>"),
    linear-gradient(135deg, #6e8efb, #a777e3);
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
    color: #1f2937;
    line-height: 1.6;
}

header {
    background-color: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.menu a {
    text-decoration: none;
    color: #2d89ef;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}

.user-container {
    position: relative;
}

.user-icon {
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.user-icon:hover {
    background-color: #2d89ef;
    color: white;
}

/* Dropdown Menu */
.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown a {
    color: #1f2937;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.user-dropdown a:hover {
    background-color: #f0f4f8;
    color: #2d89ef;
}

.user-dropdown a.logout {
    color: #e53e3e;
}

.user-dropdown a.logout:hover {
    background-color: #fff5f5;
}

/* Modal de Login */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.login-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: modalFadeIn 0.3s ease-out;
    cursor: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-content h2 {
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #2d89ef;
    box-shadow: 0 0 0 3px rgba(45,137,239,0.2);
}

.login-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #2d89ef;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.login-btn:hover {
    background-color: #1b6cd7;
}

/* Área do Utilizador */
.user-area {
    display: none;
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.user-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #2d89ef;
    margin-right: 1.5rem;
}

.user-info h2 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.user-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: #f8fafc;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.detail-card h3 {
    color: #2d89ef;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.detail-card p {
    margin-bottom: 0.5rem;
}

/* Formulário de Pedidos */
.request-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.request-form h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.request-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
    resize: vertical;
}

.request-form textarea:focus {
    outline: none;
    border-color: #2d89ef;
    box-shadow: 0 0 0 3px rgba(45,137,239,0.2);
}

.submit-request {
    background-color: #2d89ef;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-request:hover {
    background-color: #1b6cd7;
}

/* Mensagens */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
