/* Ramais Internos - Public Styles */

.ramais-internos-list {
    margin: 20px 0;
}

.ramais-search-container {
    margin-bottom: 20px;
}

.ramais-search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ramais-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
}

.ramais-empty {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #6c757d;
}

.ramais-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.ramais-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.ramais-table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.ramais-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.ramais-table tbody tr:hover {
    background-color: #f8f9fa;
}

.ramais-table tbody tr:last-child {
    border-bottom: none;
}

.ramais-table tbody td {
    padding: 15px;
}

.ramal-numero {
    font-weight: 700;
    font-size: 1.1em;
    color: #495057;
}

.ramal-nome {
    font-weight: 500;
    color: #212529;
}

.ramal-setor {
    color: #6c757d;
    font-size: 0.95em;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-available {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.status-lunch {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(240, 147, 251, 0.3);
}

.status-absent {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(250, 112, 154, 0.3);
}

.status-vacation {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(48, 207, 208, 0.3);
}

.status-medical-leave {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #495057;
    box-shadow: 0 2px 4px rgba(168, 237, 234, 0.3);
}

/* Aniversariantes */
.ramal-birthday {
    background: linear-gradient(90deg, #fff9e6 0%, #ffffff 100%) !important;
    border-left: 4px solid #ffc107 !important;
    position: relative;
}

.ramal-birthday::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ffc107 0%, #ff9800 100%);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px #ffc107;
    }
    50% {
        box-shadow: 0 0 20px #ffc107;
    }
}

.birthday-icon {
    font-size: 1.3em;
    margin-left: 8px;
    display: inline-block;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Widget */
.widget_ramais_internos_widget .ramais-table {
    font-size: 0.9em;
}

.widget_ramais_internos_widget .ramais-table thead th,
.widget_ramais_internos_widget .ramais-table tbody td {
    padding: 10px;
}

/* Responsivo */
@media screen and (max-width: 768px) {
    .ramais-table {
        font-size: 14px;
    }
    
    .ramais-table thead {
        display: none;
    }
    
    .ramais-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 10px;
    }
    
    .ramais-table tbody td {
        display: block;
        text-align: left;
        padding: 8px 0;
        border: none;
    }
    
    .ramais-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 100px;
        color: #667eea;
    }
    
    .ramal-numero::before {
        content: 'Ramal: ';
    }
    
    .ramal-nome::before {
        content: 'Nome: ';
    }
    
    .ramal-setor::before {
        content: 'Setor: ';
    }
    
    .ramal-status::before {
        content: 'Status: ';
    }
}

@media screen and (max-width: 480px) {
    .ramais-table {
        font-size: 13px;
    }
    
    .status-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
}
