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

:root {
    --color-primary-soft: #7f9cf5;
    --color-primary-strong: #9f7aea;
    --color-primary-surface: #f5f7ff;
    --shadow-soft: 0 18px 40px rgba(79, 70, 229, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--color-primary-soft) 0%, #b794f4 100%);
    min-height: 100vh;
    color: #2d3748;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Login/Register Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: block;
    max-width: 220px;
    width: 100%;
    margin: 0 auto 1.5rem;
}

.auth-title {
    color: #4c51bf;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #718096;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

.form-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #718096;
}

.form-hint.error {
    color: #c53030;
}

.form-hint.success {
    color: #2f855a;
}

.form-error {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #c53030;
}

.participant-select {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    min-height: 3.25rem;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.participant-select:focus-within {
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

.participant-select__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1 1 auto;
}

.participant-select__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #e9edfb;
    color: #4c51bf;
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.participant-select__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 0.75rem;
    line-height: 1;
}

.participant-select__remove:hover {
    background-color: rgba(76, 81, 191, 0.12);
}

.participant-select__input {
    flex: 1 1 160px;
    border: none;
    min-width: 140px;
    padding: 0.45rem 0.25rem;
    font-size: 1rem;
    outline: none;
}

.participant-select__input::placeholder {
    color: #a0aec0;
}

.participant-select__suggestions {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.participant-select__suggestion {
    border: none;
    border-radius: 999px;
    background-color: #edf2f7;
    color: #4a5568;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.participant-select__suggestion:hover,
.participant-select__suggestion:focus {
    background-color: #cbd5f5;
    color: #2d3748;
}

.btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #5a67d8;
    color: white;
}

.btn-primary:hover {
    background: #4c51bf;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    margin-top: 0.75rem;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-tertiary {
    width: auto;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e0;
    background: transparent;
    color: #4a5568;
    margin-top: 0;
}

.btn-tertiary:hover {
    background: #edf2f7;
}

.btn-danger {
    background: #f56565;
    color: #fff;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #718096;
}

.auth-footer a {
    color: #5a67d8;
    text-decoration: none;
    font-weight: 500;
}

/* Main App Container */
.app-container {
    display: none;
    min-height: 100vh;
    background: #f7fafc;
}

.app-container.active {
    display: block;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.logo img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 240px;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    line-height: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:focus-visible {
    outline: 3px solid rgba(90, 103, 216, 0.35);
    outline-offset: 2px;
}

.menu-toggle:hover {
    background: rgba(90, 103, 216, 0.08);
    border-color: #cbd5e0;
}

.menu-toggle__bar {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: #4a5568;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle__bar + .menu-toggle__bar {
    margin-top: 0.3rem;
}

.header-content.menu-open .menu-toggle__bar:nth-child(1) {
    transform: translateY(0.45rem) rotate(45deg);
}

.header-content.menu-open .menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.header-content.menu-open .menu-toggle__bar:nth-child(3) {
    transform: translateY(-0.45rem) rotate(-45deg);
}

.main-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-link,
.nav-sublink {
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5568;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
}

.cadastro-tab {
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5568;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link:hover,
.nav-sublink:hover,
.cadastro-tab:hover {
    background: rgba(90, 103, 216, 0.1);
    color: #4c51bf;
}

.nav-link.active,
.nav-sublink.active,
.cadastro-tab.active {
    background: #5a67d8;
    color: white;
    box-shadow: 0 10px 20px rgba(90, 103, 216, 0.2);
}

.nav-link--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 5.5rem;
    min-height: 4.25rem;
    padding: 0.6rem 0.9rem;
    border-radius: 16px;
    position: relative;
    gap: 0.45rem;
}

.nav-link--icon::after {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #4a5568;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    padding: 0 0.15rem;
}

.nav-link--icon:hover::after,
.nav-link--icon:focus-visible::after {
    color: #4c51bf;
}

.nav-link--icon.active::after {
    color: #ffffff;
}

.nav-link--icon .nav-icon {
    width: 2.1rem;
    height: 2.1rem;
    transition: transform 0.2s ease;
}

.nav-link--icon.active .nav-icon {
    filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.35));
}

