
:root {
    --primary-color: #2E7D32;
    --primary-hover: #1B5E20;
    --primary-light: #E8F5E9;
    --secondary-color: #1565C0;
    --danger-color: #C62828;
    --light-bg: #f5f7fa;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-bg);
    color: #263238;
    line-height: 1.6;
}

/* Navbar Moderna */
.navbar-custom {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.navbar-brand i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Botões */
.btn {
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.3);
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4);
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Cards de Ramais */
.ramal-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
    background: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.ramal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.ramal-card .card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 1rem 1.25rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ramal-card .card-body {
    padding: 1.5rem;
}

.ramal-info {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.ramal-info i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.ramal-info small {
    display: block;
    font-size: 0.75rem;
    color: #607D8B;
    margin-bottom: 0.25rem;
}

/* Barra de Busca */
.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #78909C;
}

.search-box input {
    padding-left: 2.5rem;
    border-radius: 8px;
    border: 1px solid #CFD8DC;
    transition: var(--transition);
    height: 45px;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.25rem 1.5rem;
}

.modal-title i {
    margin-right: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.empty-state i {
    font-size: 3rem;
    color: #CFD8DC;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #455A64;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #78909C;
    margin-bottom: 1.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .ramal-card {
        margin-bottom: 1rem;
    }
    
    .ramal-info {
        flex-direction: column;
    }
    
    .ramal-info i {
        margin-bottom: 0.5rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Spinner */
.spinner-container {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
}

.spinner {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--primary-color);
}

/* Estilos para os botões de ação */
.action-buttons .btn {
    padding: 5px 10px;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: all 0.2s ease;
    border: none;
}

.btn-edit {
    background-color: #4a6fa5;
    color: white;
}

.btn-edit:hover {
    background-color: #3a5a8c;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(74, 111, 165, 0.3);
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.btn-danger-custom {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white;
    transition: all 0.3s ease;
}

.btn-danger-custom:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.btn-success-custom {
    background-color: #6DBE45;
    border-color: #6DBE45;
    color: white;
    transition: all 0.3s ease;
}

.btn-success-custom:hover {
    background-color: #5AA63B;
    border-color: #5AA63B;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(106, 190, 69, 0.3);
}
.dropdown-item {
    transition: all 0.2s;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Estilos para os novos campos */
.ramal-info .bi-pc-display {
    color: var(--secondary-color);
}

.ramal-info .bi-ethernet {
    color: #6a1b9a;
}

/* Estilo para badge de visibilidade */
.visibilidade-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.badge-publico {
    background-color: #28a745;
    color: white;
}

.badge-privado {
    background-color: #6c757d;
    color: white;
}