:root {
    --clinical-blue: #0052ff;
    --clinical-dark: #0f172a;
    --success-green: #10b981;
    --danger-red: #ef4444;
    --bg-app: #f8fafc;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
    --nav-height: 72px;
    --footer-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    width: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--clinical-dark);
    background-color: var(--bg-app);
    overflow-x: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
}

.alert-zone {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 350px;
    max-width: calc(100% - 40px);
}

.alert {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--clinical-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.alert-success { border-left-color: var(--success-green); }
.alert-danger { border-left-color: var(--danger-red); }

.alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.alert-close:hover { color: var(--clinical-dark); }

.animate-slide-in {
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 480px) {
    .alert-zone { right: 10px; left: 10px; width: auto; }
}