/* ============================================
   DevPlus — Página de Dispositivo
   Estilos específicos desta página
   ============================================ */

/* --- DEVICE SECTION --- */
.device-section {
    padding: 150px 0 80px;
    min-height: 100vh;
}

.device-header {
    text-align: center;
    margin-bottom: 60px;
}

.device-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 900;
}

.device-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- LOADING STATE --- */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--brand-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- ERROR STATE --- */
.error-box {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-box h3 {
    color: #ff5252;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.error-box p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* --- DEVICE INFO CARD --- */
.device-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

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

.device-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.serial-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-green));
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.info-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.info-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.info-value {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-active {
    background: rgba(122, 204, 69, 0.2);
    color: var(--brand-green);
}

.status-inactive {
    background: rgba(255, 82, 82, 0.2);
    color: #ff5252;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* --- FOOTER (override) --- */
footer {
    padding: 40px 0 20px;
}

.copyright {
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .device-header h1 { font-size: 2rem; }
    .device-card { padding: 30px 20px; }
    .info-grid { grid-template-columns: 1fr; }
}