.nav-link--icon:hover .nav-icon,
.nav-link--icon:focus-visible .nav-icon {
    transform: scale(1.05);
}

.nav-item--has-submenu:hover .nav-submenu,
.nav-item--has-submenu:focus-within .nav-submenu {
    display: flex;
}

.nav-item--has-submenu.submenu-open > .nav-link {
    background: rgba(90, 103, 216, 0.1);
    color: #4c51bf;
}

.nav-item--has-submenu.submenu-open .nav-submenu {
    display: flex;
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: white;
    box-shadow: 0 12px 30px rgba(90, 103, 216, 0.15);
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 220px;
    z-index: 150;
    list-style: none;
}

.nav-submenu .nav-sublink {
    width: 100%;
    text-align: left;
}

.nav-list .admin-only {
    display: none;
}

.nav-list .admin-only.is-visible {
    display: flex;
}

.nav-list .gestor-only {
    display: none;
}

.nav-list .gestor-only.is-visible {
    display: flex;
}

.app-section {
    display: none;
    animation: fadeIn 0.2s ease;
}

.app-section.active {
    display: block;
}

.section-description {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 1.5rem;
}

.profile-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #718096;
}

.profile-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d3748;
}

.profile-hint {
    font-size: 0.9rem;
    color: #718096;
}

.settings-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.settings-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(247, 127, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-card h3 {
    color: #dd6b20;
}

.settings-card p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

.settings-card .settings-hint {
    color: #718096;
    font-size: 0.85rem;
    margin: 0;
}

.cadastros-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cadastro-content-wrapper {
    display: grid;
    gap: 1.5rem;
}

.cadastro-content {
    display: none;
}

.cadastro-content.active {
    display: block;
}

.cadastro-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 1rem;
}

.cadastro-card ul {
    margin-left: 1.25rem;
    color: #4a5568;
    line-height: 1.6;
}

.cadastro-card li {
    margin-bottom: 0.35rem;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.user-info-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.user-info-main #userName {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.2;
    text-align: center;
}

.user-badge {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-logout {
    background: #fed7d7;
    color: #c53030;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #fc8181;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1rem, 3vw, 1.5rem);
}

.notification-bar {
    background: #f8f9ff;
    border: 1px solid rgba(90, 103, 216, 0.18);
    border-left: 4px solid #5a67d8;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 18px 36px rgba(90, 103, 216, 0.12);
    animation: fadeIn 0.3s ease;
}

.notification-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.notification-title {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 0.35rem;
}

.notification-summary {
    color: #4a5568;
    font-size: 0.95rem;
}

.notification-manage-button {
    white-space: nowrap;
    padding: 0.6rem 1rem;
    font-weight: 600;
}

.notification-content {
    display: grid;
    gap: 0.75rem;
}

.notification-error {
    background: rgba(254, 178, 178, 0.4);
    border: 1px solid rgba(229, 62, 62, 0.35);
    color: #9b2c2c;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.notification-list {
    display: grid;
    gap: 0.75rem;
}

.notification-item {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 6px 20px rgba(45, 55, 72, 0.08);
    border: 1px solid rgba(203, 213, 224, 0.6);
}

.notification-item--unread {
    border-color: rgba(90, 103, 216, 0.45);
    box-shadow: 0 12px 26px rgba(90, 103, 216, 0.16);
}

.notification-details {
    flex: 1;
}

.notification-details strong {
    color: #2d3748;
    font-size: 1rem;
}

.notification-details .notification-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    background: #e9edff;
    color: #3949ab;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
}

.notification-details small {
    display: block;
    color: #4a5568;
    margin-top: 0.25rem;
}

.notification-details .notification-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #2b6cb0;
    text-decoration: underline;
    margin-top: 0.25rem;
}

