/* Reset e variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app {
    flex: 1;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Específico para página de login */
body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header */
header {
    background: var(--surface);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#user-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Botões */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-share,
.btn-logout {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-share {
    background: var(--success-color);
    color: white;
}

.btn-logout {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 0.6rem;
    font-size: 0.9rem;
}

/* Container principal */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Layout de duas colunas */
.lists-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

/* Coluna da esquerda - Minhas Listas */
.my-lists-column {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.my-lists-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

/* Coluna da direita - Listas Compartilhadas */
.shared-lists-column {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid #10b981;
    border-left: 4px solid #10b981;
}

.shared-header h2 {
    color: #10b981;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #10b981;
}

.shared-lists-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

/* Grid de listas - mantido para compatibilidade */
.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.list-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    cursor: pointer;
}

.list-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.list-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.list-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.list-card .item-count {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Botão X para remover listas */
.list-remove-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--danger-color);
    font-size: 0.875rem;
    transition: all 0.2s;
    z-index: 10;
}

.list-remove-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
}

.list-remove-btn i {
    pointer-events: none;
}

/* Detalhe da lista */
.list-header,
.list-detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    gap: 1rem;
}

.list-detail-header h2 {
    flex: 1;
    margin: 0;
    word-spacing: 0.2rem;
    letter-spacing: 0.02rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.list-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

#back-btn {
    flex-shrink: 0;
}

.list-header h2 {
    text-align: left;
    margin: 0;
}

.add-item-section {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.add-item-section input[type="text"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
}

.add-item-section input[type="number"] {
    width: 80px;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
    text-align: center;
    background: #f8fafc;
}

.add-item-section input[type="number"]::-webkit-outer-spin-button,
.add-item-section input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-item-section input[type="number"] {
    -moz-appearance: textfield;
}

.items-list {
    list-style: none;
   
}

.item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.item-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.item-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-quantity {
    background: var(--primary-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
    flex-shrink: 0;
}

.item-text {
    font-size: 1rem;
    flex: 1;
}

.item-text.completed {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.item-delete {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.25rem;
}

/* Login */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    margin: 0;
}

.login-box {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 360px;
    margin: 2rem 0;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.login-header h1 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    text-align: center;
    width: 100%;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
}

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

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

.form-group input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.login-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.login-divider span {
    background: var(--surface);
    padding: 0 1rem;
    color: var(--text-secondary);
    position: relative;
}

.forgot-password {
    text-align: center;
    margin: 0.5rem 0;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}


/* Rodapé do login */
.login-footer {
    background: #1e293b;
    padding: 1rem;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.login-footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}

.login-footer a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-footer a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.footer-logo {
    height: 24px;
    width: auto;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Rodapé da página principal */
.footer {
    background: #1e293b;
    padding: 1rem;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

.cybelt-logo {
    height: 32px;
    width: auto;
}

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

.modal-content {
    background-color: var(--surface);
    margin: 5% auto;
    padding: 0;
    border-radius: 1rem;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

/* Modal de Nova Lista */
.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 1.5rem 2rem;
    margin: 0;
    border-radius: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

.modal-body input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #fafafa;
}

.modal-body input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.modal-footer .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    transition: all 0.2s;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* Animação do modal */
.modal {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: slideInFromTop 0.3s ease-out;
}

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

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Melhorias no form-group do modal */
.modal-body .form-group {
    margin-bottom: 1rem;
}

.modal-body .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.modal-body .form-group label i {
    color: var(--primary-color);
}

.share-permissions {
    margin: 1rem 0;
}

.share-permissions label {
    display: block;
    margin: 0.5rem 0;
    cursor: pointer;
}

/* Mensagens de erro */
.error-message {
    background: #fee;
    color: var(--danger-color);
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .lists-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lists-grid {
        grid-template-columns: 1fr;
    }

    .list-detail-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .add-item-section {
        flex-direction: column;
    }
}

/* Seções de listas */
.own-lists-section,
.shared-lists-section,
.invitations-section {
    margin-bottom: 2rem;
}

.own-lists-section h3,
.shared-lists-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    text-align: left;
    justify-content: flex-start;
}

.shared-lists-section h3 {
    color: #10b981;
}

.own-lists-grid,
.shared-lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

/* Lista compartilhada */
.shared-list-card {
    background: white;
    border: 1px solid #10b981;
    border-left: 4px solid #10b981;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    cursor: pointer;
    margin-bottom: 1rem;
}

.shared-list-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.shared-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.shared-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.shared-card-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.shared-card-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.permission-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.remove-shared-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    opacity: 0.7;
}

.remove-shared-btn:hover {
    background: #fef2f2;
    opacity: 1;
    transform: scale(1.1);
}

/* Seção de convites */
.invitations-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.invitations-header h3 {
    color: #475569;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.invitation-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.invitation-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.invitation-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.invitation-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.invitation-header h4 {
    color: #1e293b;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.invitation-list-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.375rem;
    border-left: 3px solid var(--primary-color);
}

.invitation-list-name i {
    color: var(--primary-color);
}

.invitation-list-name span {
    font-weight: 600;
    color: #1e293b;
}

.invitation-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.invitation-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.invitation-detail i {
    width: 1rem;
    color: #94a3b8;
}

.invitation-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-accept,
.btn-decline {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.btn-accept {
    background: #10b981;
    color: white;
}

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

.btn-decline {
    background: #ef4444;
    color: white;
}

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

.shared-card-content {
    flex: 1;
}

/* Modal de compartilhamento melhorado */
.share-modal-content {
    max-width: 700px;
    width: 95%;
    max-height: 70vh;
    overflow-y: auto;
    margin: 10% auto;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 1rem 2rem;
    margin: 0;
    border-radius: 0;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
}

.modal-header .close:hover {
    color: white;
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 1rem 2rem;
    margin-bottom: 0;
}

.modal-footer {
    padding: 1rem 2rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
}

.modal-footer .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    transition: all 0.2s;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.modal-footer .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.permission-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.share-permissions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.permission-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafbfc;
}

.permission-option:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.permission-option input[type="radio"] {
    margin-top: 0.125rem;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.permission-option:has(input[type="radio"]:checked) {
    background: #eff6ff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.permission-option input[type="radio"]:checked + .permission-info {
    color: var(--primary-color);
}

.permission-option input[type="radio"]:checked + .permission-info strong {
    color: var(--primary-color);
}

.permission-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.permission-info i {
    margin-top: 0.125rem;
    font-size: 1.125rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.permission-info div {
    flex: 1;
    min-width: 0;
}

.permission-info strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.permission-info small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    display: block;
}

/* Responsividade para convites */
@media (max-width: 768px) {
    .invitations-section {
        padding: 1rem;
    }

    .invitations-grid {
        grid-template-columns: 1fr;
    }

    .invitation-actions {
        flex-direction: column;
    }

    .btn-accept,
    .btn-decline {
        flex: none;
    }

    .permission-option {
        padding: 0.75rem;
    }

    .permission-info {
        gap: 0.5rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Animação para convites */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.invitations-section {
    animation: slideInFromTop 0.5s ease-out;
}