/* ============================================
  GENESIS MARCAS — Laudos Form Styles
  Premium Dark Theme
  ============================================ */

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

:root {
    /* Colors */
    --green: #9FEC14;
    --green-hover: #b2f041;
    --dark: #070707;
    --light: #F9F9F9;

    /* Surfaces */
    --surface-primary: #070707;
    --surface-card: rgba(255, 255, 255, 0.03);
    --surface-card-hover: rgba(255, 255, 255, 0.06);
    --surface-input: rgba(255, 255, 255, 0.02);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-green: rgba(159, 236, 20, 0.4);

    /* Typography */
    --font-family: 'Sora', sans-serif;

    /* Utilities */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-pill: 100px;
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--surface-primary);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Header ─── */
header {
    padding: 2rem 5%;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 7, 7, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light);
    text-decoration: none;
}

.logo span {
    color: var(--green);
}

nav a {
    color: #A0A0A0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    margin-left: 2rem;
}

nav a:hover,
nav a.active {
    color: var(--light);
}

/* ─── Main Container ─── */
main {
    flex: 1;
    padding: 4rem 5%;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.page-subtitle {
    color: #A0A0A0;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ─── Cards & Forms ─── */
.card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
}

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

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #A0A0A0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input,
textarea {
    width: 100%;
    background: var(--surface-input);
    border: 1px solid var(--border-subtle);
    color: var(--light);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--border-green);
    background: rgba(159, 236, 20, 0.02);
    box-shadow: 0 0 0 4px rgba(159, 236, 20, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--green);
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: var(--green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(159, 236, 20, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ─── Alerts ─── */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    display: none;
    animation: slideIn 0.3s ease-out forwards;
}

.alert.success {
    background: rgba(159, 236, 20, 0.1);
    border: 1px solid var(--border-green);
    color: var(--green);
    display: block;
}

.alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    display: block;
}

/* ─── List of Laudos (Acompanhamento) ─── */
.laudos-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.laudo-item {
    background: var(--surface-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.laudo-item:hover {
    background: var(--surface-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.laudo-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.laudo-info p {
    font-size: 0.85rem;
    color: #A0A0A0;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Loader */
.loader {
    border: 2px solid rgba(7, 7, 7, 0.1);
    border-top-color: var(--dark);
    border-radius: 50%;
    width: 1.2rem;
    height: 1.2rem;
    animation: spin 1s linear infinite;
    display: none;
}

.loading .loader {
    display: inline-block;
}

.loading .text {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}