.notification-details .notification-link:hover,
.notification-details .notification-link:focus {
    color: #2c5282;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.notification-actions .btn-approve {
    padding: 0.55rem 1.1rem;
}

.notification-actions .btn-open-reservation {
    background: #3182ce;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.notification-actions .btn-open-reservation:hover,
.notification-actions .btn-open-reservation:focus {
    background: #2b6cb0;
}

.notification-actions .btn-open-reservation:focus {
    outline: 2px solid #2c5282;
    outline-offset: 2px;
}

.notification-actions .btn-mark-read {
    background: #edf2ff;
    color: #2b6cb0;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.notification-actions .btn-mark-read:hover,
.notification-actions .btn-mark-read:focus {
    background: #c3dafe;
    color: #1a365d;
    box-shadow: 0 6px 18px rgba(90, 103, 216, 0.18);
    outline: none;
}

.notification-actions .btn-mark-read:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.notification-status {
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 500;
}

.notification-more {
    color: #4a5568;
    font-size: 0.85rem;
    font-style: italic;
}

.notification-more strong {
    color: #2d3748;
}

.page-title {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 2rem;
}

/* Room Cards Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.room-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.room-type-chip {
    margin: 0.75rem 0 0.5rem;
}

.room-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.room-chip--virtual {
    background: rgba(66, 153, 225, 0.15);
    color: #2b6cb0;
}

.room-chip--physical {
    background: rgba(72, 187, 120, 0.18);
    color: #276749;
}

.room-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f7fafc;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-image-wrapper--placeholder {
    border: 1px dashed #cbd5e0;
}

.room-icon {
    font-size: 2.75rem;
    margin-bottom: 0;
    text-align: center;
    line-height: 1;
    color: #5a67d8;
}

.room-image-placeholder {
    font-size: 2.75rem;
    color: #a0aec0;
    line-height: 1;
}

.room-image-input {
    display: flex;
    flex-direction: column;
}

.room-image-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px dashed #cbd5e0;
    border-radius: 10px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.room-image-preview.has-image {
    border-style: solid;
    background: #fff;
}

.room-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.25rem;
}

.room-image-actions input[type="file"] {
    max-width: 260px;
}

.room-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.room-link-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem;
    background: #fdfdfd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.room-link-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.room-link-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.room-links-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

.room-links-actions .form-hint {
    margin: 0;
}

.room-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.room-info {
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.room-status {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.status-free {
    color: #48bb78;
    font-weight: 500;
}

.status-busy {
    color: #f56565;
    font-weight: 500;
}

/* Calendar View */
.calendar-container {
    background: #ffffff;
    border-radius: 20px;
    padding: clamp(1.25rem, 1rem + 1vw, 1.5rem);
    box-shadow: var(--shadow-soft);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.calendar-header__title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}

.calendar-month-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    flex-wrap: nowrap;
    padding: 0.4rem 0.6rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.18);
}

.calendar-month-label {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-nav-button {
    background: #edf2f7;
    color: #4a5568;
    border: none;
    border-radius: 9999px;
    padding: 0.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(148, 163, 184, 0.2);
    font-size: 1rem;
}

.calendar-nav-icon {
    line-height: 1;
}

.calendar-nav-button:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.25);
}

.calendar-nav-button:focus-visible {
    outline: 3px solid rgba(127, 156, 245, 0.45);
    outline-offset: 2px;
}

.calendar-title {
    font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.85rem);
    font-weight: 700;
    color: #2d2a6e;
    text-align: center;
}

.btn-new-event {
    background: #48bb78;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 22px rgba(72, 187, 120, 0.25);
}

.btn-new-event:hover {
    background: #38a169;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(56, 161, 105, 0.3);
}

.btn-new-event:focus-visible {
    outline: 3px solid rgba(72, 187, 120, 0.35);
    outline-offset: 2px;
}

.btn-back {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.65rem 1.1rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 16px rgba(100, 116, 139, 0.12);
}

