/* ====================================================
   ESTILOS PRINCIPAIS DO PLUGIN
   ==================================================== */

.videira-notificacoes-lista,
.videira-notificacoes-wrapper {
    max-width: 700px;
    margin: 20px 0;
}

.notificacao-item {
    background: #f9f9f9;
    border-left: 4px solid #ccc;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    transition: 0.2s;
}

.notificacao-item.nao-lida {
    background: #fff8e7;
    border-left-color: #ff9800;
}

.notificacao-item.tipo-importante {
    border-left-color: #ff9800;
    background: #fff3e0;
}

.notificacao-item.tipo-urgente {
    border-left-color: #f44336;
    background: #ffe8e6;
}

.notificacao-titulo {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.notificacao-mensagem {
    display: block;
    margin: 8px 0;
    line-height: 1.5;
}

.notificacao-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.9em;
    color: #007bff;
    text-decoration: none;
}

.notificacao-link:hover {
    text-decoration: underline;
}

.notificacao-data {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: #999;
}

/* ====================================================
   BOTÕES
   ==================================================== */

.marcar-lida {
    background: #28a745;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    transition: all 0.2s;
}

.marcar-lida:hover {
    background: #218838;
    transform: scale(1.02);
}

.excluir-notificacao {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.excluir-notificacao:hover {
    background: #dc3545;
    color: white;
}

.button-marcar-todas {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.button-marcar-todas:hover {
    background: #0069d9;
    transform: translateY(-1px);
}

.button-carregar-mais {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.button-carregar-mais:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* ====================================================
   BADGE (CONTADOR)
   ==================================================== */

.videira-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 4px 3px 1px 3px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    min-width: 18px;
    text-align: center;
}

.videira-badge-zero {
    background: #6c757d;
    opacity: 0.6;
}

/* ====================================================
   MENSAGEM QUANDO NÃO HÁ NOTIFICAÇÕES
   ==================================================== */

.videira-sem-notificacoes {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sem-notif-icone {
    font-size: 64px;
    margin-bottom: 20px;
    animation: sineiro 2s ease-in-out infinite;
}

@keyframes sineiro {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(0deg); }
    20%, 60% { transform: rotate(15deg); }
    40%, 80% { transform: rotate(-10deg); }
}

.sem-notif-titulo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: inherit;
}

.sem-notif-mensagem {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sem-notif-footer {
    font-size: 14px;
    color: #adb5bd;
    padding-top: 15px;
    border-top: 1px dashed #dee2e6;
    display: inline-block;
}

/* ====================================================
   MENSAGEM DE USUÁRIO NÃO LOGADO
   ==================================================== */

.videira-mensagem-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    color: #1565c0;
    font-weight: 500;
}

/* ====================================================
   LOADING SPINNER
   ==================================================== */

.loading-spinner {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
}

.loading-spinner:before {
    content: "⏳";
    display: inline-block;
    margin-right: 8px;
    animation: girar 1s linear infinite;
}

@keyframes girar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ====================================================
   ACTIONS (BARRA DE AÇÕES)
   ==================================================== */

.videira-actions {
    margin-bottom: 20px;
    text-align: right;
}

/* ====================================================
   ESTILOS RESPONSIVOS
   ==================================================== */

@media (max-width: 768px) {
    .notificacao-item {
        padding: 10px;
    }
    
    .notificacao-titulo {
        font-size: 14px;
    }
    
    .notificacao-mensagem {
        font-size: 13px;
    }
    
    .sem-notif-titulo {
        font-size: 20px;
    }
    
    .sem-notif-mensagem {
        font-size: 14px;
    }
    
    .sem-notif-icone {
        font-size: 48px;
    }
    
    .button-marcar-todas,
    .button-carregar-mais {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .videira-actions {
        text-align: center;
    }
}