.btn-back:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.btn-back:focus-visible {
    outline: 3px solid rgba(127, 156, 245, 0.45);
    outline-offset: 2px;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    background: #5a67d8;
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.calendar-day {
    background: white;
    min-height: 100px;
    padding: 0.5rem;
    position: relative;
}

.calendar-day-number {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.calendar-event {
    background: #bee3f8;
    color: #2c5282;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-event:hover {
    background: #90cdf4;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    width: auto;
}

#emailTestForm .btn {
    min-width: 180px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
}

.close-btn:hover {
    color: #4a5568;
}

.btn-small {
    width: auto;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.alert.active {
    display: block;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-warning {
    background: #feebc8;
    color: #7c2d12;
    border: 1px solid #fbd38d;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

/* Time slots for day view */
.day-view {
    display: none;
}

.day-view.active {
    display: block;
}

.day-view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.day-view-header__titles {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 240px;
}

.day-view-title {
    font-size: clamp(1.2rem, 1rem + 0.7vw, 1.6rem);
    font-weight: 700;
    color: #2d2a6e;
    line-height: 1.3;
}

.day-view-subtitle {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.4;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.day-view-empty {
    padding: 2rem;
    text-align: center;
    color: #4a5568;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.time-slot {
    display: grid;
    grid-template-columns: 96px 1fr;
    min-height: 64px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.time-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 45px rgba(79, 70, 229, 0.18);
}

.time-slot--highlight {
    border-left: 4px solid var(--color-primary-soft);
    animation: reservation-highlight 2s ease;
    box-shadow: 0 26px 48px rgba(79, 70, 229, 0.22);
}

.time-slot--highlight .time-event {
    box-shadow: 0 0 0 3px rgba(127, 156, 245, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .time-slot--highlight {
        animation: none;
    }
}

@keyframes reservation-highlight {
    0% {
        background-color: rgba(127, 156, 245, 0.16);
    }

    100% {
        background-color: transparent;
    }
}

.time-slot--pending {
    border: 2px dashed #f59e0b;
    background: linear-gradient(to right, #fef3c7 0%, #ffffff 10%);
    opacity: 0.95;
}

.time-slot--pending:hover {
    border-color: #d97706;
    background: linear-gradient(to right, #fde68a 0%, #ffffff 10%);
    opacity: 1;
}

.time-event-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.time-event-badge--pending {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.time-label {
    background: var(--color-primary-surface);
    padding: 1rem 1.1rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.time-content {
    padding: 1rem 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-event {
    background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-primary-strong) 100%);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    font-size: 0.95rem;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 16px 32px rgba(106, 90, 205, 0.25);
}

.time-event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.time-event-info strong {
    display: block;
    margin-bottom: 0;
    font-size: 1.05rem;
}

.time-event-meta-item {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
}

.time-event-link a {
    color: #ebf4ff;
    text-decoration: underline;
    font-weight: 600;
}

.time-event-link a:hover,
.time-event-link a:focus-visible {
    text-decoration: none;
}

.time-event-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.time-event-action {
    background: rgba(255, 255, 255, 0.16);
    border: none;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.1;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.time-event-action:hover,
.time-event-action:focus-visible {
    background-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.time-event-action:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* Admin Panel */
.admin-panel {
    background: #fef5e7;
    border: 2px solid #f9c74f;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.admin-panel h3 {
    color: #f77f00;
    margin-bottom: 1rem;
}

.pending-users {
    display: grid;
    gap: 1rem;
}

.pending-user {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-details {
    flex: 1;
}

.user-details small {
    display: block;
    color: #4a5568;
    margin-top: 0.25rem;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.pending-reservations {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pending-reservation {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.reservation-details {
    flex: 1;
}

.reservation-details small {
    display: block;
    color: #4a5568;
    margin-top: 0.25rem;
}

.reservation-actions {
    display: flex;
    gap: 0.5rem;
}

.pending-empty {
    color: #4a5568;
    font-size: 0.875rem;
}

.btn-approve {
    background: #48bb78;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    line-height: 1;
    transition: padding 0.2s ease, border-radius 0.2s ease;
}

.btn-approve__icon {
    display: none;
    font-size: 1.05rem;
}

.btn-approve__text {
    display: inline;
}

.btn-reject {
    background: #f56565;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    line-height: 1;
    transition: padding 0.2s ease, border-radius 0.2s ease;
}

.btn-reject__icon {
    display: none;
    font-size: 1.05rem;
}

.btn-reject__text {
    display: inline;
}

.admin-rooms {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(247, 127, 0, 0.2);
}

.admin-rooms-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-rooms-actions .btn {
    width: auto;
}

@media (max-width: 640px) {
    .btn-approve {
        padding: 0.5rem;
        border-radius: 999px;
        min-width: 2.5rem;
        min-height: 2.5rem;
    }

    .btn-approve__text {
        display: none;
    }

    .btn-approve__icon {
        display: inline;
    }

    .btn-reject {
        padding: 0.5rem;
        border-radius: 999px;
        min-width: 2.5rem;
        min-height: 2.5rem;
    }

    .btn-reject__text {
        display: none;
    }

    .btn-reject__icon {
        display: inline;
    }

    .day-view-title {
        font-size: 1.2rem;
    }

    .day-view-subtitle {
        font-size: 0.9rem;
    }

    .time-slot {
        grid-template-columns: 1fr;
        border-radius: 14px;
    }

    .time-label {
        border-right: none;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        justify-content: flex-start;
        padding: 0.6rem 0.9rem;
        font-size: 0.82rem;
        letter-spacing: 0.03em;
    }

    .time-content {
        padding: 0.85rem 1rem;
    }

    .time-event {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
        border-radius: 12px;
    }

    .time-event-info strong {
        font-size: 1rem;
    }

    .time-event-meta-item {
        font-size: 0.83rem;
    }

    .time-event-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .time-event-action {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0.8rem;
    }
}

.admin-helper-text {
    color: #7b341e;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.admin-rooms-list {
    display: grid;
    gap: 1rem;
}

.admin-room-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(247, 127, 0, 0.08);
}

.admin-room-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-room-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
}

.admin-room-meta {
    color: #4a5568;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-room-description {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.4;
}

.admin-room-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.admin-room-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #2d3748;
}

.admin-room-link a {
    color: #3182ce;
    font-weight: 600;
    text-decoration: none;
}

.admin-room-link a:hover {
    text-decoration: underline;
}

.admin-room-link--warning {
    color: #c05621;
    font-weight: 600;
}

.admin-room-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.admin-room-tag {
    background: #fef3c7;
    color: #9c4221;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-room-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.room-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.room-modal-actions__primary {
    display: flex;
    gap: 0.75rem;
}

.room-modal-actions .btn {
    width: auto;
}

.admin-room-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.825rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.admin-room-status.active {
    background: rgba(72, 187, 120, 0.15);
    color: #276749;
}

.admin-room-status.inactive {
    background: rgba(229, 62, 62, 0.15);
    color: #9b2c2c;
}

.btn-edit-room {
    background: #dd6b20;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-edit-room:hover {
    background: #c05621;
    transform: translateY(-1px);
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.9rem;
}

.checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.select-role {
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    margin-right: 0.5rem;
}

/* User management */
.user-management {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(74, 85, 104, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.user-management-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-management-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #2d3748;
}

.user-management-description {
    color: #718096;
    font-size: 0.95rem;
    margin-top: 0.35rem;
}

.user-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.05);
}

.user-pagination {
    display: none;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.user-pagination-button {
    border: 1px solid var(--neutral-300);
    background-color: var(--neutral-0);
    color: var(--neutral-700);
    border-radius: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.user-pagination-button:hover:not(:disabled),
.user-pagination-button:focus-visible:not(:disabled) {
    background-color: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary-700);
    outline: none;
}

.user-pagination-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.user-pagination-button.active {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
    color: var(--neutral-0);
}

.user-pagination-ellipsis {
    color: var(--neutral-500);
    padding: 0 0.25rem;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.user-table thead {
    background: #f7fafc;
}

.user-table th,
.user-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.user-table th {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4a5568;
}

.user-table td {
    font-size: 0.95rem;
    color: #2d3748;
    vertical-align: middle;
}

.user-table tbody tr:hover {
    background: #f8fafc;
}

.user-actions-column {
    width: 140px;
}

.user-row-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-row-actions .btn {
    width: auto;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
}

.user-name-cell {
    width: 100%;
}

.user-details-toggle {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.user-details-toggle:focus-visible {
    outline: 2px solid #5a67d8;
    outline-offset: 2px;
}

.user-details-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #4a5568;
    font-size: 1rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.user-details-toggle-icon::before {
    content: '+';
    line-height: 1;
    font-weight: 600;
}

.user-details-toggle[aria-expanded='true'] .user-details-toggle-icon {
    transform: rotate(45deg);
    background: #cbd5e0;
}

.user-details-row {
    display: none;
}

.user-details-row td {
    border-bottom: 1px solid #e2e8f0;
}

.user-details-row-content {
    display: grid;
    gap: 0.75rem;
}

.user-detail-item {
    display: grid;
    gap: 0.25rem;
}

.user-detail-item dt {
    font-weight: 600;
    color: #2d3748;
}

.user-detail-item dd {
    margin: 0;
    color: #4a5568;
}

.user-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.user-status--aprovado {
    background: #c6f6d5;
    color: #276749;
}

.user-status--pendente {
    background: #feebc8;
    color: #b7791f;
}

.user-status--bloqueado {
    background: #fed7d7;
    color: #9b2c2c;
}

.user-status--rejeitado {
    background: #fbd5d5;
    color: #c53030;
}

.user-list-feedback {
    margin: 0;
}

.user-list-feedback.error {
    color: #c53030;
}

#userForm .btn {
    width: auto;
}

#userForm .form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .admin-rooms-actions {
        justify-content: stretch;
    }

    .admin-rooms-actions .btn {
        width: 100%;
    }

    .room-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .room-modal-actions__primary {
        width: 100%;
        flex-direction: column;
    }

    .room-modal-actions__primary .btn,
    .room-modal-actions .btn-danger {
        width: 100%;
    }

    .user-pagination {
        justify-content: center;
    }

    .user-table-wrapper {
        overflow-x: hidden;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .user-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .user-table thead {
        display: none;
    }

    .user-table tbody tr {
        border-bottom: 1px solid #e2e8f0;
    }

    .user-table tbody tr:last-of-type {
        border-bottom: none;
    }

    .user-table td {
        padding: 0.75rem 0;
        font-size: 0.95rem;
    }

    .user-table td::before {
        display: none;
    }

    .user-detail-column {
        display: none;
    }

    .user-row-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .user-row-actions .btn {
        flex: 1;
    }

    .user-details-row.active {
        display: table-row;
    }

    .user-details-row td {
        padding: 0 0 1rem;
        background: #ffffff;
    }

    .user-details-row-content {
        grid-template-columns: 1fr;
    }

    .user-details-toggle-icon {
        visibility: visible;
    }
}

@media (min-width: 769px) {
    .user-details-toggle {
        cursor: default;
    }

    .user-details-toggle-icon {
        display: none;
    }
}

@media (max-width: 480px) {
    #userForm {
        font-size: 0.9rem;
    }

    #userForm .form-label {
        font-size: 0.75rem;
    }

    #userForm .form-control {
        font-size: 0.9rem;
        padding: 0.65rem;
    }

    #userForm .btn {
        font-size: 0.95rem;
        padding: 0.65rem;
    }

    .calendar-header__title-group {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .calendar-header__title-group .btn-back {
        width: auto;
        justify-content: flex-start;
    }

    .day-view-subtitle {
        font-size: 0.85rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .notification-bar-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .notification-manage-button {
        width: 100%;
    }

    .notification-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .notification-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .notification-bar {
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .main-content {
        padding: 0.75rem 0.85rem;
    }

    .calendar-grid {
        font-size: 0.75rem;
        border-radius: 10px;
    }

    .calendar-day {
        min-height: 74px;
        padding: 0.45rem;
    }

    .calendar-day-header {
        padding: 0.55rem;
        font-size: 0.8rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .calendar-container {
        padding: 0.9rem;
        border-radius: 14px;
        box-shadow: 0 12px 28px rgba(79, 70, 229, 0.1);
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        gap: 0.6rem;
    }

    .main-nav {
        width: 100%;
        display: none;
        margin-top: 0.35rem;
    }

    .header-content.menu-open .main-nav {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link,
    .nav-sublink {
        width: 100%;
        text-align: left;
    }

    .logo img {
        height: 52px;
    }

    .nav-link--icon {
        flex-direction: row;
        width: 100%;
        height: auto;
        min-width: 0;
        min-height: 0;
        justify-content: flex-start;
        padding: 0.75rem 0.85rem;
        gap: 0.75rem;
    }

    .nav-link--icon::after {
        margin-top: 0;
        font-size: 0.95rem;
        letter-spacing: 0;
        text-transform: none;
    }

    .nav-link--icon .nav-icon {
        width: 2rem;
        height: 2rem;
    }

    .calendar-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }

    .calendar-header__title-group {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .calendar-title {
        font-size: 1.35rem;
        margin-top: 0.25rem;
    }

    .calendar-header .btn-back {
        width: auto;
    }

    .btn-new-event {
        width: 100%;
        justify-content: center;
        margin-top: 0.35rem;
    }

    .calendar-month-controls {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.4rem 0.55rem;
        margin: 0.75rem 0 0.85rem;
        box-shadow: 0 6px 16px rgba(148, 163, 184, 0.12);
    }

    .calendar-month-label {
        font-size: 1.1rem;
    }

    .calendar-nav-button {
        width: auto;
        justify-content: center;
        min-height: 34px;
        min-width: 34px;
        padding: 0.35rem;
        box-shadow: 0 4px 12px rgba(148, 163, 184, 0.18);
    }

    .day-view-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .day-view-header__titles {
        width: 100%;
        flex: 1 1 auto;
    }

    .day-view-header > .btn-back {
        width: 100%;
        justify-content: center;
    }

    .nav-item--has-submenu {
        align-items: stretch;
    }

    .nav-item--has-submenu .nav-submenu {
        position: static;
        display: none;
        background: #f8fafc;
        border-radius: 10px;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        padding: 0.5rem 0.75rem;
        gap: 0.25rem;
        margin-top: 0.25rem;
        list-style: none;
    }

    .nav-item--has-submenu.submenu-open .nav-submenu {
        display: flex;
    }

    .nav-item--has-submenu .nav-sublink {
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
    }

    .user-info {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-left: 0;
        border-top: 1px solid #e2e8f0;
        padding-top: 0.75rem;
    }

    .header-content.menu-open .user-info {
        display: flex;
    }

    .user-info-main {
        align-items: flex-start;
    }

    .user-info-main #userName {
        font-size: 0.9rem;
    }

    .user-badge {
        align-self: flex-start;
    }

    .btn-logout {
        width: 100%;
    }
}


/* Esconde wrappers sem conteúdo (evita “tijolo” vazio) */
.room-image-wrapper:empty,
.room-image-preview:not(.has-image) { display: none; }

/* Indicador de “tem evento” com um pontinho — opcional */
.calendar-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 6px; left: 50%;
  width: 6px; height: 6px;
  background: #5a67d8; border-radius: 50%;
  transform: translateX(-50%);
}

/* Groups and Tags Tabs */
.groups-tags-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: all 0.2s;
    font-weight: 500;
}

.groups-tags-tab:hover {
    color: #333;
    background: #f5f5f5;
}

.groups-tags-tab.active {
    color: var(--color-primary-strong);
    border-bottom-color: var(--color-primary-strong);
    background: transparent;
}

.groups-tags-tab-content {
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

